473,386 Members | 1,832 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.

Access: Incompatible version of the RPC stub

This is a general posting of how I fixed a problem created by using the
Access 97 ODE Setup Wizard on a Windows XP machine. I hope it helps anyone
who comes across the problem saves them the 3 days its taken me to sort out.

The application generates the following error:

"Incompatible version of the RPC stub"

This occurs when trying to run Outlook to send an email. However I expect it
would occur for any operation which uses automation.

The problem is documented well in MSKB article 320108
http://support.microsoft.com/default...b;en-us;320108

When I encountered the problem I was using the MOD2000 Package and
Deployment Wizard to deploy an Access 2000 application. I know better now!
The MOD2000 Package & Deployment Wizard is a giant step backwards from the
older Access 97 ODE Setup Wizard. It prompts the user with choices for
overwriting or keeping DLLs (how is an untrained user meant to know the
answer?), it does not overwrite same version DLLs (so re-install always
prompts), it creates multiple entries in Add/remove Programs if you don't
uninstall the previous version (i.e. you cannot reinstall) and its a pain to
use.

I have decided to revert to using the Access 97 deployment method for my
Access 2000 applications.

However both deployment methods attempt to install a VB runtime on the
target machine. They both (by default) take the host machine's system DLLs
for the run-time. If the host machine is Windows XP then these files
(version 3.50.xxxx.x) are not compatible with the older versions of Windows
(version 2.40.xxxx.x). For Windows NT targets, the XP DLLs are installed and
break automation. For Windows 2000 targets, windows file protection prevents
them from being installed. This prevents a MOD2000 installation from working
but an ODE97 installation works OK.

I find it hard to believe that Microsoft have made another fundemental
windows DLL incompatible with previous versions. They did it with Comcat.dll
which broke machines with IE3 installed. Now they've done it again.

Since Oleaut32.dll is used by Windows Explorer, damaged machines must be
recovered in safe mode of from a DOS command prompt.

My method here takes the DLL's from the VB6 Runtime SP5 and modifies the
ODE97 Setup Wizard to use these instead of the host machine's (potentially
damaging) system DLL's. This an installation on Win9x/NT will update to
VB6SP5, Win2K will not fire Windows File Protection and WinXP will leave the
(newer) DLLs alone.

So here goes:

Patching the ODE97 Setup Wizard for VB6 SP5 runtime files
----------------------------------------------------------------------------

Problem: The ODE Setup Wizard installs some VB runtime DLL's. These are
normally taken from the windows system directory of the host computer. If
host is WinXP and target is Win 9x/NT, this puts an incompatible version of
Oleaut32.dll on target machine and results in "Incompatible version of the
RPC stub" if any office automation is attempted. See MSKB 320108 for
details.

Fix: Replace system files with those provided by VB6 Runtime SP5
(VBRun60sp5.exe). Since files are used by windows this must be done in safe
mode or from DOS boot disk. See MSKB 290887 for details.

Prevention: Modify ODE Setup Wizard to use the DLLs from VB6SP5 instead of
host system directory.

1) Copy following files to C:\Program Files\Microsoft Office\ODETools\Setup
Wizard\REDIST:

Oleaut32.dll
Asycfilt.dll
Stdole2.tlb
Olepro32.dll

Use version 2.40.xxxx.x versions (VB6SP5) not 3.50.xxxx.x versions (WinXP)

2) Modify C:\Program Files\Microsoft Office\ODETools\Setup
Wizard\MSACCOMP\00Setup.MDT

Open in Access
Open OLEAUT32 table
For each of the above DLLs find the row with LineID=add <dll>
Change Param2=$(WinSysPath) to $(SwizSetupFilesPath)
Change Param3=C:\WINDOWS\System32\<dll> to C:\Program Files\Microsoft
Office\ODETools\Setup Wizard\Redist\<dll>

ODE Setup Wizard will now use older versions of DLLs to create installation.

Best Regards

Neil
--------------------------------------------------------
Neil Sargent
Smart IT
Email: ne**@sargent.nospam.demon.co.uk
--------------------------------------------------------

Nov 12 '05 #1
0 1981

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

Similar topics

17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
3
by: Jaroslaw Zabiello | last post by:
I got strange errors in Zope 2.7. METALError macro 'context/base' has incompatible version None, at line 1, column 1 One ZPT file (named 'base') defines some simply slots: <html...
6
by: seansan | last post by:
Hi, Does anyone know how to read the full access version number in visual basic? I need to know if the current program instance is SR-1 or SP-3, etc... I currently use: DB_DAO =...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
2
by: cipher | last post by:
I have a .NET web service running on IIS. The client is a Java applet. The client calls a method on the server every few seconds. When running the client in IE 6, it gradually uses up all...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
2
by: Kevin | last post by:
I will soon be purchasing my first PDA for use on my job and I would like to (in time) create a sync between the Access db that I use on my desktop and something for the pda. It would primarily be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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.