Question

I have a legacy ASP.NET application that uses PageMethods in several webforms.

While it works ok when developing and testing with internal web server (under VS 2012), and also when deployed under IIS 7.5, it fails if I try to develop with IIS Express - the error is the request that calls the page method doesn't find it.

Rewriting all to get rid of pagemethods is not quote a solution, due to time restrictions, because it is used in a lot of places, meaning a lot of code changes, tests, etc, etc.

This prevents me to switch to VS 2013 (since VS 2013 doesn't have internal webserver any longer)

Anyone encountered this and know the cause and the solution?

Thanks

Was it helpful?

Solution

sorry for the resurrection, but having encountered this in the last couple of days, this was the first google result when trying to resolve...

based on this document http://support.microsoft.com/kb/2520479 I checked applicationHost.config and found all was in order. However, the same ExtensionlessUrl parameters were also present in the local web.config file. I removed them from there and the web methods started working!

OTHER TIPS

This method worked for me on both IIS 7.5(Windows 7) and IIS 8.5( Windows 8.1).

In IIS Manager, Go to Application Pools Tree node, Right click on your website and select "Advanced Settings...", Expand "Process Model" tree node, Identity field click "...", Select "Custom account:", Click "Set..." button and enter, preferably, USER account credential.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top