getting the wrong path (wrong PC!)

  • Thread starter Thread starter george d lake
  • Start date Start date
G

george d lake

Hi,

I have the following code. It works fin on the dev box (my box) but when
I move the .vb, .aspx and dll over it will "some times" point to my box!

here is the error message
Access to the path
"\\corpmis100973n3.mydomain.com\wwwroot$\AELookUpV3\Default.aspx.vb" is
denied.

corpmis100973n3 is my box and this code errored on the live server.

Any ideas?



Dim StackFrame As New StackFrame(1, True)
Dim objStreamReader As StreamReader
Dim LineNumber As Integer
Dim iLineLoop As Integer
Dim contents As String
Dim strCode As String
Try
If oDIAD.GetErrorName <> "" Then
LineNumber = StackFrame.GetFileLineNumber - 10
If LineNumber < 1 Then
LineNumber = 1
End If
objStreamReader = File.OpenText(StackFrame.GetFileName) **** ERROR
LINE*****
 
Back
Top