尝试调试Web服务应用程序时出现分析器错误

时间:2011-01-27 15:23:25

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

在我的一个解决方案中,我似乎没有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

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

任何人都知道为什么会出错?

1 个答案:

答案 0 :(得分:1)

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

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

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

相关问题