Exception:
App.config (Build Action: Content, Copy to Output Directory: Copy always):
Run:
I can run my tests through visual studio without issues, however when I run them through the command prompt I have an issue running the tests, I am getting an exception stating that my app.config file is missing even though I can see it in the bin/Debug folder. I am wondering what I am doing wrong?
UPDATE: tried adding:
and just 2.0.5.0, but no luck.
-Thank You.
Initialization method MyTests.InitializeTest threw exception.System.Configuration.ConfigurationErrorsException: System.Configuration.ConfigurationErrorsException:
An error occurred creating the configuration section handler for WebAii.Settings: Could not load file
or assembly 'ArtOfTest.WebAii' or one of its dependencies. The system cannot find the file specified.
(C:\MyTests\bin\Debug\TestResults\akharlamov 2011-01-30 12_53_49\Out\MyTests.dll.config line 5) --->
System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.WebAii' or one of its
dependencies.App.config (Build Action: Content, Copy to Output Directory: Copy always):
<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii" /> </configSections> <WebAii.Settings annotateExecution="true" baseUrl="http://local.mytests.com" clientReadyTimeout="50000" defaultBrowser="FireFox" enableScriptLogging="false" enableUILessRequestViewing="false" executionDelay="0" executionTimeout="60000" localWebServer="None" logLocation="C:\WebAiiLog\MyTests" queryEventLogErrorsOnExit="false" simulatedMouseMoveSpeed="1" webAppPhysicalPath="/" recycleBrowser="false" killBrowserProcessOnClose="true" /></configuration>Run:
mstest /testcontainer:MyTests.dllI can run my tests through visual studio without issues, however when I run them through the command prompt I have an issue running the tests, I am getting an exception stating that my app.config file is missing even though I can see it in the bin/Debug folder. I am wondering what I am doing wrong?
UPDATE: tried adding:
<section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii, Version=2.0.50727, Culture=neutral, PublicKeyToken=4fd5f65be123776c"/>-Thank You.