You need to adjust the security.
Open the Control Panel
Open Administrative tools
Open Microsoft .Net Framework 1.1 Wizards
Click Adjust .Net Security
click Next
Select Local Intranet
Change the level of trust to Full
click next
click Finish
>Hi,
>I am trying to deploy my app by setting a shortcut on the user's desktop which points to a network drive containg the .EXE and all .Dll's. The user has full rights (NT and NTFS) to the folder in the server.
>when I try to run it I am getting the following Error:
>"An Exception 'System.Securiy.SecurityException' has occurred in xxx.EXE"
>when I copy the .exe and dll's to the local machine it works fine.
>ANy Ideas?
>
>Thanks In advance.
>
>Shlomo
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com