|
-
Sep 9th, 2003, 08:11 AM
#1
Thread Starter
Member
Running an Executable over a network *Resolved*
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.
Last edited by munsworth; Sep 9th, 2003 at 09:20 AM.
-
Sep 9th, 2003, 09:19 AM
#2
Thread Starter
Member
I figured it out, thanks.
-
Sep 9th, 2003, 09:30 AM
#3
Fanatic Member
-
Sep 9th, 2003, 09:32 AM
#4
Addicted Member
yes - if you have cracked it it would be nice to share your solution so others with the same problem would have a chance
-
Sep 9th, 2003, 03:14 PM
#5
Thread Starter
Member
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.
-
Sep 9th, 2003, 04:19 PM
#6
Frenzied Member
You can also do it in code.
-
Sep 25th, 2006, 09:34 AM
#7
Addicted Member
Re: Running an Executable over a network *Resolved*
 Originally Posted by DevGrp
You can also do it in code.
How?
-
Sep 25th, 2006, 09:45 AM
#8
Re: Running an Executable over a network *Resolved*
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
-
Sep 26th, 2006, 08:31 AM
#9
Addicted Member
Re: Running an Executable over a network *Resolved*
that does not good on a end user machine they do not have the rights to run this code.
or do they?
-
Sep 26th, 2006, 08:47 AM
#10
Re: Running an Executable over a network *Resolved*
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.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Sep 26th, 2006, 08:56 AM
#11
Addicted Member
Re: Running an Executable over a network *Resolved*
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.
-
Sep 26th, 2006, 09:32 AM
#12
Re: Running an Executable over a network *Resolved*
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|