本文介绍了System.Web.HttpException无法加载类型“[命名空间]。???”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这始于未能加载类型'全球'的错误。之后,我尝试了一些东西,让没有在那里我删除Global.asax文件和现在的错误是无法加载类型[命名空间]。???

This started as Could not load type 'Global' error. After I tried a few things and getting no where I deleted the Global.asax file and now the error is Could not load type '[namespace].???'

在哪里?是每一页我尝试加载的类名称

Where ??? is the class name of every page I try to load

该网站时(内VS2008,本地开发计算机执行)工作正常,但一旦公布(没有错误),并部署到服务器上给我未能加载类型'[命名空间]。???误差

The web site (when executed within VS2008, local dev computer) works fine but once published (with no errors) and deployed to the server gives me Could not load type '[namespace].???' error

我没有安装ELMAH,我能够获得更多的细节这个通用无法加载类型[命名空间]。???误差

I did install elmah and I was able to get more details for this "generic" Could not load type '[namespace].???' error

ELMAH报告一个HTTP错误500:

elmah reports a HTTP error 500 :

System.Web.HttpException无法加载类型[命名空间]。??? - >
System.Web.HttpParseException:无法加载类型。[命名空间] ???

System.Web.HttpException Could not load type '[namespace].???' -> System.Web.HttpParseException: Could not load type '[namespace].???'

任何想法?

我已经检查了基础


  • 参考

  • 做一个干净构建

  • 检查继承ATTR在打击背后
  • 的code中的HTML
  • References
  • Doing a clean and a build
  • Checking the Inherits attr in the HTML against the code behind

更新#1

我做了部署站点到不同的计算机DEV(IIS配置,虚拟文件​​夹等),它的工作原理。当我用同样发表code中的服务器上,让通用无法加载类型[命名空间]。???误差

I did deploy the site to a different DEV computer (configured IIS, virtual folder, etc.) and it works. When I use the same published code on the server, get the generic Could not load type '[namespace].???' error

更新#2

我创建了一个测试Web应用程序。一种形式(Default.aspx的)一个按钮。 click事件做了的Response.Write(Hello World的);我搬到这个应用服务器和猜测什么,我得到的未能加载类型TestSite._Default

I created a test web app. One form (Default.aspx) with a button. The click event does a Response.Write("Hello World"); I moved this app to the server and guess what, I get the Could not load type TestSite._Default

更新#3

据融合日志查看器,这两个网站都试图加载的.cpp codeProvider和VJSharp codeProvider,但我有任何这些没有引用。谷歌搜索后,我发现这个<一个href=\"http://dotnetslackers.com/CSharp/re-68323_The_$c$cDom_provider_type_Microsoft_VJSharp_VJSharp$c$cProvider_could_not_be_located.aspx\">post

According to the fusion log viewer, these two websites are attempting to load CppCodeProvider and VJSharpCodeProvider, but I have no references to any of these. After a Google search, I found this post

我检查,我必须JAVA文件中没有引用。仍然不知道是什么问题。

I checked and I have no references to JAVA files. Still don't know what the problem is

推荐答案

奇怪的是,有时我们得到这个错误,当磁盘已满。

Strangely enough, sometimes we get this error when the disk is full.

这篇关于System.Web.HttpException无法加载类型“[命名空间]。???”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 03:51