p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 8th, 2008, 04:41 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2008
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.














Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 11th, 2008, 12:45 PM
Wrox Author
Points: 228, Level: 4
Points: 228, Level: 4 Points: 228, Level: 4 Points: 228, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: Redmond, Washington, USA.
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
running Win32 dll in medium trust Londoner9 BOOK: Professional ASP.NET 2.0 Security, Membership, and Role Management ISBN: 978-0-7645-9698-8 1 October 31st, 2008 02:26 PM
User Level Security cpbsmw Access 1 February 1st, 2007 08:41 AM
User Level Security cpbsmw Access 2 January 26th, 2007 04:07 PM
Custom Membership Provider and Medium Trust level mosi_asgari BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 December 24th, 2006 11:11 AM
Problem creating user-level security JackNimble Access 2 October 11th, 2004 12:20 PM



All times are GMT -4. The time now is 12:09 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc