problem with thrust policy on web server

A

Aahz

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 ;
 
D

Dominick Baier [DevelopMentor]

Hello Aahz,

you don't have to do anything special as the provider already forces you
into medium trust.

What error do you get when using the control.

I suppose a SecurityException - either a request for SecurityPermission faild
(native code) - or the assembly does not allow partially trusted callers...
 
A

Aahz

Hello, thanks for reply;

I got error: Parser Error Message: Required permissions cannot be
acquired.

So you say that only solution is to change hoting provider ?
 
D

Dominick Baier [DevelopMentor]

Hello Aahz,

if these don't work in medium trust - yes. Maybe contact the control vendor
or try to debug it in medium trust (on a local) machine to figure out what's
the problem.
 
A

Aahz

here is security exeption:
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.]
ch._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.HttpApplication+IExecutionStep.Execute()
+179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87

I am not sure what to do??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top