473,396 Members | 2,068 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,396 software developers and data experts.

"An unhandled exception of type 'System.Security.SecurityException' " VB .NET

We are an educational environment, we are using VB .Net and Windows XP SP2.
The users are power users.
We have a Visual Basic .Net class that is having trouble with their project,
they are getting the following error message "An unhandled exception of type
'System.Security.SecurityException'".

Does anyone have any suggestions?
--
Eric Sabo
NT Administrator
Nov 21 '05 #1
7 5351
"Sabo, Eric" <sa****@cup.edu> schrieb:
We are an educational environment, we are using VB .Net and Windows XP
SP2. The users are power users.
We have a Visual Basic .Net class that is having trouble with their
project, they are getting the following error message "An unhandled
exception of type 'System.Security.SecurityException'".


When/where is this exception thrown? Can you post the complete exception
text (+ callstack)?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Have you try to run it with Administrator group? If it can run under
Administrator but not Power User then it is easier for you to trace.

chanmm

"Sabo, Eric" <sa****@cup.edu> wrote in message
news:eZ**************@TK2MSFTNGP15.phx.gbl...
We are an educational environment, we are using VB .Net and Windows XP
SP2. The users are power users.
We have a Visual Basic .Net class that is having trouble with their
project, they are getting the following error message "An unhandled
exception of type 'System.Security.SecurityException'".

Does anyone have any suggestions?
--
Eric Sabo
NT Administrator

Nov 21 '05 #3

you probably needed to add permissions

control panel - Administrative Tools - Microsoft .NET Framework 1.1
Configuration - Runtime Security Policy - Machine - Code Groups - All_Code

"chanmmn" <ch*****@hotmail.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Have you try to run it with Administrator group? If it can run under
Administrator but not Power User then it is easier for you to trace.

chanmm

"Sabo, Eric" <sa****@cup.edu> wrote in message
news:eZ**************@TK2MSFTNGP15.phx.gbl...
We are an educational environment, we are using VB .Net and Windows XP
SP2. The users are power users.
We have a Visual Basic .Net class that is having trouble with their
project, they are getting the following error message "An unhandled
exception of type 'System.Security.SecurityException'".

Does anyone have any suggestions?
--
Eric Sabo
NT Administrator


Nov 21 '05 #4
Adrian,
How do I do this? Do you have a how-to tech net article?

"Adrian" <Ad****@nospamhotmail.com.uk> wrote in message
news:cs**********@hercules.btinternet.com...

you probably needed to add permissions

control panel - Administrative Tools - Microsoft .NET Framework 1.1
Configuration - Runtime Security Policy - Machine - Code Groups - All_Code

"chanmmn" <ch*****@hotmail.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Have you try to run it with Administrator group? If it can run under
Administrator but not Power User then it is easier for you to trace.

chanmm

"Sabo, Eric" <sa****@cup.edu> wrote in message
news:eZ**************@TK2MSFTNGP15.phx.gbl...
We are an educational environment, we are using VB .Net and Windows XP
SP2. The users are power users.
We have a Visual Basic .Net class that is having trouble with their
project, they are getting the following error message "An unhandled
exception of type 'System.Security.SecurityException'".

Does anyone have any suggestions?
--
Eric Sabo
NT Administrator



Nov 21 '05 #5
"Sabo, Eric" <sa****@cup.edu> schrieb:
Let me know if you can read this or not.


Can you copy the text from the error message's details box and post it here?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6
I can't because I only have it as a screen snap shot in a word document.

What are some of the things that I could look for?

Everyone says to do the following:

control panel - Administrative Tools - Microsoft .NET Framework 1.1
Configuration - Runtime Security Policy - Machine - Code Groups - All_Code

Is there a technet article that would explain how to do this?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
"Sabo, Eric" <sa****@cup.edu> schrieb:
Let me know if you can read this or not.


Can you copy the text from the error message's details box and post it
here?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7
"Sabo, Eric" <sa****@cup.edu> schrieb:
I can't because I only have it as a screen snap shot in a word document.
OK :-(.
What are some of the things that I could look for?


From examining the exception text visible in the screenshot you posted, I
assume that the reason for the exception is that you are calling 'End' in
the exit button ('btnExit'). Calling 'End' requires certain permissions.
The documentation of the 'End' statement describes these permissions,
information on how to request these permissions can be found in articles
referenced in the documentation's "See Also" area on the bottom of the page:

Visual Basic Language Reference -- 'End' Statement
<URL:http://msdn.microsoft.com/library/en-us/vblr7/html/vastmEnd.asp>

If my assumption is not correct, you may want to post the code you placed in
the exit button's 'Click' event handler.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #8

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

Similar topics

4
by: Andy | last post by:
Hi, I'm doing a nested pass by reference of a vector. I'm in Vis Studio 2003. Example: vector <unsigned long long> vect; func1(vect); where func1 calls func2(vect);
2
by: hazz | last post by:
I have spent more time than I care to admit trying to track down a very subtle error. Here is my app's xx.exe.config file. <?xml version="1.0" encoding="utf-8" ?> <configuration>...
3
by: nick | last post by:
The program runs well on Local harddisk. But it always popup the exception if I run it on Netware mapping disk. After debugger say there is no source code on the exception. Also the following error...
5
by: Peter Steele | last post by:
We have an application that when it runs in the IDE in debug mode an unhandled exception is occurring in a system header file associated with STL stirngs. The actual statement that crashes is ...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
2
by: =?Utf-8?B?R2FicmllbCBNw6luZGV6?= | last post by:
Hello everyone. I have a small class that encapsulates some functionallity to work with the RSACryptoServiceProvider. Here is the code of the class i'm using: public class dsRSA { private...
1
by: bunnyjoshi | last post by:
"An unhandled exception of type 'System.StackOverflowException' occurred in asset.dll" Above error is occuring when i m debugging my code. asset.dll is file which is created by me n i m using it...
2
by: rvarshney | last post by:
Hi All, Sometimes my application crashes with the exception Exception type: System.ComponentModel.Win32Exception Message: Error creating window handle. My Question to you guys are: 1. I am...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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,...

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.