Skip to main content


Showing posts from July, 2009

How to Prevent Debugger Step-Thru Spontaneously Dying in IIS 7.0 ...

This frustrated me for a while until I Googled it and discovered it’s a preventable thing.
I guess there’s a good reason for it (somewhere), but when your stepping through debugging your ASP.NET website and just getting to the bottom of an issue when the debugger quits saying that the web server was unresponsive for 59.999 seconds, it can get on your nerves ;-) Here’s how to prevent that from happening…
Go to the application pool for the app you’re debugging and check out the ‘Advanced Settings’:

… set ‘Ping Enabled’ to false and you will find you can leave your debugger hanging as long as you like (again) while you dig through stuff…

ASP.NET MVC + Dynamic Data ... <tagMapping /> and App_Code folder

If I have a <tagMapping /> config file entry associated with a class in the App_Code folder, I seem to get the following error message without fail, at runtime:
Parser Error Message: The type 'MyNamespace.CustomDynamicValidator' is ambiguous: it could come from assembly 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\50512c51\4b64a02d\App_Code._ejsf967.DLL' or from assembly 'C:\WebApps\MyApp\ MyApp\bin\MyAssembly.DLL'. Please specify the assembly explicitly in the type name.
No biggie, just kind of a PITA actually. Now I need to put any code I'm using <tagMapping /> with in the root directory, and then it works fine.