本文介绍了是否可以实现自我更新的ASP.NET Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WordPress可以自行更新(应管理员用户的请求).

Wordpress has the capability to update itself (on admin user's request).

是否可以使用ASP.NET实现类似的功能?

Is it possible to implement something similar using ASP.NET?

我可以看到web.config和bin文件夹引起了问题.

I can see web.config and bin folder causing problems.

推荐答案

ASP.NET在bin文件夹中使用dll的卷影副本,以使您可以将一组新的dll和内容复制到服务器,而无需锁定这些文件.因此,dll和web.config都不是问题.

ASP.NET uses shadowcopy of dlls in your bin folder to allow you to xcopy a new set of dlls and content up to the server without those files being locked. So, dlls and web.config are not a problem.

问题将与使运行您的ASP.NET站点的进程具有对文件系统的写访问权限有关.这通常是一个坏主意.您应该考虑将此自动更新"功能放到可能在您的Web服务器上运行的服务的手中.

The issue will be around having the process that runs your ASP.NET site have write access to the file system. This is generally a bad idea. You should consider putting this "auto update" functionality into the hands of a service that might run on your web server.

看看这个...

http://www.odetocode.com/articles/305.aspx

...对于"ASP.NET程序员应该了解的应用程序域",但请认真考虑您所建议内容的安全性.您将如何阻止某人将邪恶的代码上传到您的网站?

... for "What ASP.NET Programmers Should Know About Application Domains" but seriously consider the security implications of what you're suggesting. How will you stop someone from uploading evil code to your site?

这篇关于是否可以实现自我更新的ASP.NET Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 03:22