Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: 6 Mar 2007 04:33:02 -0800,    group: microsoft.public.vstudio.extensibility        back       


Load assemblies fail with a SecurityException   
Hi there!

I'm working on an addin that much like ReSharper TestRunner and
TestDriven.NET runs unit tests inside of Visual Studio.

The problem I'm having is that when I try to load the assemblies
containing the tests, I get an SecurityException with the message
"Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed."

I've tried adding a FileIOPermssion Assert, but that doesn't work. Is
there something easy I can do to load assemblies while running inside
the DTE2 events?

Regards,

Andres Taylor
date: 6 Mar 2007 04:33:02 -0800   author:   unknown

Re: Load assemblies fail with a SecurityException   
On 6 Mar, 12:33, andres.tay...@dotway.se wrote:

> The problem I'm having is that when I try to load the assemblies

I forgot to write. I do this by doing a
AppDomain.CreateInstanceFromAndUnwrap(assembly, typeName)

Don't know if it matters.

/Andres
date: 6 Mar 2007 05:34:56 -0800   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us