Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > big problem with asp.net application trust level on new server

Reply
Thread Tools

big problem with asp.net application trust level on new server

 
 
Aahz
Guest
Posts: n/a
 
      11-28-2005
I have asp.net 1.1 web site with two controls downloaded from internet
(obout slide menu and webcharts), which runs fine on the old server.
Few days ago my hosting provider sent me on new server with restricted
trust policy (medium trust). Since that I cannot configure my
web.config to run !!!
I have noticed that two controls mentioned above create problem (when I
remove them it works fine , without editing web.config at all ).

Can you please help me with my web.config setup (I tried with
<system.web>
<trust level="Medium" originUrl="" />, but doesn't work )

How can I set up my trust level to work with hosting trust policy and
still use those two controls ???

Thank you ;

 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      11-28-2005
If you get a security exception the exception text should tell you
what permission the controls are being denied. Do you know what that
is?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 28 Nov 2005 00:48:52 -0800, "Aahz" <(E-Mail Removed)> wrote:

>I have asp.net 1.1 web site with two controls downloaded from internet
>(obout slide menu and webcharts), which runs fine on the old server.
>Few days ago my hosting provider sent me on new server with restricted
>trust policy (medium trust). Since that I cannot configure my
>web.config to run !!!
>I have noticed that two controls mentioned above create problem (when I
>remove them it works fine , without editing web.config at all ).
>
>Can you please help me with my web.config setup (I tried with
> <system.web>
> <trust level="Medium" originUrl="" />, but doesn't work )
>
>How can I set up my trust level to work with hosting trust policy and
>still use those two controls ???
>
>Thank you ;


 
Reply With Quote
 
 
 
 
Aahz
Guest
Posts: n/a
 
      11-28-2005
I got this:

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.


Stack Trace:


[SecurityException: Request failed.]
oaknew._default.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +2112
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication+IExecutionStep.Execute()
+179
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +87

What I have to do??

 
Reply With Quote
 
Scott Allen
Guest
Posts: n/a
 
      11-28-2005
Can you reproduce this exception on your local machine and get more
information about the exception? You could configure your development
machine with medium trust, run the debugger, and hopefully get more
information about the exception, like "permission of type "xyz"
failed".

Then you'll have to approach your ISP and ask if you can have "xyz"
permission.

Do you know what these controls do? If they use COM interop or native
code, I doubt your ISP will let you have those unmanaged code
permissions - that is essentially running with full trust.

--
Scott
http://www.OdeToCode.com/blogs/scott/


On 28 Nov 2005 10:31:50 -0800, "Aahz" <(E-Mail Removed)> wrote:

>I got this:
>
>Source Error:
>
>An unhandled exception was generated during the execution of the
>current web request. Information regarding the origin and location of
>the exception can be identified using the exception stack trace below.
>
>
>Stack Trace:
>
>
>[SecurityException: Request failed.]
> oaknew._default.Page_Load(Object sender, EventArgs e) +0
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +2112
> System.Web.UI.Page.ProcessRequest() +218
> System.Web.UI.Page.ProcessRequest(HttpContext context) +18
>
>System.Web.CallHandlerExecutionStep.System.Web.Ht tpApplication+IExecutionStep.Execute()
>+179
> System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
>completedSynchronously) +87
>
>What I have to do??


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change the application's trust level? Rishi ASP .Net 2 11-11-2009 03:31 PM
Full trust and medium trust in .net and websites Linda ASP .Net Security 1 08-31-2006 05:16 AM
How do you change the trust level for an APS.NET application? g3000 ASP .Net 2 01-31-2006 02:30 AM
Security/Trust Level on Web Application Carl Gilbert ASP .Net 0 07-15-2005 12:13 PM
How can I change the application's trust level in the configuration file. Naci MCSD 1 03-06-2004 07:24 AM



Advertisments