How do I get rid of Unit Testing relics in my Web.config?

When uploading my current project to our intermediate server, I noticed that the Web.config file of my Asp.net MVC framework contains some assembly references called

  • Hostadapters.AspNetAdapter
  • QualityTools.Common
  • QualityTools.ExecutionCommon
  • QualityTools.Resource

I myself did not add the record, but, guessing their names, I suspect that they were added by the Add Unit Tests wizard.

The problem is that when mentioning these assemblies, the project does not start on my intermediate server, because it cannot find the corresponding DLLs. Their paths are hardcoded in Web.config:

<httpModules>
  <add name="HostAdapter" type="Microsoft.VisualStudio.TestTools.HostAdapter.Web.HttpModule, Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpModules>

  <dependentAssembly>
    <assemblyIdentity name="Microsoft.VisualStudio.QualityTools.HostAdapters.ASPNETAdapter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
    <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" />
  </dependentAssembly>

Do I believe that these assemblies are associated with Unit-Testing?

, 403 "Access Denied: Forbidden". ?

DLL - , . ?

: . , , , , - , ?

+3
2

web.config .

, , . , , URL- ..

, - - , , -, , , ( , )!

, web.config web.live.config web.staging.config .

.

0

, , . - Debug, Staging Release.

, , .

Web.Debug.config Web.Release.Config ?

:

  <system.web>
    <httpModules>
      <add name="HostAdapter" xdt:Locator="Match(name)" xdt:Transform="Remove" />
    </httpModules>           
  </system.web>

  <system.webServer>
    <modules>
      <add name="HostAdapter" xdt:Locator="Match(name)" xdt:Transform="Remove"/>
    </modules>
  </system.webServer>
+3

All Articles