473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

1
Hi,

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:
LinkDemand
The assembly or AppDomain that failed was:
DummyApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e0672eda862ffc37
The Zone of the assembly that failed was:
Intranet
The Url of the assembly that failed was:
file:///J:/Bin/DummyApp.exe


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.

Regards,
Niki
Jul 28 '08 #1
0 1414

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

Similar topics

2
by: LB | last post by:
Anyone encounter differences between SQL2K EE and SQL2K Dev Editon? FAILS ----- Machine_A <-- JDBC --> Machine_A\SQL2K_Dev_Ed..db Error: "com.inet.tds.SQLException: Connection refused" ...
0
by: Tomas Cronqvist | last post by:
The current solution is that I access my DB thru an application server. The clients instantiate CAO remoting objects executing on the server In that way only the app.server needs to be an Oracle...
0
by: NeedHelp | last post by:
Our ASP.NET application receives around 90 anonymous hits/sec while Requests Executing usually stays around 15-25. This is good and our server performs well What our app does is load a remote...
2
by: Ray Dillinger | last post by:
Okay, most of my career has been spent doing linguistics or hardcore math, and letting other people write the interfaces to it. Now I'm up for something a little different and I need to expand my...
0
by: Mark Avis | last post by:
Hello, When I try to install the sample app IBuySpy onto my Server I get an error. When I check the IBuySpy install log it says that it could not insert ASPNET user into the SQL Database. Can...
7
by: Brian Henry | last post by:
I am trying to deploy my VB.NET project with a setup project, and I need to make a reg key entry.. but it also needs to have the path to where the program was installed in they string i placed in...
3
by: Ann Huxtable | last post by:
Hi, I am developing a C# front end. But my backend app server is JBoss. I want to know how I can communicate with the backend (maybe using System.Net.WebClient classes?). A search on Google does...
1
by: SAIRAAM | last post by:
what is an app server? what is a web server? major difference between the two? what is in app server which is not in web server? it will very helpful if u can provide examples.. thank u. ...
8
ak1dnar
by: ak1dnar | last post by:
Hi, I need a big favor from you guys. I've installed Fedora 8 on a dell server in our office and i want to install sun application server on it. So I downloaded the "sjsas-9_1_01-linux.bin" file...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.