|
-
May 23rd, 2012, 10:32 AM
#1
Thread Starter
New Member
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... ?
-
May 23rd, 2012, 12:23 PM
#2
Re: publish VB.NET
And you didn't have an error when compiling?
it should be "Application.StartupPath"
-
May 23rd, 2012, 12:24 PM
#3
Thread Starter
New Member
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.
-
May 23rd, 2012, 12:25 PM
#4
-
May 23rd, 2012, 12:31 PM
#5
Thread Starter
New Member
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
-
May 23rd, 2012, 06:21 PM
#6
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:
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
-
May 24th, 2012, 12:53 AM
#7
Thread Starter
New Member
Re: publish VB.NET
I did them all. but still no change..
-
May 24th, 2012, 12:54 AM
#8
Re: publish VB.NET
Can you upload your project?
-
May 24th, 2012, 01:00 AM
#9
Thread Starter
New Member
Re: publish VB.NET
umm.. sorry. I really want to upload it but my colleagues didn't give me permission to do so.
-
May 24th, 2012, 01:32 AM
#10
Re: publish VB.NET
Check your installation folder if the file is there. That is the only thing there is left to say.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|