我一网站现在放到一台虚拟主机上,经常出现如下情况。
网站一段时间不被访问之后,再次打开页面时出现如下错误:
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=页面使用用户控件的个数)。
除了操作服务器,对于这种情况,有没有好的解决办法,求各位赐教!
网站一段时间不被访问之后,再次打开页面时出现如下错误:
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=页面使用用户控件的个数)。
除了操作服务器,对于这种情况,有没有好的解决办法,求各位赐教!
解决方案 »
- .NET MVCZ中的Html.ActionLink转向问题
- 父窗口不刷新状态下获取所从子窗口传递的值
- 如何处理HTML标签
- 关于dataAdapter.updata的超级简单问题
- 向高手请教为何远程桌面只能连接一次
- 用户控件:为什么用户控件保存的值与页面取得的值不一致?
- ###帮一下:我在列中添加附加属性:报错BC30002: Type 'webform1' is not defined.###
- 请问怎么隐藏DataGrid中的FooterStyle啊?
- oleDbDataAdapter update的问题
- 为什么我把SQL的连接字符串放到Web.config里的ApplicationSetting里去会出现配置错误
- StreamReader出错。在线等。
- GridVeiw取值问题
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.