Note that there are some explanatory texts on larger screens.

plurals
  1. POCan multiple web.config files (in subdirs) refer to root code?
    primarykey
    data
    text
    <p>I feel like there's a really obvious answer to this question, but my Google-fu is proving too weak to find it.</p> <p>I have a .NET application on a sole test server/environment, APPSVR for sake of argument. The webservices that are called by this app reside in four different environments (SVC1, SVC2, etc.). Every month I get an email from QA asking me to point the app to the correct services environment for that month's testing. It's a 15-second process (modifying the web.config file for the app, below) but it's annoying for me and it keeps them from doing their jobs until I see the email and get it done.</p> <pre><code>&lt;applicationSettings&gt; &lt;CM_MVC.Properties.Settings&gt; &lt;setting name="CM_MVC_CmsService_cms_webservice" serializeAs="String"&gt; &lt;value&gt;http://SVC1/cms-webservice/cms-webservice&lt;/value&gt; &lt;/setting&gt; &lt;/CM_MVC.Properties.Settings&gt; &lt;/applicationSettings&gt; </code></pre> <p>What I want to do is set things up so they can go to <a href="http://APPSVR/app/SVC#" rel="nofollow">http://APPSVR/app/SVC#</a> to have the app pointing to the correct services environment. Ideally, though, I'd prefer not to have to actually publish the entire app to four different directories each time we make changes (which is infrequent, but still...).</p> <p>Everything I can find about putting additional web.config files in subdirs also shows (or implies, as far as I can tell) those subdirs having distinct pages or workflows. I don't have any of that. I just need the one app, one set of pages and code, but a way to have that one setting different.</p> <p>Is there a way to have a web.config file in a subdir refer to the app's root code?</p> <p>Or, alternately, is there some other solution to this problem that doesn't require monthly micro-management or multiple copies/deploys of identical code?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload