读书人

asp.net网站放到godaddy空间出错了请

发布时间: 2013-02-25 10:23:36 作者: rapoo

asp.net网站放到godaddy空间出错了,请大家帮我看看
Server Error in '/vita2013' 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 load type 'MyVita.Web.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="MyVita.Web.Global" %>



Source File: /vita2013/global.asax Line: 1


--------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4234; ASP.NET Version:2.0.50727.4223
[解决办法]
Parser Error Message: Could not load type 'MyVita.Web.Global'.

无法加载'MyVita.Web.Global'类型嘛。

看看是不是缺少了dll文件,或者dll文件对应的.net版本跟主机上的不一致。


[解决办法]
你那个程序在Global那里对HttpApplication进行了封装,并创建MyVita.Web.Global类;问题源于运行时,程序无法加载'MyVita.Web.Global'这个类型,可见系统找不到dll文件,或者缺少对'MyVita.Web.Global'类的引用。

如果可能,你用vs打开项目,在WEB里面添加对相应dll的引用,然后重新编译*.Web.dll,要是本地编译出错,说明载MyVita.Web.Global这个类在构造时有错误。本地通过了,再上传到服务器上替换原来的*.web.dll文件。

第二个错误不太明确是什么意思,总之是程序没办法正常工作,你还是切回到2.0吧。

读书人网 >asp.net

热点推荐