hi, i am tryin to download an xml file from server1 in the network. but
i am not able to download in some of the systems in the network, about
80 percent of the system it works and 20 percent of systems my
application doesnt work after i create .msi My application is a vb.net
windows application.
i am using webclient.download() method, and also i am trying to copy a
file using io.file.copy() method.
i dont know where i am going wrong, i also have a doubt if it is a path
problem. i am downloading the xml file in my application directory
using. application.startuppath()
here is the short code snippet of my application. can anyone please
help me out
Dim oDSConfigSettings As New DataSet
Dim wc As New System.Net.WebClient
Dim strSep As String = Path.DirectorySeparatorChar
Dim strConfigSettings As String = Application.StartupPath & strSep
& "ConfigSettings.xml"
Dim strConfigSettings1 As String = Application.StartupPath & strSep &
"ConfigSettings1.xml"
Private Sub btnEYOffice_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnEYOffice.Click
pConfigDownloadMain()
end sub
Private Sub pConfigDownloadMain()
oDSConfigSettings = New DataSet
oDSConfigSettings.ReadXml(strConfigSettings1)
strDownLoadConfigSettings =
oDSConfigSettings.Tables(0).Rows(0)("XmlServer1") &
"ConfigSettings.xml"
wc.DownloadFile(strDownLoadConfigSettings,
strConfigSettings)
IO.File.Copy(strConfigSettings, strConfigSettings1, True)
end sub