In response to this problem, I personally also dealing things for a long time, went online to find a lot of information. Stop talking, cut to the chase.
I used the development tool is vs2008+sql2005, asked my teacher, the teacher gave me the suggestion is to rebuild the solution, so I newly new web site, with the new Web. config to replace the original web. config, but the result is still the same.
I also tried to run the C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe on the Internet and the results were not ideal.
Also tried to remove the <authentication mode= "Windows" inside the Web. config/> This, the result is the same. See Netizen said this best not delete, will have influence, purely just to try.
Finally do not understand why go to the following step (also try):
First: Click the solution for your Web site root----Right-----Select Property Page----Find configuration properties on the left-click Configure
Remove the check box under the Build field and then configure (C): Select Platform
Then I was running my page directly, I did not build the site (do not understand this has no effect), and finally miraculously can be used. ^ v ^
I am also a beginner, do not understand this method has no effect, but I did not report wrong.
The allowdefinition= ' machinetoapplication ' section is wrong. If you do not use IIS in the