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.Utilitie s"). 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: UIPermissionAtt ribute(Security Action.RequestM inimum,
Clipboard:=UIPe rmissionClipboa rd.OwnClipboard )>
<Assembly: UIPermission(Se curityAction.Re questMinimum,
Window:=UIPermi ssionWindow.All Windows, Unrestricted:=T rue)>
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.Utilite s" 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 0 906 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Keith Jakobs, MCP |
last post by:
Greetings:
I had seen several posts around the Internet about this issue from a few
months back, but have been unable to find a resolution ...
I have a user who is trying to get started with Visual Studio.NET 2003. We
have uninstalled and reinstalled the Product.... then we did a complete
cleanout of development products, re-installed IIS, and reinstalled JUST
Visual Studio.NET 2003 with Framework 1.1 (no more 2002 edition or...
|
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 error:
------------------------------------
System.Security.SecurityException: The event source
ExceptionManagerInternalException does not exist and cannot be created with
|
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 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...
|
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 Windows Server 2003
Enterprise Edition Only.
This works on Windows 2000, Windows 2003 Web Edition and
|
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 comprised of a DataGrid may have separate permissions for adding, deleting and updating a news item.
Problem
Up until now, I have been implementing security directly inside the control. I will test directly against the security model to see if...
| |
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 logging onto the web server using
LDAP for authentication, do most people
1) have the web server connecting to the database using its own user
account (possibly through ident), and controlling access to different
database entities strictly through...
|
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 there a way I can compile the
application such that it won't even attempt to launch without correct
permissions instead of just crashing? Thanks for any help.
-Mike
|
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 IUSR_MYSERVER, which has read/list
permissions to the apllication directory.
When i start it from the browser, i get this error:
Server Application Unavailable
|
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 web page hosted on a unix driven file server. The user wants to have
this file converted to a pdf.
My page takes the query string and turns it into a windows unc path, then I
copy the file down to the web server and place it into a directory. This...
|
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 Microsoft .Net 1.1 & 2.0 installed. How
do I remedy this error?
//Error below
Server Application Unavailable
The web application you are attempting to access on this web server is
|
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...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
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,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |