Featured post
asp.net - IIS7 Application Configuration -
i have custom asp.net application utilize several clients host. each client has separate domain , application child application under root domain (http://domain.com/customapp). application files same (aspx, ascx, style sheets, images, etc.). thing different web.config file each client. development of application continues evolve, have update application each directory , becoming tedious. trying come method keep application date. first though placing application single physical path , creating multiple applications pointing path (the problem method can't have different web.config files). curious solution others using in scenario...
if want handle entirely in visual studio, vs2010 offers web.config transforms solve problem.
in nutshell, create build configuration (in vs, select build|configuration manager...) each site. add web.config transform each client, specifies differences required each application.
i use differentiating between development, staging , release configurations - each transform adjusts connection string, app settings, etc - , works quite both within visual studio , when deploying via msbuild.
also, note web.config settings inherited iis applications. so, if have root site
/root
and client apps
/root/client1 /root/client2 ...
you place client-specific config settings in web.config in each client-specific folder, , global settings web.config in root folder.
- Get link
- X
- Other Apps
Comments
Post a Comment