66366 members! Sign up to stay informed.

Sponsored Links


Resources

.NET Research Library
Get .NET related white papers, case studies and webcasts

Tools Tools Tools Messages: 0 Messages: 0 Messages: 0 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

FindAPTC

Posted by: Keith Brown on April 08, 2004 DIGG
This sample allows you to find out exactly which assemblies in the .NET Framework class library allow partially trusted callers. I wrote this to point out how infeasible it is today to write locally installed code that doesn't run with full trust. MS plans to make this better in the future, but for now, practically speaking, you will most likely be forced to allow all the managed code on your server to run with full trust. Why care? Well it'd be nice to eventually be able to run each assembly with least permissions - why does my assembly need access to the file system in order to calculate PI to the Nth digit?

Even more practically, it'd be nice for administrators to be able to reduce permissions for local code to require it to be at least verifiably type safe. Doing this today isn't feasible, as this means the code wouldn't have "full trust" and thus wouldn't be able to call into many important assemblies like System.Web (ASP.NET), or System.Management.dll (WMI) for instance.

Running with full trust means that there is no guarantee that the code is type safe. Fully trusted code is allowed to request the SkipVerification security permission, which allows it to bypass verification. Managed C++ apps request this permission, as do C# programs compiled with the /unsafe switch. Don't believe anyone who tells you that "all .NET code is verifiably typesafe", because type safety isn't being enforced today except with mobile code.

Download


Free book downloadFree book downloadFree book download

Essential XML Quick Reference: A Programmer's Reference to XML, XPath, XSLT, XML Schema, SOAP, and More

Essential XML Quick Reference looks at mainstream XML technologies and serves as a thorough quick reference that answers the most common XML-related technical questions. It provides complete coverage of each topic along with plenty of meaningful examples.

Servlets and JavaServer Pages: The J2EE Technology Web Tier

Servlets and JSP: the J2EE Web Tier covers how to install a Servlet/JSP environment and what is in the JSP 2.0, Servlet 2.4, and JSTL 1.0 specs. The book also covers state management, design patterns, internationalization support, multi-client design, Java database connectivity, and more.
BooksBooksBooks
Advanced Visual Basic 6
Matthew Curland


Essential XML Quick Reference
Aaron Skonnard


Component Development for the Java Platform
Stuart Halloway


Essential COM
Don Box


Developing Applications with Visual Studio.NET
Richard Grimes


C# Primer
Stan Lippman


Essential XML: Beyond MarkUp
Don Box


VB.NET Core Classes in a Nutshell
Budi Kurniwan


ASP Internals
Jon Flanders


Essential ADO.NET
Bob Beauchemin


Debugging Windows Programs
Everett McKay


C# in a Nutshell
Peter Drayton


ServerBased Java Programming
Ted Neward


ATL Internals
Brent Rector


Transactional COM+
Timothy Ewald


Java Rules
Douglass Dunn


Effective Visual Basic
Ted Pattison


Programming Windows Security
Keith Brown


Essential IDL
Martin Gudgin


Essential ASP.NET with Examples in Visual Basic.NET
Fritz Onion


Essential ASP.NET with Examples in C#
Fritz Onion
LinksLinksLinks
Read more Perfect XML
Read more .NET 247 resource site
Read more DM's .NET Web Mailing List
Read more Terrarium
Read more DM's DOTNET Mailing List
Read more DM's Webservices Applications List
Read more XML.com
Read more DM's Webservices Futures Mailing List
Read more The Jakarta Project
Read more DM's SOAP Mailing List
Read more Microsoft .NET Homepage
Read more MSDN Magazine
Read more xmlhack.com
Read more Microsoft GotDotNet Site
Read more Microsoft .NET ECMA Working Documents
Read more DM's DIME Mailing List
Read more DM's DOTNET-ADVOCACY Mailing List
Read more W3C XML
Read more Microsoft's Web Services
Read more XML-DEV
Read more XML.org

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map