"File Not Found/Invalid File Format" Errors 
Author Message
 "File Not Found/Invalid File Format" Errors

I have written an appliciation for a local network using VB3 Pro.  When
the initial form is loading I get an Invalid File Format Error.  When I
run the program on a stand alone system thru Visual Basic, I dont get
this error.  I have also seen some File Not Found errors when the
program is not trying to read from a file.  What could cause these? I
have put in On Error Resume Next statements but this doesn't seem to
help.  Where should I look for the problem?

Thanks for the help?

Tim



Mon, 20 Jul 1998 03:00:00 GMT  
 "File Not Found/Invalid File Format" Errors

: I have written an appliciation for a local network using VB3 Pro.  When
: the initial form is loading I get an Invalid File Format Error.  When I
: run the program on a stand alone system thru visual basic, I dont get
: this error.  I have also seen some File Not Found errors when the
: program is not trying to read from a file.  What could cause these? I
: have put in On Error Resume Next statements but this doesn't seem to
: help.  Where should I look for the problem?

Well, Invalid file format errors are when you are trying to use a print
function in a binary file format, or viseversa.  And if you use an open
"filename.ext" for output (OR input) as #1
and filename.ext does not exist, it will give you an error, you might want
to run the file one step at a time, on the network....  What I do is I put
a message box before I open a file with the filename in the box (It may be
a variable to open the file...)  But I read off the directory and the
filename of what you are going to open, so when you do get an error
message, you know with what file it is....  So I would go through the
program, put little message boxes before the open statement, and then
compile and run on the network....  Then jot down the files that need to
be fixed, Go to dos, see what and where each file is....  If it does not
exist, edit a file, save it as the filename, and leave it bland or
anything.....

-- Ben
--
Ben Buxton, Sophomore quad at Dublin Scioto High School.
Home of the Division 2 champions!!!  Go Irish, Go band!!!
Creator of the official DSHSMB Web page.
http://pages.prodigy.com/OH/dshsmb



Thu, 23 Jul 1998 03:00:00 GMT  
 "File Not Found/Invalid File Format" Errors
Several Months ago I found the same problem.  We never did find a reason why
this happens other than there was a conflict with the network software and
VB, We did find that if you compile the program to your local drive instead of
a network drive this Invalid File Format error goes away.  You then just have
to copy the .exe up to the network and all should be fine.


Quote:

>I have written an appliciation for a local network using VB3 Pro.  When
>the initial form is loading I get an Invalid File Format Error.  When I
>run the program on a stand alone system thru visual basic, I dont get
>this error.  I have also seen some File Not Found errors when the
>program is not trying to read from a file.  What could cause these? I
>have put in On Error Resume Next statements but this doesn't seem to
>help.  Where should I look for the problem?

>Thanks for the help?

>Tim



Sun, 26 Jul 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Error "321" -- Invalid File Format

2. "Invalid File Format" Error

3. ODBC error - "file not found" Help

4. Strange "File not found" error

5. "File not found" error

6. Error 32504 "File not Found"

7. "File Not Found" Error

8. HTTP Put "File Not Found" error

9. Error "File not found" with subreport

10. Error: "File Not Found"

11. Strange "File not found" error

12. "file not found" error

 

 
Powered by phpBB® Forum Software