是否可以实现自我更新的ASP.NET Web应用程序?

编程入门 行业动态 更新时间:2024-10-19 08:47:14
本文介绍了是否可以实现自我更新的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.

看看这个...

www.odetocode/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应用程序?

本文发布于:2023-11-15 13:56:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1595047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以实现   应用程序   自我   ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!