M
Michael.Drescher
Hi out there,
I get a SecurityPermission Exception when trying the following:
My local executable calls an Assembly (let's call it Remote.dll) that
resides on a mapped network drive. This assembly in turn calls a local
Assembly ("Local.dll"), which calls some unmanaged code (a COM Dll).
(Yes, this is somewhat complicated, but cannnot be changed for various
reasons).
When "Local.dll" tries to access the COM dll, I get a
SecurityPermission Exception. I tried to set the
"AllowPartiallyTrustedCallers" Attribute in the Local DLL, without
success.
When I move "Remote.dll" to my local system, everything works fine,
but that is not what we want. Also, when I change the .Net permissions
for the "Local Intranet" via the "Administrative Tools" to "Full
trust", it works fine, but again, this is not a solution for us, as
our final customers cannot do this (they haven't got VS Tools
installed). So I am looking for a solution within my code itself.
Anybody out there who can help me out?
I am working with .Net 2.0 SP1 on a Windows XP.
I get a SecurityPermission Exception when trying the following:
My local executable calls an Assembly (let's call it Remote.dll) that
resides on a mapped network drive. This assembly in turn calls a local
Assembly ("Local.dll"), which calls some unmanaged code (a COM Dll).
(Yes, this is somewhat complicated, but cannnot be changed for various
reasons).
When "Local.dll" tries to access the COM dll, I get a
SecurityPermission Exception. I tried to set the
"AllowPartiallyTrustedCallers" Attribute in the Local DLL, without
success.
When I move "Remote.dll" to my local system, everything works fine,
but that is not what we want. Also, when I change the .Net permissions
for the "Local Intranet" via the "Administrative Tools" to "Full
trust", it works fine, but again, this is not a solution for us, as
our final customers cannot do this (they haven't got VS Tools
installed). So I am looking for a solution within my code itself.
Anybody out there who can help me out?
I am working with .Net 2.0 SP1 on a Windows XP.