nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01701
[Bug 766749] [NEW] net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
Public bug reported:
Hi.
Thank you for NUnit.
I am currently using NUnit 2.5.9.10348, but this still seems to be an
issue looking at the latest source in the trunk.
The issue has also been reported in at least two other places:
http://stackoverflow.com/questions/2635794/nunit-fail-with-system-argumentexception-the-net-4-0-framework-is-not-available
http://stackoverflow.com/questions/930438/nunit-isnt-running-visual-studio-2010-code
Basically, net-2.0\nunit-console-x86.exe.config should have a <startup
/> element as follows:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
...
</configuration>
In this way, net-2.0\nunit-console-x86.exe will be able to load .net 4
and mixed-mode assemblies.
Also net-2.0\nunit-console-x86.exe.config should enable
loadFromRemoteSources as follows:
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
..
</runtime>
</configuration>
In this way, net-2.0\nunit-console-x86.exe can load dlls (in full trust
mode) that have been copied from the network for example (partial
trust).
Here is a thread that has better descriptions on the required changes:
http://stackoverflow.com/questions/3663227/fluentnhib-system-data-sqllite-vs2010
Thank you.
** Affects: nunitv2
Importance: Undecided
Status: New
** Tags: dotnet4
** Description changed:
Hi.
Thank you for NUnit.
- I am currently using NUnit 2.5.9.10348, but this seems to be an issue
- looking at the latest source in the trunk.
+ I am currently using NUnit 2.5.9.10348, but this still seems to be an
+ issue looking at the latest source in the trunk.
The issue has also been reported in at least two other places:
http://stackoverflow.com/questions/2635794/nunit-fail-with-system-argumentexception-the-net-4-0-framework-is-not-available
http://stackoverflow.com/questions/930438/nunit-isnt-running-visual-studio-2010-code
Basically, net-2.0\nunit-console-x86.exe.config should have a <startup
/> element as follows:
<configuration>
- <startup useLegacyV2RuntimeActivationPolicy="true">
- <supportedRuntime version="v4.0" />
- </startup>
- ...
+ <startup useLegacyV2RuntimeActivationPolicy="true">
+ <supportedRuntime version="v4.0" />
+ </startup>
+ ...
</configuration>
In this way, net-2.0\nunit-console-x86.exe will be able to load .net 4
and mixed-mode assemblies.
Also net-2.0\nunit-console-x86.exe.config should enable
loadFromRemoteSources as follows:
<configuration>
- <runtime>
- <loadFromRemoteSources enabled="true" />
- ..
- </runtime>
+ <runtime>
+ <loadFromRemoteSources enabled="true" />
+ ..
+ </runtime>
</configuration>
In this way, net-2.0\nunit-console-x86.exe can load dlls (in full trust
mode) that have been copied from the network for example (partial
trust).
Here is a thread that has better descriptions on the required changes:
http://stackoverflow.com/questions/3663227/fluentnhib-system-data-sqllite-vs2010
Thank you.
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/766749
Title:
net-2.0\nunit-console-x86.exe.config should have a <startup /> element
and also enable loadFromRemoteSources
Status in NUnit V2 Test Framework:
New
Bug description:
Hi.
Thank you for NUnit.
I am currently using NUnit 2.5.9.10348, but this still seems to be an
issue looking at the latest source in the trunk.
The issue has also been reported in at least two other places:
http://stackoverflow.com/questions/2635794/nunit-fail-with-system-argumentexception-the-net-4-0-framework-is-not-available
http://stackoverflow.com/questions/930438/nunit-isnt-running-visual-studio-2010-code
Basically, net-2.0\nunit-console-x86.exe.config should have a <startup
/> element as follows:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
...
</configuration>
In this way, net-2.0\nunit-console-x86.exe will be able to load .net 4
and mixed-mode assemblies.
Also net-2.0\nunit-console-x86.exe.config should enable
loadFromRemoteSources as follows:
<configuration>
<runtime>
<loadFromRemoteSources enabled="true" />
..
</runtime>
</configuration>
In this way, net-2.0\nunit-console-x86.exe can load dlls (in full
trust mode) that have been copied from the network for example
(partial trust).
Here is a thread that has better descriptions on the required changes:
http://stackoverflow.com/questions/3663227/fluentnhib-system-data-sqllite-vs2010
Thank you.
Follow ups
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2013-10-05
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-28
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Launchpad Bug Tracker, 2011-11-28
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-27
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-26
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-20
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-20
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-04
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-11-03
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Launchpad Bug Tracker, 2011-11-03
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-10-28
-
[Bug 766749] Re: net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Rami Abughazaleh, 2011-04-20
-
Re: [Bug 766749] [NEW] net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Charlie Poole, 2011-04-20
-
[Bug 766749] [NEW] net-2.0\nunit-console-x86.exe.config should have a <startup /> element and also enable loadFromRemoteSources
From: Rami Abughazaleh, 2011-04-20
References