Friday, October 29, 2010

ASP MVC IIS not running

Hey,

 I had the same problem on IIS 7.5 with MVC 1. I fixed the problem and listed some steps here:

Figure-1:Install other IIS options

  1. Read other normal IIS config steps
    1. If you dont see Asp.Net tab in config option, you need to register asp.net 
      1. %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
  2. You need to check add-on features to install some other components to make IIS work. Installing them solves most of the problem. Redirect is off by default. Go to control panel ->programs-> Windows components part as show on Figure-1. If you don't see your aspx pages, it might be missing .net integration. 
  3. Create your app and add simple html, asp pages for testing
    1. if it is showing default app, you need to remove that application
    2. You may need to start and stop application to make it work
  4. Change app pool identity to local system and give permissions at your database to access your tables for this user
  5. Allow all users for .net authorization
  6. It will work after these steps. If not check these:
    • You may need to check connection strings to make sure you are connecting to the right sql instance
    • Permission problem: You may need to give permission to web folders for application identity. If you change that to something else, add that user to list and give permissions.

No comments:

Post a Comment

Hey!
Let me know what you think?