473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Path/File Access Error (75)

LP
If you can't seem to eliminate throwing this exception, then the answer is to
look for a different file opened previously with an invalid or missing
filename. For example, assume the following code:

Dim FileName15, FileName16 As String

Filename15 = "mytextfile.txt"

Fileopen(15, FileName15, Mode.Output)
Fileopen(16, FileName16, Mode.Output)

Print(15,...)

Even though we are only writing to unit 15 (which has a valid file name),
the exception nevertheless gets thrown because the filename for 16 was never
defined. This means that you will get "Path/File access error" messages
when writing to file with valid filenames when the true problem is because
there is a filename problem with another file that was opened.

In short, when it seems impossible to locate the source of this error
message, you must search above the line where the error is being thrown and
look for a file that was opened that did not have a valid file name.
Examples of invalid files names are:

1. Never initializing a filename (i.e., Dim filename as string)
2. Illegal character usage in filename string, for example: c:\\myfile.txt
3. Not using the string type for filenames (i.e., Dim filename as Integer)

LP
Nov 21 '05 #1
1 4590
"LP" <LP@discussions.microsoft.com> schrieb:
[...]


Is this a question or a reply to a question?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Theerachet Pratoommanee | last post by:
This is error message I've got. Any suggestion would be appreciated. Server Error in '/WebDirectory' Application. ----------------------------------------------------------------------------...
8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
1
by: Paul T. RONG | last post by:
I got this error 75 when I want to exit access. And it just happened on one computer which has been installed windows xp pro english service pack 1, I use A2K runtime. Anybody had met that before?...
2
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet...
1
by: Jody Gelowitz | last post by:
We are having an issue in that when trying to read a file that is on Server2 from Server1 (through our ASP.NET project), we receive the error: Access to the path "\\Server2\MyShare\MyFile.tif" is...
0
by: Leif Peterson peterson | last post by:
If you can't find a cause for this error message, and have looked at all code near the statement raising the error, then the following may help you identify the real solution. Consider the...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
2
by: klaash | last post by:
I created a program using VB6 which has many dependency JPG files. All files are installed in the same subfolder folder of Program Files folder using Package and Deployment Wizard. in VB6....
3
kZero
by: kZero | last post by:
Hi, i have problem with this code in windows vista intfile = FreeFile Open strDestination For Binary Access Write As #intfile Run-time error '75': Path/File access error
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.