I am unable to run the scripts in QuickStarts_VSTs_VB project. when i am running any method it is throwing error. below is the error in result file
Initialization method QuickStarts_VSTS_VB.BrowserActions.MyTestInitialize 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, Version=2.1.0.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c' or one of its dependencies. The system cannot find the file specified
Pls suggest me what is wrong
thanks
Ravi
7 Answers, 1 is accepted
Can you show the Assembly References in that Project and set the SpecificVersion to 'false' from the reference properties? This should get rid of the error.
Best wishes,
Konstantin Petkov
the Telerik team
thanks for the reply, below is the Assembly file. where i need the change
Imports
System
Imports
System.Reflection
Imports
System.Runtime.InteropServices
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
' Review the values of the assembly attributes
<Assembly: AssemblyTitle(
"QuickStarts_VSTS_VB")>
<Assembly: AssemblyDescription(
"")>
<Assembly: AssemblyCompany(
"")>
<Assembly: AssemblyProduct(
"QuickStarts_VSTS_VB")>
<Assembly: AssemblyCopyright(
"Copyright © 2009 ArtOfTest Inc.")>
<Assembly: AssemblyTrademark(
"")>
<Assembly: CLSCompliant(
True)>
<Assembly: ComVisible(
False)>
'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid(
"f9e5f260-7f3d-45de-a3e7-a1c7a6c20d63")>
' Version information for an assembly consists of the following four values:
'
' Major Version
' Minor Version
' Build Number
' Revision
'
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:2.0.0.0
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion(
"2.0.0.0")>
<Assembly: AssemblyFileVersion(
"2.0.0.0")>
I have changed SpecificVersion to 'false' for all Assembly References and ran again. still getting the same error
thanks
Ravi
Please check the attached images. In VB the References are not visible unless you click the Show All Files button in the Solution Explorer toolbar.
Kind regards,
Konstantin Petkov
the Telerik team
I am able to see them and changed the property as "False" for ArtofText.Comman and ArtofTest.WebAii. still getting same error
thanks
Ravi
Can you please try to exclude the app.config(see attachment) file from the project, It seem it contains invalid reference. Then rebuild and try to run a test.
Hope this helps.
Nikolai
the Telerik team
thanks for reply. Now I am able run the test after excluding app.config file.
Once again thanks for the help.
Thanks
Ravi