473,569 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does anyone have experience with code access security?

I've looked through the MSDN documentation on code access security and
can not seem to find an answer to my question.

I have a class XYZCorpWebPage that uses System.Web.UI.P age as it's
base class. I want to make it so that the web server will throw an
exception/deny runtime rights to any WebForm derived from
System.Web.UI.P age, but I want to allow runtime rights on
XYZCorpWebPage (I want to force our developers to use XYZCorpWebPage
as their base class).

Can this be done using the .NET Configuration Wizards? I only see
access to increase trust in an Assembly and I'm not sure how it will
resolve the conflict.
Nov 15 '05 #1
1 1571
Ramzey,

You can't do it. The reason for this is that you would have to be able
to modify System.Web.UI.P age to modify the permissions it demands. You
don't have access to this, so you can't change it.

What I would do is create a class that implements IHttpHandler that will
then create the appropriate class and check to make sure that it derives
from your type.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Ramzey" <je**********@h otmail.com> wrote in message
news:d3******** *************** ***@posting.goo gle.com...
I've looked through the MSDN documentation on code access security and
can not seem to find an answer to my question.

I have a class XYZCorpWebPage that uses System.Web.UI.P age as it's
base class. I want to make it so that the web server will throw an
exception/deny runtime rights to any WebForm derived from
System.Web.UI.P age, but I want to allow runtime rights on
XYZCorpWebPage (I want to force our developers to use XYZCorpWebPage
as their base class).

Can this be done using the .NET Configuration Wizards? I only see
access to increase trust in an Assembly and I'm not sure how it will
resolve the conflict.

Nov 15 '05 #2

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

Similar topics

3
2575
by: Mike L | last post by:
Hello all We have an app running at a few sites. It is a split FE-BE app, BE on the site server, FE on each user's machine, FE is XP, BE is A2K format, FE running on XP runtime. At one of the sites however on some of the user computers the app sometimes won't open - it will start up to the point of showing the splash form, and get no...
0
1189
by: Duane Phillips | last post by:
Evolution Access Converter Found at: http://www.evolutionsoft.co.uk Has anyone played with this? Is it any good? Scale on 1 to 100? I have a fairly complex MSAXP/2003 multi-app (multiple apps with distinctly different purposes) frontends all served by a MS SQL Svr 7 backend application a customer wants to move to .NET, to be able to...
2
3085
by: Matthias Wohlmann | last post by:
Hi, I'm getting the following error when trying to start my application using Internet Explorer: "Server cannot access application directory D:\xxx. The directory does not exist or is not accessible because of security settings." In IIS I have set Directory Security for my application to allow Anonymous access (using IUSR_<Server>) and...
2
5406
by: rrossney | last post by:
Please look at the "what I've already done" section of this message before responding to it: I believe that I've done everything that the people who experience this error are typically told to do. I have created an ASP.NET web service that I have running on my development machine, and am trying to get it to run on my test server. Both...
89
5968
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be used." Could anybody tell me why gets() function is dangerous?? Thank you very much. Cuthbert
7
1324
by: Damien | last post by:
Hi Guys, <Posted yesterday to microsoft.public.dotnet.framework.aspnet.security, but no responses garnered. For mpsc readers, this is a fairly common error encountered when connecting from ASP.Net 1.1, but I've followed all the help I can find online and it hasn't fixed my problem yet. So any ideas for troubleshooting would be welcomed> ...
15
2049
by: jim | last post by:
Maybe I'm missing something, but it doesn't look like Microsoft writes a lot of apps in .Net (although they certainly push it for others). What does MS write using pure .Net? If applications like Symantec's antivirus, NeatReciepts or Franklin Covey's PlanPlus for Windows is any guide, .Net applications are slow and clunky. But, maybe the...
162
10113
by: Sh4wn | last post by:
Hi, first, python is one of my fav languages, and i'll definitely keep developing with it. But, there's 1 one thing what I -really- miss: data hiding. I know member vars are private when you prefix them with 2 underscores, but I hate prefixing my vars, I'd rather add a keyword before it. Python advertises himself as a full OOP language,...
5
3537
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting this error. Any idea why? Server Error in '/myuser4/MyWebApp' Application....
0
7701
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...
0
7924
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. ...
0
8130
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...
1
7677
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...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5514
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...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
940
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...

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.