Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: Hosted Environment - ERROR MESSAGE
FMEDINAG
FMEDINAG@GMAIL.COM

From: EL SEGUNDO, CA USA
Posts: 2
Member Since: 06/07/06
posted August 20, 2006 6:25 PM

Hi, I get the following error when I tried to call an aspx page with a couple of live drop down list in a hosted enviroment.

Please help

Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error:


Line 13:   <form id="form1" runat="server">
Line 14:   <div>
Line 15:     <cc1:livedropdownlist id="ddldirectory1" runat="server"></cc1:livedropdownlist>
Line 16:     <br />
Line 17:     <br />
 

Source File: C:\Inetpub\wwwroot\browsner.com\wwwroot\power.aspx  Line: 15

Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted August 23, 2006 4:17 PM

The next release of LiveControls will contain an adjustment to enable partially trusted calls.
bseibenick

From: Toledo, OH USA
Posts: 22
Member Since: 05/16/05
posted August 21, 2007 1:17 PM

I was wondering if this issue has been resolved yet? I have downloaded the most recent version of LiveControls from your website but I have not found any information on how get around the partial trust issue due to my hosting provider.

Thanks,
Brian
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted August 21, 2007 4:05 PM

Hi Brian,
The latest release version has the adjustment Jeff speaks of.
Nothing additional is required on your part.

Please make sure your project is actually referencing version 1.6.0.0 of the LiveControls dll.

Thanks,
-ken
bseibenick

From: Toledo, OH USA
Posts: 22
Member Since: 05/16/05
posted August 22, 2007 11:10 AM

Boy...that was weird. I recently purchased an upgrade from 1.4.1 to the current 1.6 version but my project decided it would prefer to reference the old version I uninstalled! Getting the 1.6 dll in place took care of the security exception message, but now I am getting a System.MethodAccessException message that says 'attempt to access the method failed' and it is failing on the first livecontrol in the form. To verify no other issues I created a single page web with a live label and a live button on it.

Is there anything else you guys can suggest when working with a hosted service or am I just screwed? I know the hosted service is running in Medium trust mode.

Any advice would be appreciated since I think I may be stuck between a client and their hosting service...

Brian
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted August 23, 2007 4:05 PM

Hi Brian,
I am in the midst of researching this.
Unfortunately, there are several additional restrictions in a Medium Trust environment that are going to prevent LiveControls from working.

Specifically, these restrictions include ReflectionPermissions, FileIOPermissions and SecurityPermissions.

At this time, the only option I know of would be for your host service to set up a custom policy for your application.

We are currently reviewing other options, and I will post if there are updates.

-ken

Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX