Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>One way to deal with this sort of thing, and I'm not certain it's the best, but it is a way, is to set certain configuration values in a higher level web.config or machine.config file that always resides on the machine in question.</p> <p>Then just make sure that your project files don't override those configuration values.</p> <p>Here are some considerations if you do this.</p> <ol> <li>If you want to source control these values, it can be more difficult this way (this could be a pro or a con depending on your environment).</li> <li>If other virtual sites are on the same machine and use the same configuration values, this could affect them all, and if multiple sites do use that same configuration value, changing it at the source will change them all (again, could be a pro or a con depending).</li> <li>If something is wrong with the value, it can be harder to determine where the problem is or what is causing it.</li> <li>Getting to machine.config may be difficult in your organization or with your hosting provider depending on your access/security privileges, and it's not always possible to put a web.config at a higher level than your application.</li> </ol> <p>Obviously the good thing here is that you can have a different value configured on each machine and as long as these values are not also set in your web.config (which would probably result in an error), you won't have to worry about compiling different versions.</p> <p>I believe that Visual Studio 2010 has a way for setting different config files for different build types, but that sounds pretty much like what you are already doing, so forgetting to build the right way can still end up with similar results. </p> <p>You could attempt to set up continuous integration with something like TFS Build if that is available to you, in which case what gets built for prod could be set up to always work a certain way and always pull from the correct build type.</p> <p>Hope something here helps.</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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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