Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ActiveX dll object for asp use problem

Posted on 2002-03-14
3
Medium Priority
?
153 Views
Last Modified: 2010-05-02
Dear All,
I had wrote a dll which will generate xml in a xxx.asp file (using msaccess xxx.mdb file). However, when the database file is located in a network driver it fail to open it. The encode is:

Sub xxx()
...
Set dbConnection = New ADODB.Connection
dbConnection.Open Application("wsr_db_ConnectionString")
...

End Sub

Application("wsr_db_ConnectionString") = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  "Data Source=S:\abc.mdb;" & _
  "Persist Security Info=False"


The error message is :
Error Occur in gm0101.gx0101() : -2147467259:The Microsoft Jet database engine cannot open the file 'S:\eSales.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

The IIS PC's OS is win2k pro and the network driver is a win98 pc. Both PC's file system are FAT32

I don't know why it claim that it is access control issue?

Thanks for the one who can help me!

Jeff Ching



0
Comment
Question by:jeff_ching
3 Comments
 
LVL 6

Accepted Solution

by:
Triskelion earned 400 total points
ID: 7053698
Try using the UNC name and not the drive letter.

\\SERVER\directory\abc.mdb

Are you sure the drive letter is accessible to others from the web page?
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7618281
Hi jeff_ching,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Triskelion's comment(s) as an answer.

jeff_ching, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:kodiakbear
ID: 7665721
Moving to the paq

kb
Experts Exchange Moderator
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question