Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Web服务错误-HTTP错误500.19-内部服务器错误0x80070021_C#_Asp.net_Iis - Fatal编程技术网

C# Web服务错误-HTTP错误500.19-内部服务器错误0x80070021

C# Web服务错误-HTTP错误500.19-内部服务器错误0x80070021,c#,asp.net,iis,C#,Asp.net,Iis,我在VS2010(目标框架3.5)中创建了一个简单的web服务,并在IIS 7.5中发布 但当我试图浏览它时,出现了以下错误 **HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Error Code 0x80070021 Config Source: 97:

我在VS2010(目标框架3.5)中创建了一个简单的web服务,并在IIS 7.5中发布 但当我试图浏览它时,出现了以下错误

**HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Error Code  0x80070021
Config Source:
97:     </modules>
98:     <handlers>
99:       <remove name="WebServiceHandlerFactory-Integrated"/>**
**HTTP错误500.19-内部服务器错误
无法访问请求的页面,因为该页面的相关配置数据无效。
错误代码0x80070021
配置源:
97:     
98:     
99:       **
如何解决此错误

当目标框架更改为2.0/3.0时,它可以工作,但不适用于3.5


在安装IIS之前,我还安装了VS2010。因此会有任何问题吗?

可能会重复粘贴整个错误页面,因为一个片段是无用的。