473,378 Members | 1,393 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,378 software developers and data experts.

ADO fails FSO works on a share

IIS 5.0 is running on a Win2K Server called serverA as a domain user.
The domain user has administrator rights on the server.

The database is on serverB(Win2K server). The IIS domain user also has
full rights to the share. The database is an Access97 database that
is part of another application. I made a copy of the database and did
a compact and repair on the copy. It opens fine with Access 97 and
has no security restrictions.

The short of it is I can write to and read from the directory using:

Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile("\\serverB\care\vcare4x\ database\fc01\testfile.txt",
8,true)

So the base permissions should be OK.

I get the dreaded 80004005 Microsoft Jet database engine cannot open
the file '(unknown)'. when I try this code:

MdbFilePath = "\\serverB\CARE\VCARE4X\DATABASE\FC01\vc40clin_IIS .mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" &
MdbFilePath & ";"

When I put a copy of the database on the IIS server (not a permanent
option) the page works fine.

Why does the FSO work but not the ADO?
Jul 19 '05 #1
1 1438
Confirm that it is ADO and not the database itself by creating a new
database and NOT compacting / repairing it, and try to access that...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Brian" <bl***@email.com> wrote in message
news:f8**************************@posting.google.c om...
IIS 5.0 is running on a Win2K Server called serverA as a domain user.
The domain user has administrator rights on the server.

The database is on serverB(Win2K server). The IIS domain user also has
full rights to the share. The database is an Access97 database that
is part of another application. I made a copy of the database and did
a compact and repair on the copy. It opens fine with Access 97 and
has no security restrictions.

The short of it is I can write to and read from the directory using:

Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile("\\serverB\care\vcare4x\ database\fc01\testfile.txt
", 8,true)

So the base permissions should be OK.

I get the dreaded 80004005 Microsoft Jet database engine cannot open
the file '(unknown)'. when I try this code:

MdbFilePath = "\\serverB\CARE\VCARE4X\DATABASE\FC01\vc40clin_IIS .mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" &
MdbFilePath & ";"

When I put a copy of the database on the IIS server (not a permanent
option) the page works fine.

Why does the FSO work but not the ADO?

Jul 19 '05 #2

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

Similar topics

4
by: Rene' Nielsen | last post by:
Context: Running Windows 2003 Server on an intranet. A web is configured with an anonymous access account that is a domain account that has been granted the desired access to a file on another...
1
by: Scott Kay | last post by:
I would please like some help solving an annoying problem with the use Win32 API WNetAddConnection2 from VB.Net 2003, a Windows XP client, and Windows 2003 Web Server server. The client is on...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
0
by: Nick | last post by:
I am getting the following error when creating a new CacheDependency object: Failed to start monitoring changes to '\\server\share\dir49' This error happens after 48 successful instantiations of...
5
by: John Sever | last post by:
My transform in cludes a variable that holds a node set from the node-set() extension function. It the transformation works fine when using MSXML2 or msxsl.exe but not in VB.Net. My code looks...
2
by: Nans | last post by:
One basic ASP.NET database issue…. I have a c# app running on a iis6 on one win2k3 adv servermachine & database on other win2k server machine…(in the same domain) Using windows authentication in...
8
by: VB Programmer | last post by:
I would appreciate your assistance on this ASP.NET 2.0 site.... This is the wierd problem: While accessing the built in .NET functions for 'profiling' or 'membership' an error is generated (see...
0
by: =?Utf-8?B?SGFucw==?= | last post by:
Hi! When I start my app from a specific local directory, it works fine. When, however, I share that directory and start from the share, it throws a security exception. I have added the...
3
by: Tyno Gendo | last post by:
Has anyone come across this problem with require_once? I was working on my local machine with apache and have included a file like this: require_once "welcome_patient.php"; Works fine, the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.