Richard
Mon Apr 18 13:46:55 CDT 2005
What you are seeing is Code Access Security crashing your party. .NET's security infrastructure places security restructions based on the code's origins (physical or author) and by default fully trusts code residing on the hard-disk but only partially trusts code from elsewhere (including from the network share. My guess is that the dev machine has had security policy changed to trust code from this network location whereas the client hasn't. Therefore it works on the dev machine and not the client. You have three options:
1. Always run the software from the software from the hard disk of the client
2. Alter security policy on the client
3. Change the program so it doesn't need the failing permission.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Hello,
I took over a little c#-command-line-programm(connect a db and creates
a cvs-file) for upgrading.
I always get a security exception when I`m running it from the network
on other clients.
developer-machine: all works fine- from local and from network.
on client-machines: it works locally, but from network I get the
security exception
I tried to set a lower security-level, and registrated the assembly at
the client, but no solve.
what am I doing wrong, or what I have to do, for starting the exe from
any client without security exception.
the "original"-exe does it!
any suggestions?