DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 04:58:02 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    KP
          2    Ladislav Mrnka
          3    KP
                 4    Juan T. Llibre
                 5    Ladislav Mrnka
                        6    KP


Full Trust Issue   
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.
Date:Tue, 14 Aug 2007 04:58:02 -0700   Author:  

RE: Full Trust Issue   
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


"KP" wrote:


> 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.
Date:Tue, 14 Aug 2007 05:18:04 -0700   Author:  

RE: Full Trust Issue   
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?
Date:Tue, 14 Aug 2007 05:30:02 -0700   Author:  

Re: Full Trust Issue   
Find it here :

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



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"KP"  wrote in message news:AADF539E-D564-4D47-BD19-77D36198952D@microsoft.com...

> 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? 
Date:Tue, 14 Aug 2007 08:41:44 -0400   Author:  

RE: Full Trust Issue   
Hi,

it looks like improvement from Microsoft because .Net 2.0 Configuration tool 
is only shipped with .Net Framework SDK :(. I hope you can at least manage 
code access security by caspol console application. 
http://msdn2.microsoft.com/en-us/library/cb6t8dtz(VS.80).aspx  

Regards,
Ladislav

"KP" wrote:


> 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?
Date:Tue, 14 Aug 2007 06:00:03 -0700   Author:  

RE: Full Trust Issue   
OK - I found the answer in the following posts (especially the first one):

http://community.devexpress.com/forums/p/55890/189948.aspx

http://www.essentialobjects.com/Forum/Default.aspx?g=posts&m=829

I was using ASPXLAB components, long story short I added the following to my 
web.config

   <httpModules>
     <add name="ASPXLAbsRuntime" type="ASPXLabs.Web.Runtime"/>
   </httpModules>

Add that seemed to take care of the problem.  Thanks for your replies....
Date:Wed, 15 Aug 2007 04:48:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us