Deploying ASP.NET MVC applications to IIS6 requires specific configuration steps. This guide addresses common setup issues.
Configuration Steps
-
Create Application in IIS
- Right-click the folder in IIS and select Properties
- Navigate to the Directory tab
-
Add Application Mapping
- Click the Configuration button
- Check for an existing .mvc extension mapping
- If absent, click Add
-
Set Executable Path
- Enter:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll - Note: Path may vary by server; locate the dll and reference accordingly
- Uncheck “Verify that file exists”
- Enter:
-
Add Wildcard Mapping
- Click Insert to add wildcard mapping
- Use the same dll path from step 3
- Uncheck “Verify that file exists”
Once completed, the MVC application should route properly.