Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
That assembly does not allow partially trusted callers
Message
From
05/04/2011 22:07:50
 
General information
Forum:
ASP.NET
Category:
Security
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01502381
Message ID:
01506207
Views:
32
>I have a VFP 9 application that calls a VB.net 2008 dll that I wrote. The assembly used to work, but my latest update now gives the "That assembly does not allow partially trusted callers" from Foxpro when I call it on my development machine. I have tried adding
>
>Assembly: Security.AllowPartiallyTrustedCallers()
>
> to assemblyinfo.vb but still get the error.
>
>Here's the rub: I deploy the application to my test machine (a tablet running Vista 64bit) and it runs fine. I just had to reregister the dll on the tablet and off we go. I've tried everything I can think of on my development machine and always get the trust issue.
>
>Any advice would be greatly appreciated.

From your PC, is this a local drive or a map drive to something else on your local environment?

I assume you have the same .NET Framework and both environments. Is your assembly strong named?

I have no done anything like that but found an alternative that might work. See about:

[assembly: System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.RequestMinimum, Name="FullTrust")]
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform