473,546 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:

"Incompatib le 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 "Incompatib le 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=$(WinSys Path) to $(SwizSetupFile sPath)
Change Param3=C:\WINDO WS\System32\<dl l> 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.no spam.demon.co.u k
--------------------------------------------------------

Nov 12 '05 #1
0 1998

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

Similar topics

17
2868
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 knew db's and gave me long list of things to do with that particular database, first thing being that particular conversion. Truth is that I don't know...
3
2342
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
6
4940
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 = DBEngine.Version DB_JET = CurrentDb().Version DB_VERSION = Application.SysCmd(acSysCmdAccessVer)
7
8830
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and...
11
6559
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am...
2
4992
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 available IIS connections (limit is set to 10, but have tried it at 40 with same results) resulting in a 403 Access Forbidden exception. When I run the...
34
2544
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 remains desperatly grayed. It also seems impossible to open the library in another Access instance
4
21690
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 webserver to see if service A needs to be updated. What service B does if it sees their is an update for service A is to download a new copy of the...
2
1675
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 a list of contacts and daily time tracking on the job site. My first assumption would be that a "pockePC" running Windows Mobile would be the best...
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7698
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7947
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7794
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.