Full Trust Issue

G

Guest

I have an asp.net application that I've installed on several of my customers
laptops (they run a localized IIS). I've been doing this for years without
and issue.

Today I attempted to install this application on a laptop that belonged to a
contractor (i.e. not supplied by us). I brought it onto the domain,
installed what I needed to, and everything seemed fine.

However, when I run the app (i.e. access the default.aspx page via IE), I
get a Security Exception - Your Application Is Not Running With Full Trust.
The exception appears to be thrown by one of my third party components.

I've modified my web.config file to include the <trust level="full" /> tag,
with no effect.

What am I missing here? I have complete control of the laptop, so I can
adjust pretty much whatever settings need to be adjusted.
 
G

Guest

Hi,
trust level setting in web.config is trying to set policy for AppDomain of
your ASP.NET application. Resulting policy is not built just from this
setting but from complete settings of .net framework. Policies are in
following hierarchy - Enterprise, Machine, User and last is AppDomain so you
have to check if higher levels allow your application to run with full trust.
You can do it in .net framework configuration tool. You will need to be
logged on as admin to make changes in these policies.

Anyway I recommend sandboxing approach. Leave your application in partial
trust (client's admin probably knows why he not allow to run all applications
in full trust)and allow higher privilege only to components (assemblies)
which really needs them.

Regards,
Ladislav
 
G

Guest

Thanks for the response. When I go to control panel --> Administrative
Tools, all I see is Microsoft .NET 1.1 Configuration - and I'm running
2.0.50727. It's definetly installed (there's the corresponding folder under
windows/Microsoft.NET/framework and my website is using it)

Is there another place that I can find the Admin tool for .NET 2.0?
 
J

Juan T. Llibre

Find it here :

Drive:\Visual Studio Installation Directory\SDK\v2.0\Bin\mscorcfg.msc
 

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top