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*****
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top