Security Exception when deploying a VB.NET 2003 Solution
- From: "John Kotuby" <johnk@xxxxxxxxxxxxx>
- Date: Wed, 14 Jun 2006 12:59:11 -0400
Hello all,
About a year ago I wrote a VB.NET 2003 solution that consists of a number
of assemblies (1 EXE and 15 DLLS). As I recall, in order to deploy the
solution to a testing server I simply copied the contents of the Bin folder
in the development area where the compiled assemblies reside. Be patient
with me here, because I haven't used .NET since then ... our primary
development environment is still VB6, as we have a large application with 6
years devoted to it and are not quite ready to do a complete re-write in
..NET.
The .NET project which had been dormant for a year is now back in action. I
tried creating an MSI install project from within the solution. It appeared
to include the primary EXE all the necessary dependencies (I don't even
remember how I created that Installer at the moment).
The bottom line is that now when I try to deploy to either a Test Server
share or a local workstation (which is a member of a Domain), I get
Microsoft .NET security errors upon trying to start the Executable.
Examples:
Local Workstation:
"An unhandled exception has occurred....
"Access to the path 'C:\Program Files\Testing' is denied.
Server Share:
"The application attempted to perform an operation not allowed by the
security policy. The operation required the SecurityException. To grant this
application the required permission please contact your system
administrator, or use the Microsoft .NET security policy administrator."
So, I used the .NET 1.1 and 2.0 Configuration tools to try to create a
Runtime Security Code Group to allow the program to run. I don't remember
having to do this last year...strangely enough. I was not able to
successfully get the program to execute after a few hours of reading
documentation and trying different things in the Configuration tools. The
documentation and even the tools themselves are somewhat inscrutable to the
uninitiated.
.
- Follow-Ups:
- Re: Security Exception when deploying a VB.NET 2003 Solution
- From: Norman Yuan
- Re: Security Exception when deploying a VB.NET 2003 Solution
- Prev by Date: Re: Converting from VS2003 to VS2005
- Next by Date: Security Exception when deploying a VB.NET 2003 solution.
- Previous by thread: Converting from VS2003 to VS2005
- Next by thread: Re: Security Exception when deploying a VB.NET 2003 Solution
- Index(es):
Relevant Pages
|