Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2005, 12:27 PM
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mindyjeanne
Default 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
 
Old August 22nd, 2005, 02:22 PM
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mindyjeanne
Default

If anyone has read the above, ignore. I thought I needed to go through the code to set permission, when I misinterpreted which computer needed LocalIntranet Trust set.

Mindy Jeanne

Mindy Jeanne Leslie
Thanx for all help





Similar Threads
Thread Thread Starter Forum Replies Last Post
want to use the old Vc++ dll in asp.Net sjs950 ASP.NET 1.0 and 1.1 Basics 0 May 25th, 2006 05:30 AM
How to use interface in VC++.NET smartravi Visual C++ 0 February 28th, 2006 10:01 AM
convert VC++ 5.0 project to VC++ 6.0 MIDL ERR mdahd90943 Visual C++ 0 May 26th, 2005 08:57 AM
vc.net c2065 davidwong C++ Programming 1 October 8th, 2004 01:36 PM
DLL in VC#.NET sachin-csharp .NET Framework 2.0 1 August 23rd, 2004 11:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.