DLL file not updated when publishing web site

依然范特西╮ 提交于 2019-12-11 22:20:23

问题


I make updates in my web site code behind and then run Publish. The dll file is created but the modified date value remains a few months back, and the changes are not applied when I copy the dll file to the server.

The changes are very minor, like changing an if statement and updating an initial value of a variable.

What is the explanation?

Thank You.


回答1:


Try deleting temporary asp.net files and then re-publish the application.

You can find temporary ASP.NET Files in below path c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

From this location just delete your application. If you cannot delete the files, restart the IIS or stop the worker process (w3wp.exe)

After that just republish your site




回答2:


You have to update your AssemblyInfo.cs that there is a correct versioning and so on.

There you can set the current Date as Publishing date and it works



来源:https://stackoverflow.com/questions/19273164/dll-file-not-updated-when-publishing-web-site

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!