Running my web application on the server I get error on CreateObject. It works on my local PC. Any ideas?
Code:
Imports System.IO
.
..
..
Private Sub CheckDocumentExists(ByVal DocumentName As String) 'if report exists, do not allow to proceed
Continueprocess = True
Dim myfso
myfso = Server.CreateObject("Scripting.FileSystemObject")
If (myfso.FileExists(ViewState("FilePath") & "\" & DocumentName & ".pdf")) = True Then
Message = "Warning: Daily Sales Report: " & DocumentName & " already exists. Cannot save another copy"
Continueprocess = False
ASPNET_MsgBox_Alert(Message)
End If
myfso = Nothing
End Sub
HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable