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

.Net Version Compatibility

3 Answers 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 22 Mar 2012, 07:05 PM
I executed a (web) test list in which 34 of my 35 tests passed and one failed.  The failed test bombed on initial execution; I included the test log details below.  This was executed on my PC (vs. a remote/virtual machine).  I've not encountered any .Net Framework compatibility issues before.  Anyone recognize what's going on here?

Thanks in advance!

------------------------------------------------------------
'3/22/2012 1:29:17 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.
'3/22/2012 1:29:17 PM' - Starting execution....
'3/22/2012 1:29:18 PM' - Detected custom code in test. Locating test assembly: irth_Solutions_Web_Site_Redesign.dll.
'3/22/2012 1:29:18 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'3/22/2012 1:29:18 PM' - System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'3/22/2012 1:29:19 PM' - Test completed!

3 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 22 Mar 2012, 07:51 PM
Forgot to mention, this was executed using Firefox, in case that helps.
0
Cody
Telerik team
answered on 23 Mar 2012, 12:01 AM
Hello Richard,

Please try implementing this solution. Let us know if you still have problems.

All the best,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Richard
Top achievements
Rank 1
answered on 23 Mar 2012, 03:29 PM
Thanks!  Updated config file as suggested.  Easy fix!
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Cody
Telerik team
Share this question
or