Issue with SecurityPermission
From: Francisco C (franciscojanes@hotmail.com)
Date: 01/09/03
- Next message: Joe Kaplan: "Re: c#, indexing service and authorization"
- Previous message: Kim Hellan: "RSACryptoServiceProvider() - How to avoid auto key generation"
- Next in thread: John Bristowe: "Re: Issue with SecurityPermission"
- Reply: John Bristowe: "Re: Issue with SecurityPermission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Francisco C" <franciscojanes@hotmail.com> Date: Thu, 9 Jan 2003 11:58:30 -0000
Hi,
I am trying to run a VB App. that processes Excel files.
When I run the Executable from the \bin directory using the command line, it
will tell me that the file \\share\file.xls cannot be found (which is ok,
since I donīt want it to access the files yet)
However, if I share the Executable and then run it from the shared location
(again using the command line) I get a completely new Exception:
----------------------------------------------------------------------------
-------------------------------
Unhandled Exception: System.Security.SecurityException:
System.Security.Permissions.SecurityPermission
at VBXL.module1.Main() in D:\Visual Studio .NET\VBXL\Module1.vb:line 12
Here is Line 12: Dim app As New Excel.Application()
The state of the failed permission was:
<IPermission class="System.Security.Permissions.SecurityPermission,
mscorlib, Ve
rsion=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>
----------------------------------------------------------------------------
--------------------------------
This results in no one being able to execute the application from that
shared location....not even myself.
Help is appreciated.
Fran C
- Next message: Joe Kaplan: "Re: c#, indexing service and authorization"
- Previous message: Kim Hellan: "RSACryptoServiceProvider() - How to avoid auto key generation"
- Next in thread: John Bristowe: "Re: Issue with SecurityPermission"
- Reply: John Bristowe: "Re: Issue with SecurityPermission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|