I've got an executable that runs fine if it is located on my local
machine, but if I put it on a network drive and execute it I get
a security exception. Is there something I can do to solve this
problem.
Printable View
I've got an executable that runs fine if it is located on my local
machine, but if I put it on a network drive and execute it I get
a security exception. Is there something I can do to solve this
problem.
I figured it out, thanks.
What did you do?
yes - if you have cracked it it would be nice to share your solution so others with the same problem would have a chanceQuote:
What did you do?
In the .NET Configuration in administrative tools I added the
executable to the list of trusted assemblies. It also lets you
specify the permission level you want to grant it. For example,
you don't want it to have access to your registry.
You can also do it in code.
How?Quote:
Originally Posted by DevGrp
you need to use CasPol.exe
CasPol.exe -q -machine -addgroup 1.2 -url "file://Path_To_Application_on_network/*" FullTrust -name "Your_App_Name"
This can be run from the command line, however you will probably need the full path to CasPol.exe which is located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
that does not good on a end user machine they do not have the rights to run this code.
or do they?
All softeware we send out we tell the client that admin rights are required on the machine you will be installing on. Once you have that right you can do all the things we need for installation. Some places don't allow regular users to create new registry entiries we require for some software, copy files into the system32 folder or other things.
I just created a test app and it does not work. the caspol must be run as an admin. I am really disappointed in microsoft over this. I'm looking into developing in some other language after this crap.
You definitely need to be an admin on a machine to run caspol to add a new trusted group. If you are installing a network application, I would hope that you have administrator rights and are able to do so. As GaryMazzone said, with all network applications that we deploy, we require the customer to have administrator rights to install the clients.
Look into InnoSetup, It is what I use for an installer and it runs the CasPol Piece and I believe there is some code floating around that allows you to bypass the need for admin rights.