Welcome to MSDN Blogs Sign in | Join | Help

December 2004 - Posts

Using CasPol to Fully Trust a Share

Since network shares by default only get LocalIntranet permissions, it's relatively common to want to use CasPol to fully trust some shares that you control and know are safe. However, CasPol syntax being what it is, the command to do this isn't immediately
Posted by shawnfa | 45 Comments
Filed under: ,

Home for the Holidays

I'm going to be on vacation until the end of December, so this blog will be going dark for about a week and a half. It'll be nice to get away for a while, especially since I haven't taken a vacation since last December ... I'm definitely looking forward
Posted by shawnfa | 2 Comments
Filed under:

Why Do I Still Get an Exception Accessing a File with Full FileIOPermission?

This issue (and its cousin: Why Do I Still Get an Exception Accessing the Registry with Full RegistryPermission?) come up fairly frequently on the newsgroups. The reasoning is actually very simple. The exception being thrown in these cases arises from
Posted by shawnfa | 5 Comments
Filed under: , ,

Hitting the Mailbag

I've gotten quite a few questions from this blog over the past several months. And although I can't answer all of them, here's some quick answers to some of the more common ones. If you do have more questions, its usually best to post them in the comments
Posted by shawnfa | 2 Comments
Filed under: , , ,

Handling Assemblies that Won't Load: Method 2.1

Yesterday , I showed an alternate to the shim method of gracefully failing from an assembly using an AppDomainManager . However, as David pointed out this method isn't particularly useful if you're going to be using it to detect failure to load your main
Posted by shawnfa | 0 Comments
Filed under: ,

Handling Entry Assemblies that Won't Load: Method 2

The last two days we worked on a shim application that allowed us to handle gracefully the condition where a program's main assembly will not load due to declarative security issues . While we were definitely able to improve on the shim yesterday, there
Posted by shawnfa | 3 Comments
Filed under: ,

Handling Entry Assemblies that Won't Load: Method 1.1

Yesterday we developed a simple Shim application in order to fail gracefully when our application's entry assembly doesn't have enough permission to meet its minimum grant set, and therefore won't be loaded. However, there were quite a few problems with
Posted by shawnfa | 2 Comments
Filed under: ,

Handling Entry Assemblies that Won't Load: Method 1

Last week, when I posted about failing to run in partial trust gracefully , the method I showed only worked if your main assembly could be loaded. However, if it has a minimum permission request that cannot be satisfied, your main method won't ever be
Posted by shawnfa | 8 Comments
Filed under: ,

Managed StrongName Refactoring Complete

I've completed refactoring the Managed StrongName project , and I've uploaded the new sources. The changes I made were all pretty much what I laid out in the previous post. We now have two modules built, msn.exe which is a thin wrapper around MS.StrongName.dll
Posted by shawnfa | 2 Comments

Failing to Run in Partial Trust Gracefully

When you write an application that requires a high level of trust to run properly, when a user tries to run that application from a location that gives it lower levels of trust, they're greeted with a rather unfriendly unhandled SecurityException. This
Posted by shawnfa | 2 Comments
Filed under: ,
 
Page view tracker