Expand|Select|Wrap|Line Numbers
- Private Function ReturnPath()
- Dim vImagePath As String
- Dim vPath As New Uri(Request.Url.ToString)
- Dim vPathString As String = Left(vPath.Authority, 9)
- If vPathString = "localhost" Then
- vImagePath = gFilePath.gFilePathLocal
- Else
- vImagePath = gFilePath.gFilePathServer
- End If
- Return vImagePath
- End Function
Now I must be really missing something here, because I assumed that the path would always be relative to the machine it was being run on, so that on the server it would be C:\Somefolder and on my workstation it would map to K:\Somefolder... But no!! If I load the app onto the server and open it in a browser, it's still wanting the path from my local machine.. So, how do I map to a file outside of the App so that the server locates it, not the local machine? Talk about confuzzed....