日期:2014-05-18  浏览次数:20494 次

■■■■■■■■■■.net项目发布以后,为什么找不到页面对应的类?
在开发环境运行正常,发布以后,用发布的文件建立一个虚拟目录。在bin目录下需要的dll都在,也已经将aspx文件所在目录设置为虚拟目录。可是在执行一个aspx页面的时候弹出如下的错误提示:

Server   Error   in   '/publish '   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   'SingleHtmlEditor.WebForm2 '.

这个是怎么回事那?该如何解决那?请指教,谢谢


------解决方案--------------------
昨天晚上我也遇到了这个问题 你把 “An error occurred during the parsing of a resource required to service this request.”放GOOGLE里面搜索就能找到解决办法 我晚上怎么解决的忘了 要是记起来 我再回复
------解决方案--------------------
删除\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files下的文件试试啊。
------解决方案--------------------
发布后

会把所有的cs页面编译为dll放在bin目录下,LZ可以看看,
这时所有的aspx要调类就会去dll里面找,
==================
你的问题 你去检查WebForm2这个,看看有没有问题,是不是运行时没事,发布就有事了,查查