Link to home
Start Free TrialLog in
Avatar of mcsten
mcsten

asked on

Outlook 2000 Visual C++ Runtime Library

I have a few different profiles set up in my outlook for different email addresses.  This happens to all of them.  I can open any of the profile and do a "send/receive" to get new mail.  I can view the email messages from the preview and able to click on any links.  I can access contacts.

Problem:
I cannot "open" an email (except to just read it from the preview pane)
I cannot compose a new mail

When I attempt to do the above, I get a "Microsoft Visual C++ Runtime Library" error message that says "Runtime Error!  Program:  C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE"  and "abnormal program termination".

when I click on "OK", outlook just shuts down.

I can't find relevent info on the Microsoft site.  It has something pertaining to Outlook 2002 and I tried it anyway (which didn't work).

Thanks.
Avatar of sunray_2003
sunray_2003
Flag of United States of America image

Do these one by one and check if that would solve the issue

*********
a)Open outlook .Go to help menu and click "Detect and repair". Check if this would help.

b) Repair PST : http://www.slipstick.com/problems/scanpst.htm

c)Also take a backup of all emails and go to control panel ---> mail --> delete the profile and recreate one again

d)Check for spywares and virus

e)If nothing works out repair or reinstall office go to control panel --> add/remove programs --> scroll down to office click on "change" and repair or reinstall
**********

The C++ runtime probably because there is an issue with some outlook add-in.
Do this. Try opening outlook in safe mode (start --> run --> outlook.exe /safe) and press Enter
go to tools --> options --> other --> advanced options --> COM add-ins and remove all add-ins and install them again

SR
Avatar of mcsten
mcsten

ASKER

thank you sunray_2003, I know I posted this message as urgent, but just realize that I don't have my Office 2000 disk with me.  Won't be able to go home to get it for 2-3 days.  So I will definitely try then.

In the mean time, other advice welcome as well.

Will let you know if it works.

Thank you.
mcsten, what operating system are you running?  thanks.

Mark
Avatar of mcsten

ASKER

I'm running on Windows 2000.

Also, as I repair and maybe even reinstall my outlook, how should I save my info (profiles, contacts, old emails with folder categories) to make sure that I don't lose anything or my setting when the problem is fixed.

thanks.
Check these

Look for *.pst file searching in hidden folders
Mostly it would be found in
C:\Documents and Settings\{your profile name}\Local Settings\Application Data\Microsoft\Outlook

OL2000: (CW) How to Back Up, Restore, or Move Outlook Data
http://support.microsoft.com/?kbid=195719

OL2000: (IMO) How to Back Up, Restore, or Move Outlook Data
http://support.microsoft.com/?kbid=196492

SR
Do you have your office cd now?  If so, try uninstalling and reinstalling just Microsoft Outlook through Office setup.  If that doesn't work, then uninstall and reinstall office.  You will not lose any data or setting just by uninstalling and reinstalling.

Mark
Avatar of mcsten

ASKER

I've tried everything... from detect/repair to scanpst.exe to remove and add profile to check for spyware to reinstall to removing the entire Office2000 and install again.  

The problem is still here.  Am I doomed?  I wonder if it'll help if I upgrade but I don't want to waste the money if it's not a solution.
Hello mcsten.  I don't really believe in upgrading to solve an issue.  I've seen it work, but wouldn't usually recommend it.  There are still some things we can try, but if you want to cut right to the extreme, you can manually uninstall and reinstall office, which should resolve your issue.  Here are the instructions.

You can completely remove and reinstall Office by following the directions below:

NOTE:  Be sure to backup your .pst file(s) before the uninstall.

OL2000: (IMO) How to Back Up, Restore, or Move Outlook Data
http://support.microsoft.com/default.aspx?scid=kb;en-us;196492

OL2000: (CW) How to Back Up, Restore, or Move Outlook Data
http://support.microsoft.com/default.aspx?scid=kb;en-us;195719

Download the office removal utility (ork.exe) from the following url:  

http://www.microsoft.com/office/ork/2003/tools/BoxA13.htm

install the utility and then run the removal wizard to remove all of office.  

This utility is very thorough and will remove all of the mapi components and others that don't get removed just by a normal uninstall.

You'd want to rename the following directories after running the office removal utility:

c:\program files\common files\system\mapi    (to something like "oldmapi")
c:\program files\microsoft office    (to something like "oldmsoffice")


Then export and delete the following registry keys:

HKEY_CURRENT_USER\Software\Microsoft\Installer\Components
HKEY_CURRENT_USER\Software\Microsoft\Installer\Features\904..(keys starting with 904)
HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\904...
HKEY_CURRENT_USER\Software\Microsoft\Installer\Patches
HKEY_CURRENT_USER\Software\Microsoft\Office
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Components
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\904...
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Patches
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\904...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office

reboot the machine

then reinstall Office 2000

Now, for the most part, most things should still be intact after doing this.  You're Outlook Profile should even still be intact.  Things like views and custom settings will be reverted back to defaults.

If you want to kill the Outlook Profile also during this process, export and delete this key with the other registry keys:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles

This will delete all profile settings in Outlook.

This is about as extreme as you can get as far as Office is concerned.

Hope this helps!

Mark
Avatar of mcsten

ASKER

Mark, thanks, I'll try this tonight.  Can you quickly explain how to export and delete registry keys?  I'm not familiar with.  i.e. where do I do this?  how do I do this?  what are registry keys?

Thank you.
Ok, you want to be very careful when going into the windows registry.  What version of Windows are you running?
Avatar of mcsten

ASKER

Windows 2000 professional and office 2000 professional
Ok, in Windows, go to Start, run, and type:    regedit    click ok
This will take you into the Windows Registry.

So, one of the registry keys I said to delete was:

HKEY_CURRENT_USER\Software\Microsoft\Installer\Features\904..(keys starting with 904)

So, you would click the plus sign next to HKEY_CURRENT_USER, then click the plus sign next to Software, then click the plus sign next to Microsoft, and so on until you had gotten to Features, which you would again click the plus sign next to features.  You will see a bunch of long alpha-numeric numbers listed under this key.  You would want to export, then delete each key that starts off with the numbers 904.  To export them, you would click the key you want to export so it's highlighted, then click on the Registry menu at the top of the screen, then click Export Registry File, a box will come up that asks where to put the file and what to name it.  Export them to your Desktop and just call them something like reg1, reg2, etc.  Then click save.  This will export each one to your desktop.  Then, just right click on the 904 key and click delete.

I used that one for an example because it's the most complicated.  Here's another example.  I said to delete this key also:

HKEY_CURRENT_USER\Software\Microsoft\Office

So you'd click the plus next to HKEY_CURRENT_USER, then click the plus next to Software, then the plus next to Microsoft, then click on the folder called Office so it's highlighted, the click the Registry menu at the tope of the screen and click Export Registry File.  Choose the Desktop to export it to, then give it the name of Office1 (there are 2 different Office keys I specified to export and delete, so one will be Office1 and one will be Office2).  Then click Save.  Then right click that highlighted Office key and click Delete.  If this is out of your comfort range, you may want to seek help from someone that knows a little more for doing this.

Mark
Avatar of mcsten

ASKER

Mark,

I've just used ORK.exe to remove off, but when I went to rename mapi, it says access denied.  I was able to rename microsoft office.

What should I do now, should I proceed to export and delete the registry keys?

Thanks.
Avatar of mcsten

ASKER

I've gone ahead with the export and delete registry keys.

Did not have the following on your list
HKEY_CURRENT_USER\Software\Microsoft\Installer\Components
HKEY_CURRENT_USER\Software\Microsoft\Installer\Features\904..(keys starting with 904)
HKEY_CURRENT_USER\Software\Microsoft\Installer\Products\904...
HKEY_CURRENT_USER\Software\Microsoft\Installer\Patches
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Patches
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office

I do have something like:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OfficeCompatible.1 or similar

Please help...
Thanks.
Hello mcsten, sorry it took so long to get back to you.  The reason that you can't rename the Mapi folder is because it's in use.  Reboot the machine and then try to rename it.  It is normal to not have some of those keys.  Please check again and be sure that you don't have that last one:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office

If you still don't find it, that's ok.  I actually haven't used the "new and improved" ork.exe, so it looks like it is even doing a better job of cleaning up than it did previously.

Don't do anything with that last key you mentioned though, that's not something you want to delete.

Anyways, sounds like you're doing good though, but you'll want to reboot the machine and try renaming that Mapi folder again.  Thanks.

Mark
Avatar of mcsten

ASKER

OK.  I did everything.  Ignored the register keys I don't have.  renamed the Mapi folder (actually I still wasn't able to rename it after reboot, I had to create a new folder called "old mapi" and put that one in the new folder).

So then I rebooted again and installed MS office again... and I still have the same problem with Outlook.  Except this time I get this pop up warning message before Outlook fully opens that says:

"The add-in "C:\Program Files\Microsoft Office\Office\SBCMSYNC.DLL" could not be installed or loaded.  This problem may be resolved by using Detect and Repair on the Help menu.  Unable to load "C:\Program Files\Microsoft Office\Office...".  You may be out of memory, out of system resources, or missing a .dll file.

So I did a Detect and repair and this message still pops up every time I open outlook in addition to the original problem.  Should I give up?  You all seems to be extremely professionally and proficient in this so I really don't think it'll work even if I send it to get my computer looked at and repair.

This is such a nightmare.  

Oh by the, for some reason, after I deleted and rebooted and installed MS office again, I got bombarded with a bunch of ad/spyware which I have been using Ad-aware, CWshredder, and Spybot- search and destroy.  But they don't seem to work very well these days even with the frequent updates.
Hi mcsten, I'm sorry this is becoming such a nightmare for you.  Don't give up yet.  Addin errors are easy to fix.  Try this:

Go into the registry (like before) and export and delete the following registry keys if they are there:   (Note:  we always export registry keys before deleting just for backup purposes in case an unexpected result occurs)

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\SBCM.Addin.1
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\EXCHANGE\Client\Extensions

Also, do a search for a file called extend.dat.  When you find that file, rename it to something like extend.old

To do this, go to start, search, for files and folders.

Where it says "Look in:" choose the C: drive.  Where it says "Search for files or folders named:" type in:   extend.dat

Before clicking "Search Now", at the top of the search page, click Tools, Folder Options.  Click on the View tab, make sure the dot is in "Show hidden files and folders" and that there is NOT a checkmark in "Hide file extensions for known file types".  Ok out of that and now you can click "Search Now".

It may find more than one instance of this file.  Just rename each to extend.old

To do this, right click on the filename (extend.dat) and then click rename.  Type in:   extend.old

do this for each one that it finds.

Once this is all done, try opening outlook and let us know what happens.  Thanks mcsten.

Mark
Avatar of mcsten

ASKER

Thanks Mark.  I'm away from my laptop this time for 3 days.  I will try your above suggestion and get back to you.

Thanks.
mcsten,

I was wondering if you were able to remove the add-in going to its location as I had mentioned in my earlier comments.

SR
Avatar of mcsten

ASKER

SR.  I don't have my computer now, but I remember that I only had 1 add-in in my COM add-in which I had done what you've told me to.  It didn't work.

I basically followed all your steps except for checking for Virus (however, I really feel this could be a virus problem).  
Avatar of mcsten

ASKER

mark,

I don't have the:
HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\SBCM.Addin.1

but was able to export and delete the:
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\EXCHANGE\Client\Extensions

Then I renamed the extend.dat to extend.old.  Now I don't have the pop up error message about missing the .dll file anymore.  Thank you.

However the runtime error message is still here.

SR:  by the way, i meant I don't think it's a virus thing problem.  sorry about the typo.

Thanks for all your help.
Hi mcsten, can you try this:

Have Outlook closed.  Go to Start, Run, and type:   outlook /cleanreminders

Let me know if Outlook opens or if you get the error message.

Also, normally, do you get this Visual C++ error right away before Outlook fully opens?  Or does Outlook fully open and then you get this error?  Thanks.

Mark
ASKER CERTIFIED SOLUTION
Avatar of mark-wa
mark-wa

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcsten

ASKER

I'll try these.  I get the runtime error message only after try to open an email (new or old) or when I try to compose, reply, or forward an email.
Avatar of mcsten

ASKER

okay, I just did.  same as before.  I can open outlook fine and am able to download messages and read them from the preview pane.  I just can't do anything to send out an email.

Thanks.
Avatar of mcsten

ASKER

Thanks for all your help.  I guess it's going to be problem that I'll have to live with until I buy my next computer.

thanks.
I'll bump this one because the problem occurs with OL2002 as well. I have several users who have ran into this problem with no resolution found, at least so far. The best It would be nice if it could throw an error into the event log or something, but to crash without so much as a dumplog to view its nearly impossible to troubleshoot. In my case, I get the C++ error only when closing outlook and only on occaision. I have yet to find a common thread that causes the issue.