Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# jimmyfingers 12/23/2008 10:59 AM
Hi,

Bit of a strange one here. I've noticed that when developing my app locally on Visual Studio 2008 Cuyahoga catches an invalid page request regardless of the page extension .aspx, .html etc. and passes it through the NodeNullException on the Error.cs page.

Unfortunately when I've deployed the site and it is being run through iis, any unknown page throws up a standard IIS Page Not Found error.

Is there anyway that I can get IIS to act the same as a Visual Studio web server when it finds an unknown page/node and pass it to the NodeNullException part of the Error.cs page?

Many thanks
# martijnb 12/23/2008 11:28 AM
jimmyfingersIs there anyway that I can get IIS to act the same as a Visual Studio web server when it finds an unknown page/node and pass it to the NodeNullException part of the Error.cs page?

I think this can be accomplished by adding a wildcard mapping to IIS: http://professionalaspnet.com/archive/2007/07/27/Configure-IIS-for-Wildcard-Extensions-in-ASP.NET.aspx
# jimmyfingers 12/23/2008 12:41 PM
Unfortunately it's still the same even after the mapping.

If I use any url that has no extension (eg: http://www.mywebsite/abcde) or one that is not .aspx (http://www.mywebsite/abcde.html) it thows the IIS error.
# martijnb 12/23/2008 8:49 PM
Ah yes, of course, the urlhandler only intercepts requests for .aspx. But now I don't get why a request that doesn't end with .aspx results in a NodeNullException :s.