IIS报错Parser Error Message: Could not create type'GSafety.TrainingDrill.DataWebService.Service1'. 5
ServerErrorin'/webservice'Application.ParserErrorDescription:Anerroroccurredduringthe...
Server Error in '/webservice' Application.
Parser Error
Description:
An error occurred during the parsing of a resource required to service this
request. Please review the following specific parse error details and modify
your source file appropriately.
Parser Error Message: Could not
create type 'GSafety.TrainingDrill.DataWebService.Service1'.
Source
Error:
Line 1: <%@ WebService Language="C#" CodeBehind="DataWebService.asmx.cs"
Line 2: Class="GSafety.TrainingDrill.DataWebService.Service1" %>
Source File:
/webservice/webservice/DataWebService/DataWebService.asmx Line: 2
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1
请指点一下。。谢谢! 展开
Parser Error
Description:
An error occurred during the parsing of a resource required to service this
request. Please review the following specific parse error details and modify
your source file appropriately.
Parser Error Message: Could not
create type 'GSafety.TrainingDrill.DataWebService.Service1'.
Source
Error:
Line 1: <%@ WebService Language="C#" CodeBehind="DataWebService.asmx.cs"
Line 2: Class="GSafety.TrainingDrill.DataWebService.Service1" %>
Source File:
/webservice/webservice/DataWebService/DataWebService.asmx Line: 2
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1
请指点一下。。谢谢! 展开
展开全部
原因:1) 没有向iis中注册.net framework(引起的原因之一:先安装了.net framework,后安装的iis)
2) 没有对IIS中所配置的site有足够的操作权限(Modify权限)
解决方案:
1) 到C:\Windows\Microsoft.NET\Framework64\v2.0.50727下,
用命令向iis中重新注册一下.net framework:aspnet_regiis -i
2) IIS Manager --> Sites --> 相应的site --> 点击右键 --> Edit Permissions --> Security --> Group or user names --> Edit --> Add --> 添加赋予Full Control权限(实质上带有Modify的权限就可以)的Everyone用户
2) 没有对IIS中所配置的site有足够的操作权限(Modify权限)
解决方案:
1) 到C:\Windows\Microsoft.NET\Framework64\v2.0.50727下,
用命令向iis中重新注册一下.net framework:aspnet_regiis -i
2) IIS Manager --> Sites --> 相应的site --> 点击右键 --> Edit Permissions --> Security --> Group or user names --> Edit --> Add --> 添加赋予Full Control权限(实质上带有Modify的权限就可以)的Everyone用户
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询