These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Security error when the control loads

I'm getting the following error:

Request for permission of type 'System.Security.Permissions.RegistryPermission,mscorlib, Version=2.0.0.0, Culuture=neutral, PublicKey Token=b77a5c561934e089' failed 

I found out from my Host provider that they will not edit the web.config to permit a full trust as described in this thread; (http://www.gleamtech.com/support/forums/showthread.asp?TID=2616).  

The FAQ from the Host is provided below.  The website which will use this control must stay with with the current host.  

This is a great control and my customer really wants to use it.  It is the best one out there to enable their file management activities.  What are my options?

Thanks,
Chris

---------

FAQ:  What Is Medium trust level and how does it affect my hosting account?


Trust level refers to permissions set in the Web.config file that dictate what operations can and cannot be performed by Web applications. Our ASP.NET 3.5 shared hosting servers use the default Medium trust level with the addition
of OleDbPermission, OdbcPermission, and a less-restrictive WebPermission.
Applications operating under a Medium trust level have no registry access, no access to the Windows event log, and
cannot use ReflectionPermission (but can use Reflection). Such applications can communicate only with a defined
range of network addresses and file system access is limited to the application's virtual directory hierarchy.

Using a Medium trust level prevents applications from accessing shared system resources and eliminates the
potential for application interference. Adding OleDbPermission and OdbcPermission allows applications to use
those data providers to access databases. WebPermission is modified to allow outbound http and https traffic.
Chris Clendening 4/1/2008 6:27 PM
The control needs registry access just for getting the file type strings such as “Microsoft Office Word Document”.

In the next version, we will examine the issue and see if GoDaddy hosting compatibility would be possible with some workarounds.
Cem Alacayir 4/2/2008 7:25 AM
"The control needs registry access just for getting the file type strings such as 'Microsoft Office Word Document'" 
This needs what kind of permission and how to set the permission on the server ? 
Xben 5/5/2008 12:09 AM
You need to change the trust level of ASP.NET, please see Request for the permission of type System.Security.Permissions...
Cem Alacayir 5/6/2008 2:26 PM