469,898 Members | 1,824 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

VBNet Console App:Install EXE/DLL on Remote Server with No Admin Rights


I am new in the forum and new in .Net. I've tried to search for answers on web to no avail.

Can anybody help me with this problem?

Is it possible to install a console app, that also has a reference to a class library, to a remote server where I don't have admin rights to? This is basically what I did.

1. Run sn.exe and add strong names each for both console app and class library projects

2. Build both console app (output: dummyapp.exe) and class library (output: dummylib.dll) with configuration set to "Active (Release)"

3. Run .NET Framework Configuration to set Full Trust to both exe and dll.
3.a) .NET Framework 2.0 Configuration --> My Computer --> Runtime Security Policy --> Machine --> Code Groups --> All_Code :
3.b) Right Click and New "DummyApp_Zone", Condition Type "Strong Name", Import "dummyapp.exe", use permission set "FullTrust". Do the same thing with "dummylib.dll".

4. Copy "dummyapp.exe" and "dummylib.dll" to the shared server (mapped drive) where I have read/write access to the directory.

5. I was able to execute "dummyapp.exe" in command prompt as expected.

6. Another user who has same read/write access to the directory execute the "dummyapp.exe" and had this error:

Unhandled Exception: System.Security.SecurityException: That assembly does not a
llow partially trusted callers.
at System.Security.CodeAccessSecurityEngine.ThrowSecu rityException(Assembly a
sm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, Secur
ityAction action, Object demand, IPermission permThatFailed)
at DummyApp.modDummyApp.Main()
The action that failed was:
The assembly or AppDomain that failed was:
DummyApp, Version=, Culture=neutral, PublicKeyToken=e0672eda862ffc37
The Zone of the assembly that failed was:
The Url of the assembly that failed was:

This application and the shared application server will be used within the company (no one can go in who is not employee) so I there is no need for limited security access.

Is it possible to give full access to these objects so anybody can run them without getting the Security Exception error?

Thanks in advance.

Jul 28 '08 #1
0 1255

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Tomas Cronqvist | last post: by
2 posts views Thread by Ray Dillinger | last post: by
reply views Thread by Mark Avis | last post: by
1 post views Thread by SAIRAAM | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.