0

当我启动我的网站从IIS安装后启动Web应用程序,我得到这个错误:错误使用InstallShield

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 load type 'MonitoringToolUI.Global'. 

Source Error: 

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="MonitoringToolUI.Global" Language="C#" %> 

Source File: /global.asax Line: 1 

我发现这个问题的重复,有几个实际 - Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'"Parser Error Message: Could not load type" in Global.asax但没有一个解决方案给予似乎为我工作。其中大部分工作的解决方案是他们清理/重建解决方案,它的工作。在我的情况下,它是一个安装的网站,使用MSI在我的IIS中创建Web应用程序。我试过重建我的应用程序并重新安装它,同样的问题依然存在。然而,如果我运行它,否则这个应用程序会启动,否则猜测它是一个安装程序问题。

我正在使用VS2012并被迫使用InstallShield来部署我的Web应用程序。我遵循教程(http://www.c-sharpcorner.com/UploadFile/cb88b2/simple-steps-to-create-setup-of-website-using-install-shield/)并能够创建我的安装程序。它创建一个虚拟目录,正确复制内容文件/项目输出。

我检查了.net版本的平台,重新构建了几次解决方案。我不确定接下来要尝试什么,任何建议都会有所帮助。

注意:我尝试过的一件事是从global.asax文件中删除了“inherit”部分,然后从其中一个aspx文件中抛出类似的错误。这是一个不同的文件名,而不是gloabal。

谢谢!

回答

相关问题