2011-01-27 141 views
1

在我的一个解决方案中,似乎无法使用ASP.Net Web服务应用程序项目 - 过去我一直都成功地使用它们。即使现在我可以创建另一个解决方案并添加一个这种类型的项目并运行它。不过,我现在要添加它的解决方案将无法运行它,我得到以下错误:尝试调试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

对于其他人谁运行到这个问题:

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

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

相关问题