I re-created a sample asp.net app which uses a WCF service which is part of the sample -- in VS2010 (it's actually a WCF sample that gets consumed by an asp.net app). I had the ASP.Net tab in IIS set to 2.0 framework. At that time, I could run my sample except the page also include some header information like for a web service test page. So I switched the Default Web Site to asp.net 4.0 framework. Now I get this message when I try to run the VS2010 sample:
The website declined to show this webpage
More information
This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.
For more information about HTTP errors, see Help.
-----------------------
I tried switching back to asp.net 2.0 framework, but then the app wouldn't run at all. So I went back to 4.0. I also previously got a ...
Go to the complete details ...