Solved

Application crashing accessing DAO odbcdirect under different user than administrator

Posted on 2004-04-30
8
659 Views
Last Modified: 2013-12-25
Hello everybody

Summary:
I have a problem with a VB application using DAO 3.6 or 3.51 that will not run only under administrator account.
Under a normal domain user account a Run-Time Error 3633 occurs when calling the CreateWorkspace method in the application.


Problem description:
My environment is Windows XP, I have DA0 3.6 installed on my system, SQL server 2000, Visual Basic 6.0
I have a small Visual Basic application that accesses both an SQL database and a Foxpro table.
Both are accessed using DAO 3.6 and their coresponding ODBC drivers.
I create 2 workspaces for each connection:

1) For the connection to the SQL database:
  sConnectionString = "ODBC;DATABASE=MyDatabaseName;"

  Set wrkSql = CreateWorkspace("SqlWorkspaceName", SqlUserName, SqlPassword, dbUseODBC)

2) For the connection to the Foxpro table:
   sConnectionString = "ODBC;DRIVER={Microsoft FoxPro VFP Driver (*.dbf)};" & _
       "UID=;Deleted=Yes;Null=Yes;Collate=Machine;BackgroundFetch=Yes;" & _
       "Exclusive=No;SourceType=DBF;DNS=;DATABASE=LocalDatabaseName;" & _
       "SourceDB=" + DataPathToThePhysicalFile + ";"

  Set wrkEdi = CreateWorkspace("FoxproWorkspaceName", "admin", "", dbUseODBC)

The program run with no glitch on my developing system (Windows XP).

At the client's site - Windows 2000 Server used as a Terminal Server were all the users log in and do their work it also runs with no glitch under the administrator account.

If I log in as a normal domain user the program will through:

1) If a try to open first the Foxpro workspace - a Run Time Error 3633 with the message - Can't load DLL "?????L?"

2) If a try to open first the SQL workspace - a Run Time Error 3633 with the message - Can't load DLL "MSRDO20.DLL

There is a MSDN support article on this problem:
http://support.microsoft.com/default.aspx?scid=kb;en-us;260369

but it does not answert the question on why the program runs ok with administrator account and doesn't run ok with a normal account.

I have checked and the normal user seems to have access to all the required dlls for thsi project.

Please advise how could I solve this issue.

Thank you
0
Comment
Question by:Tavirgil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
8 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 10960684
Try using ADO in a sample application. You may avoid the entire problem all together.

Leon

0
 

Author Comment

by:Tavirgil
ID: 10970488
Indeed I should have started using ADO when I developed the aplication.

I am not sure of the overhead of changing from DAO to ADO but because I am under presure from management to finish off the project it might to late for a conversion now.

Anyway I found the solution and I just wanted to posted for future reference:

Registering MSRDO20.DLL under that specific domain user solved the problem (the DLL was located in the system32 directory but not seen as registered by that specific domain user).

c:\winnt\system32\regsvr32 MSRDO20.DLL

But of course I may need to do this for all the users that connect remotely to that Terminal Server.

Again the question comes up of why under administrator account the MSRDO20.DLL can be loaded by the application while under other accounts this fails.

The possible answer lies in the fact that to install correctly something on a Terminal Server you must put the system into Install Mode.

I believe that MS Office was install under administrator account without putting the system into INSTALL MODE and that has resulted in the other users not having some of the DLL's registered.

Of course this is only a theory since the tests needed to confim / unconfirm this need resources that I don't have at this point.

Thank you for the tip about using ADO for future projects as it seems to pay off due to less problems than with using DAO.

Regards
 
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 10972346
Sorry could not have been of more help.  Good luck.  BTW you should ask for a refund.

Leon
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:Tavirgil
ID: 10974035
Thanks for that and ADO tip.

Virgil
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 10974041
No problem and please close this question.

Leon
0
 

Author Comment

by:Tavirgil
ID: 11030574
I have posted request for closing and refund in the Community Support for this question 8 days ago allready and still nothing happend.

How do I close the question ?
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11037213
User resolved; closed, 500 points refunded.

Netminder
Site Admin
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 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