Could not start application from Network,...



Dear NG,


i have some code/assembly here that must be executable from a network share.
But it only works if i run it as a Administrator or another privileged user.
But it
does not execute and silently fails when i try to run it as a standard user.
I tried
this to make the assembly work with normal users, but it did not work:

Caspol.exe -m -cg LocalIntranet_Zone FullTrust

The application should be executable that way:
\\servername\share$\program.exe

When i try to run it with non-priv standard user the application
fails silently and i get nothing else that makes any sense.

The Codebase where the exception araises (debugged):

using System;

namespace AppInit
{
static class Program
{
[STAThread]
static void Main(string[] args)
{
AppDomainSetup ads = new AppDomainSetup();
string appDir = AppDomain.CurrentDomain.BaseDirectory;
//System.Environment.CurrentDirectory;

ads.ShadowCopyFiles = "true";
ads.ApplicationBase = appDir;
ads.PrivateBinPath = appDir + "\\bin;";
ads.ShadowCopyDirectories = ads.PrivateBinPath + ";" +
ads.ApplicationBase;
//EXCEPTION HERE!!!!
AppDomain domain = AppDomain.CreateDomain("TEK WorkSpace", null,
ads); // Exception is thrown here

}
}
}
}

Some ideas,...?
Code must be executable over the network!
Code must be executable with a non-privilegded standard user!

Thanks for any help and ideas!

Beste Grüsse / Best regards / Votre bien devoue

Kerem Gümrükcü
-----------------------
"This reply is provided as is, without warranty express or implied."



.



Relevant Pages

  • Re: Could not start application from Network,...
    ... restrict what your app can do since it is run from the network. ... seems to be recitfied by calling caspol and telling it to give assemblies ... does not execute and silently fails when i try to run it as a standard ... When i try to run it with non-priv standard user the application ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Could not start application from Network,...
    ... restrict what your app can do since it is run from the network. ... to be recitfied by calling caspol and telling it to give assemblies from the ... does not execute and silently fails when i try to run it as a standard ... When i try to run it with non-priv standard user the application ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: a script to login a user an execute commands?
    ... > I need to create a small script to execute as root, which logs in as ... > standard user, and execute some commands. ...
    (comp.lang.perl.misc)
  • a script to login a user an execute commands?
    ... I need to create a small script to execute as root, which logs in as ... standard user, and execute some commands. ...
    (comp.lang.perl.misc)
  • Re: How do you do this?
    ... an evolution from the last generation that used a network processor ... compare things that are exactly alike or they alway will be equal. ... other computer to read it and execute it. ... Some do it with multi-core chips from Intel and AMD. ...
    (comp.lang.forth)

Loading