从另一个Web应用程序更改web.config文件 [英] Change the web.config file from another web application

查看:81
本文介绍了从另一个Web应用程序更改web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


谁能告诉我如何以编程方式

Hi,
could any one tell me how to change a web.config file in a web application from another web application programatically

推荐答案

不可能从另一个Web应用程序更改Web应用程序中的web.config文件.您的Web应用程序无法在其根目录之上书写,因此,除非将要更改的应用程序托管在进行更改的应用程序的子文件夹中,否则无法完成.如果需要更改的应用程序暴露了可以调用以告知其如何更改自身的Web服务,那么该怎么办?
Impossible. Your web app cannot write above it''s root, so unless the app to be changed is hosted INSIDE a subfolder of the app that does the changing, it cannot be done. What if the app that needs changing exposes a webservice that can be called to tell it how to change itself ?


这篇关于从另一个Web应用程序更改web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆