[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1142
  • Last Modified:

Running MVC2 Application on IIS 5.2

I recently created an MVC2 application.  I am having trouble bringing it up on a Windows 2003 Server running IIS 5.2.  My developing machine is Server 2008, so no problems there.  

Changes I made on Server 2003 is Creating a Wildcard Script Map of * and pointing that to: c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll

I created a separate apppool and am running that using .Net 4

I am getting an HTTP 403 Forbidden page.

Here is my global.asax
routes.MapRoute(
                "Default", // Route name
                "{controller}.mvc/{action}/{id}", // URL with parameters
                new { action = "Index", id = "" } // Parameter defaults
            );

            routes.MapRoute(
                "Root", // Route name
                "", // URL with parameters
                new { controller = "Home", action = "Index", id = "" } // Parameter defaults
            );

Open in new window

0
obautista
Asked:
obautista
  • 5
  • 4
1 Solution
 
ajarveyCommented:
Go into IIS, and into the Web Service Extensions area.. You will need to allow the ISAPI for .NET.
0
 
obautistaAuthor Commented:
Does IIS5 have the concept of Web Service Extensions?  How would I complete what you are suggesting?
0
 
ajarveyCommented:
Windows Server 2003 runs IIS6. This is included functionality in that version.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
obautistaAuthor Commented:
It is a Windows 2003 Server, but appears to be running IIS 5.2.  I have included a screenshot.
iis.jpg
0
 
ajarveyCommented:
Take a screenshot of IIS itself (you can blur out the websites) and post it. I'm a bit confused...
0
 
obautistaAuthor Commented:
I actually see this now, but not sure how you add the extension.  Where do I do that.  My MVC2 application is set up as a Virtual Directory underneath the Default Website.
iis2.jpg
iis3.jpg
0
 
ajarveyCommented:
It is in this section of the IIS snapin:


step01.gif
0
 
obautistaAuthor Commented:
Perfect.  The assembly was installed.  It was just set to Prohibited.  Apparently installing .Net Framework 4.0 defaults it to Prohibited.  I changed it to Allowed and BINGO!

Thanks for your help...
iis4.jpg
0
 
ajarveyCommented:
You're very welcome..
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now