By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,043 Members | 744 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,043 IT Pros & Developers. It's quick & easy.

Distributing an exe with 3rd party dlls

P: 2
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,
PJ
Mar 4 '08 #1
Share this Question
Share on Google+
2 Replies

P: 13
Hi,

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:
http://weblogs.sqlteam.com/jhermiz/archive/2007/08/14/60284.aspx
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx
http://blogs.msdn.com/shawnfa/archive/2004/12/30/344554.aspx

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!
M.
Mar 4 '08 #2

P: 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.

Cheers,
PJ.
Mar 11 '08 #3

Post your reply

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