new CAS SecurityClass in asp.net 2.0 medium trust

I was taking a look at Code Access trust levels in asp.net 2.0 tonight, to make sure that our existing medium trust setup for DotNetNuke  wouldn't have any issues. After running a quick compare via Beyondcompare , I noticed there was a new SecurityClass, SmtpPermission. After a look in the beta documentation , it looks like it's there to control access to System.Net.Mail. At the minute, it's set to connect, which would match the previous default, but I can see lots of hosting providers disabling it, and adding their own custom Assemblies to the GAC to regulate the types and quantities of emails you send from your website.

The other change is that Microsoft have tweaked the FullTrust node from
                                                                class="UrlMembershipCondition"
                                    Url="$Gac$/*"
                                    version="1"

                            />

to

                                                                class="GacMembershipCondition"
                                    version="1"
                            />
which looks like it should simplify the code required to check whether an assembly is loaded from the Global Assembly Cache (GAC)

Print | posted on Monday, July 25, 2005 1:50 AM

Feedback

# re: new CAS SecurityClass in asp.net 2.0 medium trust

Left by John at 4/19/2006 6:00 PM
Gravatar I accessed this site from google.com as I was actually having trouble with a custom module in DNN 4.x ASP.NET 2.0. CrystalTech, my web hosting provider allows for Medium Trust, so I assumed all would be fine, but the File/IO and/or reflection requirements of this module prevent it from being used within a DNN container page. I didn't have any problem with it locally, obviously, because I run with FullTrust (really, no trust prohibitions) so I know it is a trust issue. Since I cannot create a custom trust config file and deploy to my webhosting company, I wasn't sure how to handle this and was interested in knowing if anyone else was running into this issue. Thanks! John

# new CAS SecurityClass in asp.net 2.0 full trust to upload file

Left by Shadab Hasan at 10/23/2006 11:25 AM
Gravatar i want to upload file on the server, how it is possible , i am getting the error message to server


System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Your comment:





 
Please add 6 and 8 and type the answer here:

Copyright © Cathal Connolly

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski