Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2009, 03:57 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default File System Object - error

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
 
Old June 2nd, 2009, 04:14 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Found problem:

variable Continueprocess = True was not declared.





Similar Threads
Thread Thread Starter Forum Replies Last Post
File System Object question fogofogo Classic ASP Basics 1 December 8th, 2005 04:14 PM
File System Object kumar_rajeshk Pro VB 6 7 April 28th, 2004 01:35 AM
File System Object Permissions kilika Classic ASP Basics 2 August 6th, 2003 09:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.