简体   繁体   中英

Publishing web service on IIS 7 gives 500.19 - Internal Server Error

I have created a folder and published my webservice to this folder. I then created an application (in IIS 7) and pointed it at this folder location. When I try and hit the ASMX file from a browser on the local machine I get the following error:

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Can someone tell me why?

Try this the other way around. Publish directly to IIS, taking the option to create the virtual directory. Let Visual Studio configure the virtual directory (or application) the way it wants to.

It seems to be something related with the web.config file, check it first.

Also, ,maybe you missed registering asp.Net in IIS, you can run aspnet_regiis.exe on the server, with the -i flag

C:\WINDOWS\Microsoft.NET\Framework\<your framework version here>>aspnet_regiis.exe -i
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis.exe -i

Reading your error report, I see you have not installed the System.Web.Extensions dll, Install it and/or put it on your bin folder (System.Web.Extensions.dll)

Give permissions to the folder for the IIS_IUSRS group. Also, see what is the Identity of the application pool for the application in IIS manager->"Application Pools".Set it as "LocalSystem".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM