在ASP.NET Web应用程序的多个web.config文件中 [英] Multiple Web.Config files in ASP.NET web application
问题描述
我在那里我有根folder.in我的根web.config多个subrirectories ASP.NET Web应用程序,我有sessionMode为的StateServer。所以在我的子目录一页,我不能够做到系列化。如果我改变SessionMode法是InProc,它会正常工作。我想保持在根目录下的web.config文件,因为它is.So我计划关于有子的另一个web.config文件directory.Can谁能告诉我该怎么做呢?
I have an ASP.NET web application where i am having multiple subrirectories in the root folder.in my root web.config, i have sessionMode as "StateServer" . So in one page of my subdirectory, i am not able to do serialization. If i change the SessionMode method to "InProc" , it will work fine. I want to maintain the web.config file in the root directory as it is.So i am planning about having another web.config file in sub directory.Can anyone tell me how to do this ?
在此先感谢
推荐答案
您可以只需将在子目录一个新的web.config文件和ASP.NET会覆盖该目录中更改任何设置。
You can just place a new web.config file in the sub-directory and ASP.NET will override any settings you change in that directory.
这篇关于在ASP.NET Web应用程序的多个web.config文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!