Re: Don't understand System.Security.SecurityException
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Dec 2008 12:14:53 -0600
The .NET Framework must be installed on any OS that needs to execute .NET code. Having your binaries on a server that has .NET installed is not sufficient. If you need a deployment model that doesn't involve deploying the framework, you might need to consider building a web app.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Parrot" <Parrot@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:425F15B2-1380-422A-863B-FE09EFFC257A@xxxxxxxxxxxxxxxx
Joe;
Thanks for your reply. I changed the security to Partial Trust and then
included FileIOPermission which solved the problem for me. I can now execute
my application on a network drive from my laptop. However, I gave my client
the updated application with the new security and they still have a problem.
They have the NET Framework installed only on the server but not on any of
the local machines. Does my client need to have the NET Framework installed
on his computer as well in order to resolve this security problem? Other
than that I don't know why my client cannot get around the security issue.
They have the local zone expanded to full trust on the server.
Dave
"Joe Kaplan" wrote:
There are a number of great articles and blog posts about running
applications under partial trust. I do some searches on "partial trust" and
perhaps include "shawn farkas" as he has written many of them.
Best of luck!
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Parrot" <Parrot@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4BDA08CE-3472-4A7C-BF84-C946D437B8F6@xxxxxxxxxxxxxxxx
>I am trying to execute my application from another networked drive. My >C
> #sharp Windows application resides on my C: drive in my main computer. > I
> have a latiop that is part of the network. When I try to execute my
> application residing on my main computer from my laptop I get the
> System.Security.SecurityException error message. My application does > use
> SQL
> Server but no database is accessed in the initial startup of the
> application.
> I need to resolve this because my client wants to run this application
> from
> their desktop but gets the same error as I because the application > resides
> on
> another computer or server. Any help is appreciated.
> Dave
.
- References:
- Don't understand System.Security.SecurityException
- From: Parrot
- Re: Don't understand System.Security.SecurityException
- From: Joe Kaplan
- Re: Don't understand System.Security.SecurityException
- From: Parrot
- Don't understand System.Security.SecurityException
- Prev by Date: Re: Don't understand System.Security.SecurityException
- Next by Date: Using a Java Keytool created certificate in HTTPWebRequest.ClientCertificates
- Previous by thread: Re: Don't understand System.Security.SecurityException
- Next by thread: Using a Java Keytool created certificate in HTTPWebRequest.ClientCertificates
- Index(es):
Relevant Pages
|