【问题标题】:Parser Error when trying to debug web service application尝试调试 Web 服务应用程序时出现解析器错误
【发布时间】:2011-06-16 15:16:41
【问题描述】:

在我的一个解决方案中,我似乎没有 ASP.Net Web 服务应用程序项目 - 我过去一直成功地使用它们。即使现在我也可以创建另一个解决方案并添加一个这种类型的项目并运行它。但是,我目前想要添加它的解决方案不会运行它,我收到以下错误:

Server Error in '/' 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 'IntegrationService.Service1'.
Source Error: 

Line 1:  <%@ WebService Language="VB" CodeBehind="Service1.asmx.vb" Class="IntegrationService.Service1" %>

Source File: /Service1.asmx    Line: 1 

Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

我在这里没有做任何特别的事情,有很多类似的问题,但它们都略有不同,并且似乎没有相关性,因为我没有尝试部署等。

有人知道为什么会出错吗?

【问题讨论】:

    标签: .net visual-studio-2008 web-services .net-3.5


    【解决方案1】:

    对于遇到此问题的其他人:

    由于某种原因,在解决方案属性屏幕 - 配置属性 - 配置中,我添加的项目没有勾选构建复选框。

    我不知道为什么会这样 - 我似乎在其他解决方案上没有这个“配置属性”选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-14
      • 2012-11-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多