Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get rid of Unit Testing relicts in my Web.config?
    text
    copied!<p>While uploading my current project to our staging server I noticed that the Web.config file of my Asp.net MVC framework contains some references to assemblies called</p> <ul> <li>Hostadapters.AspNetAdapter</li> <li>QualityTools.Common</li> <li>QualityTools.ExecutionCommon</li> <li>QualityTools.Resource</li> </ul> <p>I have not added the entries myself, but guessing from their names, I suspect these have been added by the "Add Unit Tests" Wizard. </p> <p>The problem is, with these assemblies being referenced, the project does not run on my staging server, because it can't find the relevant DLLs. Their paths are hard-coded into the Web.config:</p> <pre><code>&lt;httpModules&gt; &lt;add name="HostAdapter" type="Microsoft.VisualStudio.TestTools.HostAdapter.Web.HttpModule, Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /&gt; &lt;/httpModules&gt; </code></pre> <hr> <pre><code> &lt;dependentAssembly&gt; &lt;assemblyIdentity name="Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /&gt; &lt;codeBase version="10.0.0.0" href="file:///C:/Program%20Files%20(x86)/Microsoft%20Visual%20Studio%2010.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter.DLL" /&gt; &lt;/dependentAssembly&gt; </code></pre> <p>Am I correct in thinking that these assemblies are Unit-Testing-Related?</p> <p>When I tried to remove some of these entries, the server responded with an error 403 "Access Denied: Forbidden." What might be the meaning of this, and how can I avoid it?</p> <p>I could simply upload the referenced DLL files somewhere onto the server, but that seems counter-intuitive. Do I have other options?</p> <p>Edit: I have read the suggestion to split configuration into separate parts. It is a good suggestion, but it doesn't help me with my immediate problem of how the heck do I get <em>any</em> configuration working on the server?</p>
 

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