VC++ .NET
Hi,
I'm trying to write a simple VC++ .NET application, which needs to be run from a share. The problem is with TRUST. I'm able to run the program locally w/o a problem, but I get exception security.securityPolicy when trying to access from a network share.
My searches keep leading me to the same place:
Adding Trust to my assembly.
The only problem with that, is any .NET tool that i invoice, like increasing Trust for instance, tells me that it can't open the Assembly.
As I search on I keep coming across adding the following code:
[assembly: System::Reflection::SecurityPermissionAttribute(
SecurityAction::RequestMinimum,
SkipVerification=false)];
That produces a few error codes.
c:\apps\C_Code\AssemblyStuff\AssemblyStuff.cpp(10) : error C3746: ' SecurityPermissionAttribute': only custom attributes can be used on assemblies or modules
c:\apps\C_Code\AssemblyStuff\AssemblyStuff.cpp(12) : error C2337: ' SecurityPermissionAttribute' : attribute not found; it is neither a built-in nor a custom attribute that is accessible in the current namespace
Am I spinning my wheels, or just completely off base ?
Mindy Jeanne Leslie
Mindy Jeanne Leslie
Thanx for all help
|