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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 93k
  • Answers 93k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Quoting the man page for gcc: -M Instead of outputting… May 11, 2026 at 6:41 pm
  • Editorial Team
    Editorial Team added an answer The first error, "not all code paths return a value"… May 11, 2026 at 6:41 pm
  • Editorial Team
    Editorial Team added an answer You could just give the same callback to both your… May 11, 2026 at 6:41 pm

Related Questions

I am trying to make an installer for a project I did not write,
I am trying to make an application in which one component captures the screen
I am using NHibernate as my ORM solution and have a need for a
I am calling my makewindows function from a PHP file like so: echo <a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.