-1

I have a shared folder containing a list of wav files i wish to open this files from my asp.net application. everything is working good when we launch our application from loaclhost but after deploying it it is not workin ( it can not find files)

my code :

Dim oDirectories As String() = Directory.GetFiles("\\192.168.1.160\records\Files\" & dateC & "\", "*.wav")
Dim files As List(Of String) = (From q In oDirectories
                       Where q.Contains(indice)
                       Select q).ToList()

Dim liststrings As Integer = files.Count
ListBox1.DataSource = files
ListBox1.DataBind()
mason
  • 28,517
  • 9
  • 66
  • 106
rami
  • 1
  • 3

1 Answers1

1

When you saying "deploying" - what do you actually mean - to a public/hosting server? Realize that you are using a private IP - which in, and of itself, doesn't always point to the problem (it's possible, depending on your type of hosting account - re: dedicated subnet), but based on the info you provided, that would be where to look first.

EdSF
  • 10,269
  • 3
  • 40
  • 75