Unable to add a web reference to C#.NET desktop application
Posted on 2009-02-16
My company made a very large set of changes to over 500 databases and lots of applications and web services over the weekend, having to do with tightened security on web service access. Suddenly I find myself unable to compile an application that used to work.
In my solution, I have an application project and a web service. When I build just the web service, it builds with no errors. When I go to add a web reference to that service into my application project, it throws this error:
"The type of page you have requested is not served because it has been explicitly forbidden. the extension '.asmx' may be incorrect"
I have a couple of dozen applications that I am supporting, and most of them still compile just fine, *including* one which has a reference to this same web service. So I must conclude that the problem is in the solution/project, not the web service.
Can anyone give me an idea of where to look for the problem?