Error 75: File/Path Access Error 
Author Message
 Error 75: File/Path Access Error

I'm developing an application in VB 5.0 that is using a database.  I
created an installation package using the VB Setup Wizard, and did an
installation on NT Server 4.0 (no service packs installed).  It runs
fine.

Another person has installed it on NT Server 4.0 (SP2) and keeps
getting "Error 75: File/Path Access Error"  Any ideas on what could be
causing this?

The statement reads:
myDB = DBEngine.OpenDatabase(App.Path & "\" & "myDB.mdb")

I have also tried:
myDB = DBEngine.OpenDatabase(App.Path + "\" + "myDB.mdb")
myDB = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\" &
"myDB.mdb")

The file myDB.mdb DOES exist, as it was installed with the
application.

I have had the person try installing it as Administrator vs. User, in
a directory other than the default "C:\Program Files\myApp" directory.

The error occurs if he runs the application as Admin or as User.

I have checked to ensure the file is not read-only (if it is, a
different error occurs).

Thanks for any assistance!



Fri, 20 Dec 2002 03:00:00 GMT  
 Error 75: File/Path Access Error
I'm not sure if this is your problem, but I have run across troubles
with "App.Path" on NT servers.  Replacing that with an INI and
specificaly nameing the path, and it cured my woes.

Good luck.

-Daja



Quote:
> I'm developing an application in VB 5.0 that is using a database.  I
> created an installation package using the VB Setup Wizard, and did an
> installation on NT Server 4.0 (no service packs installed).  It runs
> fine.

> Another person has installed it on NT Server 4.0 (SP2) and keeps
> getting "Error 75: File/Path Access Error"  Any ideas on what could be
> causing this?

> The statement reads:
> myDB = DBEngine.OpenDatabase(App.Path & "\" & "myDB.mdb")

> I have also tried:
> myDB = DBEngine.OpenDatabase(App.Path + "\" + "myDB.mdb")
> myDB = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\" &
> "myDB.mdb")

> The file myDB.mdb DOES exist, as it was installed with the
> application.

> I have had the person try installing it as Administrator vs. User, in
> a directory other than the default "C:\Program Files\myApp" directory.

> The error occurs if he runs the application as Admin or as User.

> I have checked to ensure the file is not read-only (if it is, a
> different error occurs).

> Thanks for any assistance!

Sent via Deja.com http://www.deja.com/
Before you buy.


Fri, 20 Dec 2002 03:00:00 GMT  
 Error 75: File/Path Access Error

Quote:

> I'm developing an application in VB 5.0 that is using a database.  I
> created an installation package using the VB Setup Wizard, and did an
> installation on NT Server 4.0 (no service packs installed).  It runs
> fine.

> Another person has installed it on NT Server 4.0 (SP2) and keeps
> getting "Error 75: File/Path Access Error"  Any ideas on what could be
> causing this?

> The statement reads:
> myDB = DBEngine.OpenDatabase(App.Path & "\" & "myDB.mdb")

> I have also tried:
> myDB = DBEngine.OpenDatabase(App.Path + "\" + "myDB.mdb")
> myDB = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\" &
> "myDB.mdb")

> The file myDB.mdb DOES exist, as it was installed with the
> application.

> I have had the person try installing it as Administrator vs. User, in
> a directory other than the default "C:\Program Files\myApp" directory.

> The error occurs if he runs the application as Admin or as User.

> I have checked to ensure the file is not read-only (if it is, a
> different error occurs).

> Thanks for any assistance!

If you installed from a CD you burned, some of the files
you put out may still be marked Read-Only.  That'll cause this.

Joe



Fri, 20 Dec 2002 03:00:00 GMT  
 Error 75: File/Path Access Error
I have seen code before that tests App.Path for "\" on the end of it, like
this:

If right$(app.path,1) <> "\" then
    app.path = app.path & "\"
endif

If you haven't found your problem yet you might look at this possibility.

Quote:

>I'm developing an application in VB 5.0 that is using a database.  I
>created an installation package using the VB Setup Wizard, and did an
>installation on NT Server 4.0 (no service packs installed).  It runs
>fine.

>Another person has installed it on NT Server 4.0 (SP2) and keeps
>getting "Error 75: File/Path Access Error"  Any ideas on what could be
>causing this?

>The statement reads:
>myDB = DBEngine.OpenDatabase(App.Path & "\" & "myDB.mdb")



Sun, 22 Dec 2002 03:00:00 GMT  
 Error 75: File/Path Access Error
**App.Path will never return with "\" as the last character.



Quote:
> I have seen code before that tests App.Path for "\" on the end of it,
like
> this:

> If right$(app.path,1) <> "\" then
>     app.path = app.path & "\"
> endif

> If you haven't found your problem yet you might look at this
possibility.


> >I'm developing an application in VB 5.0 that is using a database.  I
> >created an installation package using the VB Setup Wizard, and did an
> >installation on NT Server 4.0 (no service packs installed).  It runs
> >fine.

> >Another person has installed it on NT Server 4.0 (SP2) and keeps
> >getting "Error 75: File/Path Access Error"  Any ideas on what could
be
> >causing this?

> >The statement reads:
> >myDB = DBEngine.OpenDatabase(App.Path & "\" & "myDB.mdb")

Sent via Deja.com http://www.deja.com/
Before you buy.


Mon, 23 Dec 2002 03:00:00 GMT  
 Error 75: File/Path Access Error

Quote:

> **App.Path will never return with "\" as the last character.

It will if you put your EXE in C:\ or any other root directory

--
Please reply via the newsgroup only

Sent via Deja.com http://www.deja.com/
Before you buy.



Thu, 26 Dec 2002 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Error 75: File/Path Access Error

2. Error 75: File/Path Access Error

3. Path/File access error (Error 75)

4. Error 75 (Path/File access error) ???

5. Error 75 'Path/File access error'

6. Error 75 Path/File access error

7. Error 75 'Path/File access error'

8. Path/File access error (Error 75)

9. Error 75 path/file access error

10. RT 75: Path/File access error?

11. FileCopy returns path/file access error 75.

12. Path/File Access Error 75

 

 
Powered by phpBB® Forum Software