Skip to main content

Posts

Showing posts from March, 2012

Cannot open database \"mydb\" requested by the login. The login failed.\r\nLogin failed for user 'IIS APPPOOL\\ASP.NET v4.0'

Error: Cannot open database \"MYDB\" requested by the login. The login failed.\r\nLogin failed for user 'IIS APPPOOL\\ASP.NET v4.0'."} Try: Note 'IIS APPPool' in the error - it is looking for 'NETWORK SERVICE' to be set as identity. To do this, Go to : IIS Manager  > Application Pools > Select - Your Application Pool (That you have mapped to your application , like ASP.NET v4.0) On the RHS > Click 'Advanced Settings' > Look For 'Process ' > 'identity' > From the dropdown Select 'NETWORK SERVICE'  > click OK. Now try running your application.

MVC: How to find what Controller or Action is calling from View?

In MVC 3.0  you might need to customize the View, hide or show some elements or some thing else. Even If you are using a one to one View file , you might know which Control is using the view, but you don't know which action is . In case of  Master Layout , you don't know which Controller is using this View. How to find a what Controller or Action is using this view? What is Routing? Routing helps you to use friendly URL and map it to a physical file. Routing Provides the collection of the URL that is set to a pattern supported by routing. MVC Framework provides Routing APIs. System.Web.Routing -  check out some of the methods, better to know what else is available there! The routing data provides the collection values from your URL. {controller}/{action}/{id} What is Routing Patterns Routing api uses certain patterns to create the collection. Some of them are like in locale, report {locale}/{action} What is Registering or...

Windows 8 - The Metro Installing on VMWare Workstation ( VMWare Player )

Amazing Windows 8 is here for the consumer preview now. Happy to share this new experience with whoever excited about the future OS. You can download an .iso (Which is easiest way to install on a VMware Workstation / Player) http://windows.microsoft.com/en-US/windows-8/iso And follow this instructions on this link with some corrections below, http://www.sysprobs.com/guide-install-windows-8-on-vmware-workstation-with-vmware-tools Before you install, Corrections in the above link : In brief, You don't select the .iso in the fist VMware wizard , instead select 'I will install ....Later' In the second step - Select 1. Windows, 2. Windows 7 ** When you click next you will see the VM configuration screen , here select 'Hardware' on the left side to select '.iso' file. This is where you mount ISO. The rest follow this as minimum system requirement,     Processor: 1 gigahertz (GHz) or faster     RAM: 1 gigabyte (GB) (32-bit) or 2 GB (64-bit) ...