473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Aug 14 '07 #1
5 4800
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.
Aug 14 '07 #2
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?
Aug 14 '07 #3
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 español : http://asp.net.do/foros/
======================================
"KP" <KP@discussions.microsoft.comwrote in message news:AA**********************************@microsof t.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?

Aug 14 '07 #4
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/lib...tz(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?
Aug 14 '07 #5
OK - I found the answer in the following posts (especially the first one):

http://community.devexpress.com/foru...90/189948.aspx

http://www.essentialobjects.com/Foru...?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....
Aug 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
1
by: Ram Baruch | last post by:
Hi, I want to determine if my application is running under level of trust: 'full trust'. How can I do it? Regards, Ram.
1
by: NonDeterministic | last post by:
Hello! Everytime I recompile a program with csc, I have to go to ".NET Framework 2.0 Configuration" / Runtime Security Policy and increase the assembly trust to make it run properly. How can I...
0
by: Lucas Tam | last post by:
Hi all, I've created an assembly with a strong name and added it to .NET's configuration manager with Full Trust. However, the assmebly still will not load in the Internet Zone. I can...
0
by: Bart | last post by:
hi all iam using a webservice with windows authentication, set the webservices to full trust and the application pool is set to Network service. iam logged in as Administrator and iam calling...
4
by: Anders K. Olsen | last post by:
Hello group. I would like to develop my software from a network share, that is, place my code on a network share. Is it possible to grant Full Trust to this share (e.g. X:) and only to this...
3
by: musosdev | last post by:
Hi guys I've got the following error on a project which is running locally on a vs2005 machine (built in webserver), trying to connect to my win2k3 server active directory. the error is... ...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
Hi there. I posted an earlier issue under the name "That assembly does not allow partially trusted callers" but have now identified what the issue is. As explained before I am working in...
0
by: agent-s | last post by:
The other day I was able to debug my program with full trust, without turning caspol off. For some reason now, I think it may be due to recent XP updates, I can't do so anymore, and I have to turn...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.