English 中文(简体)
ASP.NET发布:旧的DLL没有被覆盖,会重新出现。
原标题:ASP.NET publish: old DLL is not overwritten, and comes back

Using VS2008sp1, I m publishing Web app to a separate IIS7.5 server. It s been ok for a while, but hit this strange scenario: -Created a class file that generates its own DLL. -works fine locally -When publish to server, the older DLL file is there along with all the other newer files (based on time stamp). The application dies when it tries to execute the new class method (it knows of the correct method call, but cant find the method. e.g method not found: class.method() ) -turned off IIS service. Deleted DLL file, republished: still showed older DLL (???)

它显然在某个地方受到压制/保护,但我如何作为团体围绕这一出版? 我是否需要每次重新启动综合调查?

最佳回答

通常,这是您的计算机时间和服务器时间之间差异的问题。

如果您的机器提前运行了一点,那么在发布期间,Visual Studio将不会覆盖服务器上的一些文件。

你最好的选择是清除服务器上的所有内容,然后发布。或者,将时钟同步。但是,即使如此,有时诸如资源文件之类的东西仍无法正确发布。

VS 在这里试图变得过于智能了。

另一件要做的事情是,如果有的话,请勾选“发布前删除所有现有文件”框。

问题回答

删除位于服务器上与您特定应用程序相关的框架文件夹中的临时ASP.Net文件。

%SystemRoot%Microsoft.NetFrameworkvTemporary ASP.Net文件夹

如果您重新启动IIs,它将清除所有缓存的DLL -- 这是确保安装运行最新版本的最佳方法。MS文档说它将重新加载并运行并排,但为什么不干脆清除它?





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签