EDN Admin
Well-known member
<div id="x_post_message_4310569 Cant deploy my images and wmv files
<div id="x_post_message_4310569
<blockquote>I have a simple VB.net project. Works fine in the " id="x_itxthook0 " style="padding:0px; border:0px transparent; font-size:100%; font-style:normal; font-weight:normal; text-decoration:none; display:inline; background-color:transparent
<span class="x_itxtrst x_itxtrstspan x_itxtnowrap" id="x_itxthook0p <span class="x_itxtrst x_itxtrstspan x_itxtnowrap x_itxtnewhookspan" id="x_itxthook0w" style="border-width:0px 0px 1px; border-style:none none solid; border-color:#00cc00; padding:0px 0px 1px!important; color:#009900; font-size:100%; font-weight:normal; text-decoration:underline!important; background-color:transparent IDE<img id="x_itxthook0icon" src="http://images.intellitxt.com/ast/adTypes/icon1.png" style="margin:0px!important; padding:0px 0px 0px 4px!important; vertical-align:baseline!important .<br/>
<br/>
I am trying to deploy it onto a server so my helpdesk guys can " id="x_itxthook1 " style="padding:0px; border:0px transparent; font-size:100%; font-style:normal; font-weight:normal; text-decoration:none; display:inline; background-color:transparent
<span class="x_itxtrst x_itxtrstspan x_itxtnowrap" id="x_itxthook1p <span class="x_itxtrst x_itxtrstspan x_itxtnowrap x_itxtnewhookspan" id="x_itxthook1w" style="border-width:0px 0px 1px; border-style:none none solid; border-color:#00cc00; padding:0px 0px 1px!important; color:#009900; font-size:100%; font-weight:normal; text-decoration:underline!important; background-color:transparent deploy<img id="x_itxthook1icon" src="http://images.intellitxt.com/ast/adTypes/icon1.png" style="margin:0px!important; padding:0px 0px 0px 4px!important; vertical-align:baseline!important
it to all the workstations. <br/>
<br/>
The project has two pictures (used as buttons) and a WMV file.<br/>
<br/>
When I publish - I get a black box for the WMV file and two red x boxes for the images.<br/>
<br/>
I know the files cant be found and thats why they arent displaying after I deploy and run the install.<br/>
<br/>
As you can see in my " id="x_itxthook2 " style="padding:0px; border:0px transparent; font-size:100%; font-style:normal; font-weight:normal; text-decoration:none; display:inline; background-color:transparent
<span class="x_itxtrst x_itxtrstspan x_itxtnowrap" id="x_itxthook2p <span class="x_itxtrst x_itxtrstspan x_itxtnowrap x_itxtnewhookspan" id="x_itxthook2w" style="border-width:0px 0px 1px; border-style:none none solid; border-color:#00cc00; padding:0px 0px 1px!important; color:#009900; font-size:100%; font-weight:normal; text-decoration:underline!important; background-color:transparent code<img id="x_itxthook2icon" src="http://images.intellitxt.com/ast/adTypes/icon1.png" style="margin:0px!important; padding:0px 0px 0px 4px!important; vertical-align:baseline!important
below - Ive tried lots of things to get my wmv and pictures deployed but cant get them to copy over and read from the correct directory.</blockquote>
<pre class="prettyprint If My.Application.IsNetworkDeployed Then
Me.PictureBox1.ImageLocation = "\WSIPR2GSAPyes.jpg"
End If
Me.BackColor = Color.FromArgb(152, 0, 136)
Me.TransparencyKey = Color.FromArgb(152, 0, 136)
black screen when running wmv from server until I changed this..
AxWindowsMediaPlayer1.URL = "\WSIPR2GSAPg4s_new.wmv"
If My.Application.IsNetworkDeployed Then
AxWindowsMediaPlayer1.URL = My.Application.Info.DirectoryPath & "resourcesg4s_new.wmv"
End If
AxWindowsMediaPlayer1.URL = Application.StartupPath & "g4s_new.wmv"
RectangleShape2.Visible = False
Label1.Visible = False
PictureBox1.Visible = False
PictureBox2.Visible = False
If My.Application.IsNetworkDeployed Then
PictureBox1.ImageLocation = My.Application.Info.DirectoryPath & "resourcesyes.jpg"
End If
If My.Application.IsNetworkDeployed Then
PictureBox1.ImageLocation = My.Application.Info.DirectoryPath & "resourcesno.jpg"
End If
PictureBox1.ImageLocation = "C:yes.jpg"
PictureBox2.ImageLocation = "C:no.jpg"
End Sub[/code]
<br/>
<hr class="sig qeqw
View the full article
<div id="x_post_message_4310569
<blockquote>I have a simple VB.net project. Works fine in the " id="x_itxthook0 " style="padding:0px; border:0px transparent; font-size:100%; font-style:normal; font-weight:normal; text-decoration:none; display:inline; background-color:transparent
<span class="x_itxtrst x_itxtrstspan x_itxtnowrap" id="x_itxthook0p <span class="x_itxtrst x_itxtrstspan x_itxtnowrap x_itxtnewhookspan" id="x_itxthook0w" style="border-width:0px 0px 1px; border-style:none none solid; border-color:#00cc00; padding:0px 0px 1px!important; color:#009900; font-size:100%; font-weight:normal; text-decoration:underline!important; background-color:transparent IDE<img id="x_itxthook0icon" src="http://images.intellitxt.com/ast/adTypes/icon1.png" style="margin:0px!important; padding:0px 0px 0px 4px!important; vertical-align:baseline!important .<br/>
<br/>
I am trying to deploy it onto a server so my helpdesk guys can " id="x_itxthook1 " style="padding:0px; border:0px transparent; font-size:100%; font-style:normal; font-weight:normal; text-decoration:none; display:inline; background-color:transparent
<span class="x_itxtrst x_itxtrstspan x_itxtnowrap" id="x_itxthook1p <span class="x_itxtrst x_itxtrstspan x_itxtnowrap x_itxtnewhookspan" id="x_itxthook1w" style="border-width:0px 0px 1px; border-style:none none solid; border-color:#00cc00; padding:0px 0px 1px!important; color:#009900; font-size:100%; font-weight:normal; text-decoration:underline!important; background-color:transparent deploy<img id="x_itxthook1icon" src="http://images.intellitxt.com/ast/adTypes/icon1.png" style="margin:0px!important; padding:0px 0px 0px 4px!important; vertical-align:baseline!important
it to all the workstations. <br/>
<br/>
The project has two pictures (used as buttons) and a WMV file.<br/>
<br/>
When I publish - I get a black box for the WMV file and two red x boxes for the images.<br/>
<br/>
I know the files cant be found and thats why they arent displaying after I deploy and run the install.<br/>
<br/>
As you can see in my " id="x_itxthook2 " style="padding:0px; border:0px transparent; font-size:100%; font-style:normal; font-weight:normal; text-decoration:none; display:inline; background-color:transparent
<span class="x_itxtrst x_itxtrstspan x_itxtnowrap" id="x_itxthook2p <span class="x_itxtrst x_itxtrstspan x_itxtnowrap x_itxtnewhookspan" id="x_itxthook2w" style="border-width:0px 0px 1px; border-style:none none solid; border-color:#00cc00; padding:0px 0px 1px!important; color:#009900; font-size:100%; font-weight:normal; text-decoration:underline!important; background-color:transparent code<img id="x_itxthook2icon" src="http://images.intellitxt.com/ast/adTypes/icon1.png" style="margin:0px!important; padding:0px 0px 0px 4px!important; vertical-align:baseline!important
below - Ive tried lots of things to get my wmv and pictures deployed but cant get them to copy over and read from the correct directory.</blockquote>
<pre class="prettyprint If My.Application.IsNetworkDeployed Then
Me.PictureBox1.ImageLocation = "\WSIPR2GSAPyes.jpg"
End If
Me.BackColor = Color.FromArgb(152, 0, 136)
Me.TransparencyKey = Color.FromArgb(152, 0, 136)
black screen when running wmv from server until I changed this..
AxWindowsMediaPlayer1.URL = "\WSIPR2GSAPg4s_new.wmv"
If My.Application.IsNetworkDeployed Then
AxWindowsMediaPlayer1.URL = My.Application.Info.DirectoryPath & "resourcesg4s_new.wmv"
End If
AxWindowsMediaPlayer1.URL = Application.StartupPath & "g4s_new.wmv"
RectangleShape2.Visible = False
Label1.Visible = False
PictureBox1.Visible = False
PictureBox2.Visible = False
If My.Application.IsNetworkDeployed Then
PictureBox1.ImageLocation = My.Application.Info.DirectoryPath & "resourcesyes.jpg"
End If
If My.Application.IsNetworkDeployed Then
PictureBox1.ImageLocation = My.Application.Info.DirectoryPath & "resourcesno.jpg"
End If
PictureBox1.ImageLocation = "C:yes.jpg"
PictureBox2.ImageLocation = "C:no.jpg"
End Sub[/code]
<br/>
<hr class="sig qeqw
View the full article