|
|
 |
BOOK: Professional ASP.NET 2.0 Security, Membership, and Role Management ISBN: 978-0-7645-9698-8
 | This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Security, Membership, and Role Management by Stefan Schackow; ISBN: 9780764596988 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Professional ASP.NET 2.0 Security, Membership, and Role Management ISBN: 978-0-7645-9698-8 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

August 8th, 2008, 04:41 PM
|
|
Registered User
|
|
Join Date: Aug 2008
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Win32 and Medium level security
Hi,
We have built a special high performance DB for our particular application which also needs to run under ASP.Net 2.
As you might have guessed from the subject it is in C++ and uses
Win32 for higher performance. The DB has over 6 million records and counting.
Is there a way of running ASP.Net application at medium level security but at the same time allowing a particular code area to be able to run Win32 application? We need the higher performance as well as portability of C++.
A sample code would be great.
Thanks in advance.
|

August 11th, 2008, 12:45 PM
|
|
Wrox Author
|
|
Join Date: Feb 2006
Location: Redmond, Washington, USA.
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You need a managed wrapper for your C++ code that has the following characteristics:
1. The managed wrapper needs the ability to call unmanaged code
2. The managed wrapper needs to allow partial trust user code to call it
You can accomplish this by writing a managed assembly that is attributed with APTCA, and placing the assembly in the GAC. By existing the GAC the assembly can internally assert unmanaged code permissions which will allow it to call into your C++ code. The existence of the APTCA attribute will allow untrused ASP.NET code to call public methods exposed from your managed assembly.
Chapter 3 in the book has a simple walkthrough of creating a GAC-deployed APTCA attributed assembly in the section titled "Working with the AllowPartiallyTrustedCallers Attribute"
-Stefan
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |