Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Calling Windows App from command line prompt?

Calling Windows App from command line prompt?

Scheduled Pinned Locked Moved Visual Basic
questioncsharptestingbeta-testing
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    barney_1972
    wrote on last edited by
    #1

    I have a VB.NET windows app that i have built an exe file for. I orignally put the .exe file on the c:\ for ease of testing but the app didn't work. It complained 'PublicKeyToken=null or one of its dependencies. The system cannot find the file specified.' I have solved this by Publishing and installing the application, instead of just copying the exe file and config file across. However the publish wizard gives me the option of were to publish the install to but not where the install puts the exe file. How can i do this?

    D 1 Reply Last reply
    0
    • B barney_1972

      I have a VB.NET windows app that i have built an exe file for. I orignally put the .exe file on the c:\ for ease of testing but the app didn't work. It complained 'PublicKeyToken=null or one of its dependencies. The system cannot find the file specified.' I have solved this by Publishing and installing the application, instead of just copying the exe file and config file across. However the publish wizard gives me the option of were to publish the install to but not where the install puts the exe file. How can i do this?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      ClickOnce deployment does NOT give you the option of specifing where to install the application. You have to use a traditional Setup project (MSI-based) to specify the installation directory. Also, what was the EXACT error message you got when you just did the copy of the .EXE and config file?? Did you also make sure you copied over any .DLL files that were in the Debug or Release folder??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      B 1 Reply Last reply
      0
      • D Dave Kreskowiak

        ClickOnce deployment does NOT give you the option of specifing where to install the application. You have to use a traditional Setup project (MSI-based) to specify the installation directory. Also, what was the EXACT error message you got when you just did the copy of the .EXE and config file?? Did you also make sure you copied over any .DLL files that were in the Debug or Release folder??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        B Offline
        B Offline
        barney_1972
        wrote on last edited by
        #3

        Did'nt copy ALL the DLL's but only got an error message for one of the DLL's. Anyway, i have now created a MSI install which works better. Thanks

        D 1 Reply Last reply
        0
        • B barney_1972

          Did'nt copy ALL the DLL's but only got an error message for one of the DLL's. Anyway, i have now created a MSI install which works better. Thanks

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          barney_1972 wrote:

          Did'nt copy ALL the DLL's but only got an error message for one of the DLL's.

          They end up in the bin\Debug and bin\Release folders for a reason. Without them, you can expect your app to crash at some point.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups