Add HttpHandler registration in web.config in runtime
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.
精彩评论