开发者

Add HttpHandler registration in web.config in runtime

开发者 https://www.devze.com 2023-03-14 22:46 出处:网络
I was trying to add some configuration in web.config file after the web page is started up. Such as: But when I deploy it to the IIS, there of course has 开发者_StackOverflowan authority issue to

I was trying to add some configuration in web.config file after the web page is started up. Such as:

But when I deploy it to the IIS, there of course has 开发者_StackOverflowan authority issue to modify the web.config file. So I need add everyone permission to this application in IIS.

My question is: could any one give me a clue that I can add this configuration in runtime without the everyone permission? Such as adding this configuration to memory?

Thanks,


I just have a workaround to register the httphandler to web.config in the OnPreRender life-circle and it works fine; but the bad thing is that when we deploy it, we need give it a higher privilege. If you have better idea, please share it.

0

精彩评论

暂无评论...
验证码 换一张
取 消