This is a migrated thread and some comments may be shown as answers.

App.config file

2 Answers 208 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
SD
Top achievements
Rank 1
SD asked on 15 Apr 2010, 04:21 AM
Hi Guys,

Added app.config (Same content shown on your site) to my solution (I'm using the Nunit template) and got the following error when running the test: 

VTMS.TestCase_Login.LoginBase:
System.Configuration.ConfigurationErrorsException : An error occurred creating the configuration section handler for WebAii.Settings: Could not load file or assembly 'ArtOfTest.WebAii, Version=2.0.2.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified. (C:\C# Projects\VTMS\VTMS\bin\Release\VTMS.dll.config line 4)
  ----> System.IO.FileNotFoundException : Could not load file or assembly 'ArtOfTest.WebAii, Version=2.0.2.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified.

Is there something I need to change in the config file itself or something is wrong with the section handler ? 
Ta, 
Seth. 

2 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 15 Apr 2010, 05:23 PM
Hi SD,

You have probably run into a version number conflict. You'll notice the app.config is specifying version 2.0.2.0 and the software is unable to locate that specific version. You simply need to change it to the version you actually have installed. To discover this:
 
  1. Open an Explorer window
  2. Go to c:\windows\assembly
  3. Look at the version number displayed for the file "ArtOfTest.WebAii".
  4. Put that number into your app.config file.

That should resolve your problem.

Regards,
Cody
the Telerik team


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
SD
Top achievements
Rank 1
answered on 16 Apr 2010, 01:29 AM
Ta mate.

Problem solved. 

SD.
Tags
General Discussions
Asked by
SD
Top achievements
Rank 1
Answers by
Cody
Telerik team
SD
Top achievements
Rank 1
Share this question
or