Skip to Content
ASP.NET 3.5 For Dummies®
book

ASP.NET 3.5 For Dummies®

by Ken Cox
February 2008
Intermediate to advanced
428 pages
8h 52m
English
For Dummies
Content preview from ASP.NET 3.5 For Dummies®

22.6. Head Off a Serious Lack of Trust

Hundreds of companies sell precompiled assemblies to enhance your Web pages, perform calculations, generate documents, and work miracles with .NET. Most vendors provide trial versions to play with before spending your (or your company's) cash. If the component works fine on your development system, check with the vendor on the exact permissions the component requires on the Web server. Specifically, ask whether it runs under Partial Trust.

Web-hosting companies set rules on their systems for ASP.NET and its components. For shared hosting, most companies restrict ASP.NET to running under Partial Trust. In the Partial Trust scenario, Web pages usually aren't allowed to access the Windows Registry or perform file access operations outside the site's directory. If any component that ASP.NET uses requires Full Trust — or depends on something that requires Full Trust — the permissions break down. Workarounds, such as using a virtual server or even a dedicated machine, are more expensive than shared hosting.

NOTE

A component that runs perfectly in the freewheeling Visual Web Developer environment might halt in the restrictive Partial Trust world.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780470195925Purchase book