Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 47201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:05:07+00:00 2026-05-10T16:05:07+00:00

I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on

  • 0

I am trying to make an Outlook 2003 add-in using Visual Studio 2008 on Windows XP SP3 and Internet Explorer 7.

My add-in is using custom Folder Home Page which displays my custom form, which wraps Outlook View Control.

I get COM Exception with ‘Exception from HRESULT: 0xXXXXXXXX’ description every time when I try to set Folder property of the OVC. Error code is a random number, every time is different. It is not the first access to control’s properties, before that, View and ViewXML properties are set already. Control is marked as Safe for Scripting.

I am using value of the CurrentFolder.FolderPath property of the active explorer, which seems to be a right one:

Outlook.Explorer currentExplorer = app.ActiveExplorer();         if (currentExplorer != null)         {             ovcWrapper.Folder = currentExplorer.CurrentFolder.FolderPath;         } 

This is top of the stack trace:

System.Runtime.InteropServices.COMException (0xXXXXXXXX): Exception from HRESULT: 0xXXXXXXXX at Microsoft.Office.Interop.OutlookViewCtl.ViewCtlClass.set_Folder(String pVal) at AxMicrosoft.Office.Interop.OutlookViewCtl.AxViewCtl.set_Folder(String value).. 

This is happening only if the folder is located in non-default PST file. Changing to folder inside default PST file will produce no exception.

I must underline that everything worked just fine before I went to holiday :). It seems that Windows XP installed some updates which changed default security of Internet Explorer or Outlook 2003 while I was absent.

On the other (virtual machine) with Office 2007 and Internet Explorer 6, without any updates, everything is working just fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:05:08+00:00Added an answer on May 10, 2026 at 4:05 pm

    After a while, I finally find out what is the solution: change a name of the external storage to something new.

    During startup of the addin, it loads the non-default PST file, and changes its name (not the name of the pst file, but the name of the root folder) to ‘Documents’.

    This is code:

    session.AddStore('C:\\test.pst'); // loads existing or creates a new one, if there is none. storage = session.Folders.GetLast(); // grabs root folder of the new fileStorage.  if (storage.Name != storageName) // if fileStorage is brand new, it has default name. {       storage.Name = 'Documents';       session.RemoveStore(storage); // to apply new fileStorage name, it have to be removed and added again.       session.AddStore(storagePath);  } 

    Solution is not to use ‘Documents’ as a name any more, but something new. Problem is not related to specific name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send a Rich Text Format email message using Outlook 2003.
Trying to make a make generic select control that I can dynamically add elements
I am trying to make a macro in Outlook that will scan the To:
I am trying to make a notification window like Outlook uses when you receive
I'm trying to write an Outlook 2007 VSTO add-in that lets you do some
I'm trying make a <dl> to define the icons I am using on the
Trying to make a MySQL-based application support MS SQL, I ran into the following
Trying to make a generic PL/SQL procedure to export data in specific XML format,
Trying to make a web service call to an HTTPS endpoint in my Silverlight
I'm trying to make the case for click-once and smart client development but my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.