Re: Security Exception after splitting application in different assemblies
From: Fernando Vicaria [MSFT] (fvicaria_at_online.microsoft.com)
Date: 06/15/04
- Previous message: Fernando Vicaria [MSFT]: "Re: Malicious code Effects on Visual Studio.NET"
- In reply to: Sven Kuenzler: "Security Exception after splitting application in different assemblies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 15 Jun 2004 09:05:30 -0700
Did you sign any of the 3 assemblies?
"Sven Kuenzler" <svenk@despammed.com> wrote in message
news:OXGtHuYUEHA.732@TK2MSFTNGP10.phx.gbl...
>I have an application that works fine when I build it in one monolithic
>executable assembly. Now I wanted to factor out my NUnit tests. So I split
>the application into a "business logic" dll, a unit test dll and the
>executable merely containing the GUI.
>
> In this configuration, however, I get a couple of SecurityExceptions
> complaining that various permissions (like RegistryPermission or
> UIPermission) are not granted to my application. When accessing the code
> via the unit test dll though, everything appears to be running fine. I do
> not test the UI stuff, but the registry class _is_ used by the tests
> without a problem.
>
> I first suspected that this was because of some unmanaged code which I use
> which now resides in the business logic dll, making this assembly somehow
> "untrusted". However, after commenting out this stuff, the problem still
> remains.
>
> Do you have any advice or direction where to look?
>
> Thanks, Sven
- Previous message: Fernando Vicaria [MSFT]: "Re: Malicious code Effects on Visual Studio.NET"
- In reply to: Sven Kuenzler: "Security Exception after splitting application in different assemblies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|