我一网站现在放到一台虚拟主机上,经常出现如下情况。 
网站一段时间不被访问之后,再次打开页面时出现如下错误: 
A   strongly-named   assembly   is   required.   (Exception   from   HRESULT:   0x80131044)   
然后刷新一下页面就好了,同样的程序原来在自己服务器上时是没问题的,但虚拟主机的权限又没办法控制。所以我就将老程序的网站模式全部迁移了一遍,改成了Asp.net应用程序模式,事先把项目编译好之后部署,但仍然出现此错误,而且有时候那些使用过多个用户控件的页面还会出现这种错误: 
Compilation   Error   
Description:   An   error   occurred   during   the   compilation   of   a   resource   required   to   service   this   request.   Please   review   the   following   specific   error   details   and   modify   your   source   code   appropriately.   Compiler   Error   Message:   CS0433:   The   type   'ASP.admin_adminfoot_ascx '   exists   in   both   'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary   ASP.NET   Files\root\b936a7f9\6541f71d\App_Web_adminfoot.ascx.fdf7a39c.sx5zggoa.dll '   and   'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary   ASP.NET   Files\root\b936a7f9\6541f71d\App_Web_qq2dc5ev.dll ' Line   1293:                 } 
Line   1294:                 
Line   1295:                 private   global::ASP.admin_adminfoot_ascx   @__BuildControlAdminFoot1()   { 
Line   1296:                         global::ASP.admin_adminfoot_ascx   @__ctrl; 
Line   1297:                         无论如何刷新都不会正常,除非更新bin目录下的文件,然后再刷新N次之后就好了(N=页面使用用户控件的个数)。 
除了操作服务器,对于这种情况,有没有好的解决办法,求各位赐教!

解决方案 »

  1.   

    给你推荐一个专家,去看他在csdn的博客吧!也可以文问问他!希望对你有用!http://blog.csdn.net/dotnetWalker
      

  2.   

    Cannot deploy without strong name
    Solution: Assign strong name from within the BizTalk project's properties window.
    Error Messages: 
    [Microsoft.BizTalk.Deployment.DeploymentException] Unable to install the "....dll" assembly into the Global Assembly Cache. Exception: A strongly-named assembly is required.
    [Microsoft.BizTalk.Gac.GacException] A strongly-named assembly is required.