Re: System.Security.SecurityException was unhandled



I have set the policy security level on both the client and server. Also, the
setting was done on both versions 1.1 and 2.0 .NET framework.

Have you tried granting the assemblies additional CAS permissions in the v. 2.0 > Framework on the client machine?
No, I have not done this. May I know where and how to grant the assemblies
additional CAS permissions. I will send u the exception message later... as
i need to do it in the office....


"Nicole Calinoiu" wrote:

"Seok Bee" <seokbee@xxxxxxxxx> wrote in message
news:823A7A19-CC3F-40E0-9840-EC67280D1DEF@xxxxxxxxxxxxxxxx
I have tried the following and the execution is still failed.

1) Installation of .NET Framework 2.0 SDK
2) Update the policy security level to "Full Trusted" for
LocalIntranet_Zone

On the server or the client? In which version of the Framework did you
adjust the permission grant to the intranet zone?


3) Change the program to the new methos suggested.
4) Recompiled the program and moved the executable file and *.dll files to
the server

Server Information:
OS : Win2k sp4
Framework installed: 1.1, 2.0

I've tried execute the program remotely over the network and it works on
my
machine. The platform that I am running is Winxp with .net framework 1.1,
1.1
Hotfix & 2.0. Not sure why the execution still failed when i run directly
from the server. The error message is still the same as i got previously.

Have you tried granting the assemblies additional CAS permissions in the v.
2.0 Framework on the client machine? Also, could you please provide the
full exception details (including call stack listing), as returned by its
ToString method?



Please advise.

Many thanks in advance.



"Nicole Calinoiu" wrote:

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







.



Relevant Pages

  • Re: Stored procedure/trigger and scripts
    ... SQL Server has permissions to execute xp_cmdshell. ... Please read up on xp_cmdshell within Books Online (within the SQL Server program group). ... >> client to change their password they have to call the "Client Relations" ...
    (microsoft.public.sqlserver.programming)
  • Re: Question regarding UNIX access() call
    ... you can execute a program before you actually executed it. ... The file server is a user-space ... The client file system is built using FUSE(http:// ...
    (comp.unix.programmer)
  • Re: Office 2003 Research Service development (SDK)!
    ... Doesn't the client need at least the .NET Framework installed for sax files ... (why are you calling asmx files sax files? ... will need a web server to run them on: ...
    (microsoft.public.office.developer.office.sdks)
  • Re: Office 2003 Research Service development (SDK)!
    ... the client for a custom Research Pane to work. ... Even if it did the second, it wouldn't necessarily need .NET Framework. ... >> will need a web server to run them on: ...
    (microsoft.public.office.developer.office.sdks)
  • Asp.net Important Topics.
    ... ASP.NET server controls contained within the page. ... A custom server control is ... can also perform validation using client script. ... Where does the Web page belong in the .NET Framework class hierarchy? ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast