Web服务解析器错误消息:无法创建类型“ xxx” [英] Web service Parser Error Message: Could not create type 'xxx'
问题描述
当我尝试浏览我的Web服务时遇到解析器错误。
I am getting a parser error when i try to browse my web service.
已经找到了很多答案,但是没有一个帮助我。如果有人可以引导我找到我可能忽略的有用链接,那将对您有很大帮助。
Already found so many answers, but none helped me. If anybody can guide me to a helpful link that i might have overlooked, it will be of great help.
这里是场景:
我在IIS 7.5上托管了VS-2010(框架4.0)中内置的Web服务,该服务使用 ASP.NET v4.0 Classic应用程序池。直到我重新安装它之前,它都可以正常工作。它开始显示以下错误
I have web service built in VS-2010 (framework 4.0) hosted on IIS 7.5 which uses "ASP.NET v4.0 Classic" app pool. This used to work fine until i reinstalled it. It started showing the Error below
解析器错误
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.
解析器错误消息:无法创建类型'AuthenticateUser'。
Parser Error Message: Could not create type 'AuthenticateUser'.
源错误:
第1行:<%@ WebService Language = C#
CodeBehind =〜/ App_Code / AuthenticateUser.cs Class = AuthenticateUser
%>
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/AuthenticateUser.cs" Class="AuthenticateUser" %>
源文件: /WebService101/Services/AuthenticateUser.asmx 行: 1
Source File: /WebService101/Services/AuthenticateUser.asmx Line: 1
版本信息:Microsoft .NET框架版本:4.0.30319; ASP.NET版本:4.0.30319.1016
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1016
请帮助。
推荐答案
请检查Web服务文件夹中是否存在您所有的dll。我借助一个名为超越比较的工具找到了它。在这里,我将Web服务目录的旧工作副本与新工作目录进行了比较。
Please check whether all your dll's are present in the web service folder. i was able to find this with the help of a tool called "Beyond Compare". where i compared older working copy of Web service directory to the new one.
这篇关于Web服务解析器错误消息:无法创建类型“ xxx”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!