469,300 Members | 2,239 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Distributing an exe with 3rd party dlls

Hi there I hope this is in the right section, apologies to admin if not.

I have a vb.net project that references a 3rd party dll. Within my vb.net project I use the <3rdparty>.dll events that are publicly available.

When building the solution for distribution, the <3rdparty>.dll is included as a dependency and when the project is deployed using a .msi the <3rdparty>.dll and a "Interop.<3rdparty>.dll" is included in the distribution directory.

To run my application, the dot network framework must be installed and I have to register <3rdparty>.dll. This all works fine on a work station.

My question is, i would like to run my application on a server, from a work station and have not been able to do this successfully.

Experimenting, I have made 2 HelloWorld projects, one including and referencing the <3rdparty>.dll and the other without and installed then both on a server. The work stations and server have .net framework and <3rdparty.dll> registered. The HelloWorld on the server without <3rdParty>.dll runs like a charm when called from a work station. The Helloworld with <3rdparty>.dll does not run - gets an error: "HelloWorld as encountered an error and needs to close".

Can anyone help? I dont want to install the application on every work station as its a nightmare to update when the program changes - i only want to update the program in one place.

Thanks in advance,
Mar 4 '08 #1
2 1443

This may be connected to security handling in .net framework.
Check the details from the error window ("hello world encountered an error...") -
and if I'm right, it'll say something like:
"System.Security.SecurityException. Request permission (...)"

pls check the links, hopefully you'll find the solution there:

the first one I read to solve my problem (it didn't help fully but was enough for further research), the others seem useful too, I didn't read them thoroughly though, just googled a little;

good luck!
Mar 4 '08 #2
Hi Misza, thanks for your reply.

The message I get is not as you suggested, the error is "system.invalidoperationexception"

Thanks for the links though, they are particularly helpful as I need to go down this path of running a .net application on a server from a workstation and appreciate the reading.

In the mean time i will persist with this project and maybe remove the code reference to the dll events then try and put them back in in a different way.

Mar 11 '08 #3

Post your reply

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

Similar topics

reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.