Distributing an exe with 3rd party dlls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PrincessJasmin
    New Member
    • Mar 2008
    • 2

    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>.dl l events that are publicly available.

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

    To run my application, the dot network framework must be installed and I have to register <3rdparty>.dl l. 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>.dl l 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>.dl l runs like a charm when called from a work station. The Helloworld with <3rdparty>.dl l 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
  • misza
    New Member
    • Feb 2008
    • 13

    #2
    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.Securit y.SecurityExcep tion. 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.

    Comment

    • PrincessJasmin
      New Member
      • Mar 2008
      • 2

      #3
      Hi Misza, thanks for your reply.

      The message I get is not as you suggested, the error is "system.invalid operationexcept ion"

      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.

      Comment

      Working...