Results 1 to 10 of 10

Thread: publish VB.NET

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    11

    publish VB.NET

    hi all,

    I've got my VB.NET project published perfectly. But when I install it and run it, the .swf files which has to be displayed on my windows form app is not displayed.

    I've already written the location path of the .swf files this way :
    = Application.Startup & "\FlashFiles\myFlash.swf"

    and have successfully run the .exe (before publishing of course) on another computer as well.

    anyone's help... ?

  2. #2
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: publish VB.NET

    And you didn't have an error when compiling?
    it should be "Application.StartupPath"


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    11

    Re: publish VB.NET

    ooppss sorry i missed the "path"
    yeah so i wrote Application.StartupPath &"\FlashFiles\myFlash.swf" on the code
    Last edited by rainray15; May 23rd, 2012 at 12:27 PM.

  4. #4
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: publish VB.NET

    Does it work now?


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    11

    Re: publish VB.NET

    no i didn't do any change. it was Application.StartupPath &"\FlashFiles\myFlash.swf" indeed.
    i just forgot to write it here on the forum not on the code.

    so nothing's changed for now

  6. #6
    Fanatic Member proneal's Avatar
    Join Date
    May 2011
    Posts
    762

    Re: publish VB.NET

    Seems to me it is not packaged with your deployment.
    Do you have COPY ALWAYS invoked in it's properties?

    With that checked out and it is OKAY, then try this code instead:
    vb Code:
    1. Dim swfFileLocation As String = My.Application.Info.DirectoryPath & "\FlashFiles\myFlash.swf"

    Then use swfFileLocation when using the file.
    The code is basically the SAME, BUT sometimes when using other DLL, and working from the DLL (FROM the DLL), it will run from its location which is DIFFERENT than the application running/using that DLL.
    Now, I don't know if you are running the code from a Library you have made, but in case you have, then this may be the problem after publishing...and usually shows itself as some programming error (not the system's fault) before publishing. In other words -it is a problem you would have picked up on just running your exe on your computer or another...

    So, really -it is a location issue, imo

    good Luck!
    Last edited by proneal; May 23rd, 2012 at 06:24 PM. Reason: clarifications made

  7. #7

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    11

    Re: publish VB.NET

    I did them all. but still no change..

  8. #8
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: publish VB.NET

    Can you upload your project?


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  9. #9

    Thread Starter
    New Member
    Join Date
    May 2012
    Posts
    11

    Re: publish VB.NET

    umm.. sorry. I really want to upload it but my colleagues didn't give me permission to do so.

  10. #10
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: publish VB.NET

    Check your installation folder if the file is there. That is the only thing there is left to say.


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width