Re: System.Security.SecurityException was unhandled
- From: "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com>
- Date: Wed, 15 Feb 2006 15:37:45 -0500
This is not a server-level issue. Instead, it's caused by the CAS
permission grant on the client machine, which will be more restricted when
running from a network location than from the local machine. (See
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx for details.)
Given the particular exception description you've posted, my first guess
would be that one of your DLLs might contain unverifiable or unsafe code and
that the permission that's failing is a SecurityPermission\SkipVerification.
Otherwise, a link demand might be the culprit, and you may be able to gather
more information about the exception by moving the body of your current Main
method into a new method. e.g.:
private static void Main(string[] args)
{
MainHelper(args);
}
private static void MainHelper(string[] args)
{
// Everything from your original Main method goes here.
}
"Seok Bee" <seokbee@xxxxxxxxx> wrote in message
news:0BECDFFE-3E7C-40F9-BCB8-E64177A546A6@xxxxxxxxxxxxxxxx
Dear Experts,
I've created a Console application to perform a checking of an Excel file.
During development using vb.net in Visual Studio 2005, the application is
running fine. I can get my expected result. Then I move the executable
files
and related *.dll files into a server to schedule for execution. The
server
is running on Windows 2000 sp4 and installed with .NET Frameword 1.1 and
2.0.
When I execute the application I received and error message. The error is
as
follow shown in the debugger:
System.Security.SecurityException was unhandled
Message="System.Security.Permissions.SecurityPermission"
Source="SPQAutomation"
StackTrace:
at SPQAutomation.SPQAutomation.Main()
While, from the Application log in Event Viewver I have the following
error:
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 15-Feb-06
Time: 6:57:51 PM
User: N/A
Computer: IT3
Description:
EventType clr20r3, P1 spqautomation.exe, P2 1.0.0.0, P3 43f3058e, P4
spqautomation, P5 1.0.0.0, P6 43f3058e, P7 18, P8 1, P9
system.security.security, P10 NIL.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
May I know, what should I do/configure in the server in order for my
application to be executed?
Many thanks in advance.
Regards,
SB
.
- Follow-Ups:
- Re: System.Security.SecurityException was unhandled
- From: Seok Bee
- Re: System.Security.SecurityException was unhandled
- Prev by Date: Re: ReflectionPermission weird behavior?
- Next by Date: Re: after changed the permisssion set to "nothing", I can't set the .net configuration anymore?
- Previous by thread: How to encrypt/decrypt a file
- Next by thread: Re: System.Security.SecurityException was unhandled
- Index(es):
Relevant Pages
|