Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I am new to C# programming & .net framwork.
I have .exe developed in C# on server computer. This is running purfectly on that computer.
If I run that exe from other computer from LAN it is not working & geving me SecurityExeption.
I don't want to copy .exe & .dll files on local computer from My application Server.
Can you suggest how I can do it.
Posted

wrote:
If I run that exe from other computer from LAN it is not working & geving me SecurityExeption.


What does your program do ? I don't see why it shouldn't work, so long as .NET is installed on the machine trying to run the program. Perhaps if you told us exactly the error message you're getting, we could understand instead of guessing as to what the problem is. It could be:

1 - .NET not on the computer
2 - something in your code that throws the exception
3 - something with the permissions you have over the network that causes the issue
4 - something else.
 
Share this answer
 
If you have sufficient permissions you can use caspol.exe (google it), which comes as part of the .net framework. Caspol.exe is a command line utility that will let you set permissions to give "fulltrust" to local intranet domains. If you don't have permissions you may be able to bribe your system admin into running it for you. Another alternative is to copy the program to the local computer and run it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900