469,962 Members | 2,208 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

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

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 ;

Nov 28 '05 #1
3 1396
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" <ju*******@hotmail.com> 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 ;


Nov 28 '05 #2
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??

Nov 28 '05 #3
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" <ju*******@hotmail.com> 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??


Nov 28 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Michael S | last post: by
1 post views Thread by Loane Sharp | last post: by
11 posts views Thread by mc | last post: by
4 posts views Thread by =?Utf-8?B?QXZhRGV2?= | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.