Re: Don't understand System.Security.SecurityException



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



.



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)