473,385 Members | 1,736 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.

Application/dll Permissions/SecurityPermissions/etc.

Hi everyone,

I am developing a "common repository" of methods which can be imported
into Windows and Web forms. However, I am having some troubles which I need
your help with!

1. Every property/function etc. has to be setup as Public Shared in the
common repository, or else the "main" application can't see the imported
functions (i.e. "Imports Common.Utilities"). I don't want "others" to get a
hold of this library and use it in their applications.
2. Which leads to the Code Application Security. Since I will be using
this in Windows forms and Web forms, I don't want someone to use my code to
create viruses, "attacks", etc. I need to lock this down so that only
projects that explicity import this can use it's functions, and only then
when it's one of my projects (I guess you could refer to that a local
machine??). In my actual applications, I want to again make sure that the
user has the proper rights to launch the program using CAS. Here's what
I've added to one of my applications so far:

<Assembly: UIPermissionAttribute(SecurityAction.RequestMinimu m,
Clipboard:=UIPermissionClipboard.OwnClipboard)>
<Assembly: UIPermission(SecurityAction.RequestMinimum,
Window:=UIPermissionWindow.AllWindows, Unrestricted:=True)>

For now, they don't need the ability to print or anything like that, but I
do need to see if they have access to the Excel automation object. This
application "imports" the "Common.Utilites" which accesses a SQL server
(i.e. the need to make sure it's secure!!).

I've searched the web, but am not finding really good examples (that are in
VB.NET) for how to really "lock-down" an application, or class library.

Last thing: I'm also a bit confused on when to create a module or a class?
What's the difference? Why should I choose to create a module vs a class
and vice-versa?

Thanks!

Chad


Nov 17 '05 #1
0 1011

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

Similar topics

5
by: PCC | last post by:
I am using the Exception Managment Application Block on Windows Server 2003 Enterprise and .NET v1.1. If I use the block with an ASP.NET web wervice or in a web application I get the following...
1
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
0
by: Chad Beckner | last post by:
Hi everyone, I am developing a "common repository" of methods which can be imported into Windows and Web forms. However, I am having some troubles which I need your help with! 1. Every...
20
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
4
by: casper | last post by:
Hi, I created an asp.net 2.0 website with VWD and made it an application in IIS. It was created on a ntfs disc (my documents...). The directory permissions are set on 'anonymous allowed' using...
4
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
I am at my witless end here, please help! I have an ASP.Net aspx web page, hosted on Windows Server 2003, that receives a query string with the path to an autocad drawing file selected from a...
17
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I have set up a virtual directory using IIS. Whenever, I load a web page of type .htm, I have no problem. Whenever I run a .aspx page I get the statement below. I am running on XP Pro, both...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.