This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / Got this error from a .net web app: ..................The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)这个项目原来在SERVER上运行的好好的。因为有些小改动,我在LOCAL机器上改代码编译后可以通过。用新的DLL文件覆盖了在服务器上旧的DLL后,这个项目就打不开了,这是错误提示:
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
请问如何才能解决这个错误。谢谢!
-uzitea(kiss the rain);
2008-12-17
{322}
(#4929865@0)
-
I assume you are using FW 1.1 and VS 2003. If so, it’s better to apply VS’s Copy Project to redeploy new version to server. Before redeploy, you should backup the current version.
-deep_blue(BLUE);
2008-12-18
(#4930005@0)
-
Assemblies in GAC are not copied locally during a re-build. So, check the version of assemblies. You can try remove the assemblies in GAC and re-build. Let's see what happen.
-whereismyid(到处找ID);
2008-12-18
(#4930083@0)
-
谢谢两位。。。我用的是VS05 AND FW2.0。今天更新了这个项目下的assemblyinfo.cs,把其中的assemblyversion改成固定的version number。重新编译然后在VSS上get latest version到服务器上就可以了。其实我现在对这个assembly versioning 还不是很清楚。。。。
-uzitea(kiss the rain);
2008-12-18
{56}
(#4932449@0)
-
Since you are using FW 2.0, you can directly put source code in web server. Once you change web.config file or any source file, web server automatically rebuilds the site, and runs new version.Unless you have some common components to be used by different projects, it’s not necessary to pre-compile some dlls in FW 2.0.
-deep_blue(BLUE);
2008-12-19
{128}
(#4932804@0)
-
pre-compile can save customer's time for first access
-whereismyid(到处找ID);
2008-12-19
(#4932900@0)
-
wrongif you change any dll, it also rebuild in server.
-deep_blue(BLUE);
2008-12-19
{49}
(#4933206@0)
-
可能我俩的出发点不一样. 我是对你的上帖而提出我的观点. YOU ARE RIGHT: CHANGING DLL AUTO RE-COMPILE IN SERVER. 但我是说最好在DEPLOY前RE-COMPILE PROJECT. 提高PERFORMANCE.
-whereismyid(到处找ID);
2008-12-19
(#4933338@0)
-
But it only affects the first time running. With source code deployment, It builds in the first time running. Then, it runs compiled version in server.
-deep_blue(BLUE);
2008-12-19
(#4933379@0)