Hi Manjusha,

Executing .Net assemblies located on a network will result in errors due to the permissions they are granted. Your machine is not trusting the assemblies and therefore won't grant them access privileges to run.

To fix this try the following. Open a Console window and run the following (modify it first)

%WINDIR%\Microsoft.Net\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file://// \\COMPUTERNAME\SHARENAME\*" FullTrust - exclusive on

Replace COMPUTERNAME and SHARENAME.

This is also needed if you ever intend to open a Visual Studio Project located on a network share as Visual Studio abides by the .Net Policy.

I hope this helps, please respond back if there are more issues.

Thanks

Victoria French
Metrosharp Corporation

On Mar 16, 2009, at 5:08 AM, Lokhande, Manjusha wrote:

Hi,

I am using NUnit for running test cases. It runs fine with the local dlls. But if I select a dll from a network drive, it throws anthis exception: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=b77a5c561934e089’ failed.

Can anybody help me what is the setting for accepting files from network path in NUnit?
It’s urgent!

Thanks,
Manjusha Lokhande



Important Notice to Recipients:
It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. 
http://p.sf.net/sfu/www-adobe-com_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to