# Tahir Hassan's Blog

My Technical Notes

## Thursday, 3 February 2011

### Debugging MVC App under IIS

Sometimes you need to debug an application but because of certain techniques, you MUST host your application under IIS rather than using the in-built Visual Studio web server.

Once you create your virtual directory under IIS you need to create a Wildcard mapping to point to (for .NET version 4):


C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

For anything other than .NET version 4:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

And then untick Check that file exists.

Next you need to make sure that Integrated Windows authentication is enabled through the Directory Security tab.