I have the following situation : When running a simple console application that uses Aspose.Words.dll i have the following error :
Unhandled Exception: System.Security.SecurityException: That assembly does not a
llow partially trusted callers.
at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly a
sm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, Secur
ityAction action, Object demand, IPermission permThatFailed)
at PicConv.PictureConverter.Main(String args)
The action that failed was:
The assembly or AppDomain that failed was:
PicConv, Version=1.4.5424.30122, Culture=neutral, PublicKeyToken=null
The Zone of the assembly that failed was:
The Url of the assembly that failed was:
The OS is Windows Server 2003 and the H drive is a network drive.
When running the same application on Windows 7 on the same network drive it is working.
My application has the [assembly: AllowPartiallyTrustedCallers] in the AssemblyInfo.cs file.
Can you help me please