Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / March 2007

Tip: Looking for answers? Try searching our database.

Load assemblies fail with a SecurityException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
andres.taylor@dotway.se - 06 Mar 2007 12:33 GMT
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
andres.taylor@dotway.se - 06 Mar 2007 13:34 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.