473,698 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1509
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*******@hotm ail.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:
[SecurityExcepti on: Request failed.]
oaknew._default .Page_Load(Obje ct sender, EventArgs e) +0
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +2112
System.Web.UI.P age.ProcessRequ est() +218
System.Web.UI.P age.ProcessRequ est(HttpContext context) +18

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on+IExecutionSt ep.Execute()
+179
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +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*******@hotm ail.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:
[SecurityExcepti on: Request failed.]
oaknew._default .Page_Load(Obje ct sender, EventArgs e) +0
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +2112
System.Web.UI.P age.ProcessRequ est() +218
System.Web.UI.P age.ProcessRequ est(HttpContext context) +18

System.Web.Cal lHandlerExecuti onStep.System.W eb.HttpApplicat ion+IExecutionS tep.Execute()
+179
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynch ronously) +87

What I have to do??


Nov 28 '05 #4

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

Similar topics

3
2092
by: Matthias Heuer | last post by:
Hi, we try to deploy a quite heavyweight .NET (C#) Rich Client App (2 Tier) via IIS Server Zero Touch, but it requires about 4-6 times more Processor Time and is thus 3-4 times slower than if started locally. We have already set up Dummy Resource Files and we can see from the Web Server Log that no Web Server Access happens anymore. What is it that eats up Performance and how can we switch this off? It is especially blatant when just...
6
2147
by: Michael S | last post by:
Not sure if I'm posting in the right group but here goes. I am getting the following error when trying to browse to an .aspx page which I have set up in a virtual directory under the default companyweb sharepoint site on Microsoft SBS 2003. I've tried various suggestions I've seen in other posts but no luck. I've also tried giving every single user/group full permissions to the directory and files but still no luck. The page works...
1
1645
by: Loane Sharp | last post by:
Hi there I have a Windows Forms application that contacts the server and retrieves particular files, if they exist. To the best of my knowledge, the .exe assembly is properly compiled, strongly named, etc. Specifically, within Control Panel>Administrative Tools>Microsoft .NET Framework 2.0 Configuration>Assembly Cache, I have added myApp.exe to the global assembly cache. Also, within >Microsoft .NET Framework 2.0 Wizards>Trust an...
5
1313
by: dave.stubbs | last post by:
Hi, We have a large web application, using ASP.NET/C# that runs quite happily on a Windows 2003 server under IIS, but when we install it on a server with sharepoint installed it keeps falling over with NullReference exceptions. These exceptions appear to be related to core objects such as base or HttpContext.
2
1563
by: g3000 | last post by:
I used VS .Net 2003 to run a c# web app. but when I run it I get the below Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
3
2019
by: Mark Leistner | last post by:
I am having problems getting a gridview to bind to custom objects under any non-full trust level. I created a test project to verify what I am seeing isn't a side effect of other code in my project and I get the same errors there: Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
11
1653
by: mc | last post by:
I'm creating a gallery app, I would like users to be able to upload a zip file (containing images) which I then unpack and and store in a gallery for online review. Do I need a third party component or can it be done in c# alone? TIA MC
0
2016
by: Steve | last post by:
Hello- Your assistance with this issue is greatly appreciated. Environment: - Load-balanced IIS 6.0 servers (Win2003) - web servers point (via UNC path) to a Microsoft File Cluster on different machines. - domain ASPNET account that handles the function/permissions of the (traditionally) local machine ASP.NET account.
4
5807
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this article: http://support.microsoft.com/?id=306158#4 This doesn't work in Windows 2008 Server, we receive the following exception:
0
8680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7738
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2335
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.