G
gulzar_nazim
Hi All,
I am getting FileNotFoundException while trying to create an instance
of Outlook::ApplicationClass().
This was done in VC++.Net. This happens only in some of the user's
systems. They had 2003 PIAs installed on their machines from Office
2003 cd. We are also not redistributing the 2003 PIAs as suggested by
Micorsoft.
Environment - Windows XP Pro, Office 2003, Outlook 2003 PIAs
Code -
using namespace Microsoft::Office::Interop;
private: Outlook::ApplicationClass __gc *oApp;
private: System::Void InitializeOutlook()
{
oApp = new Outlook::ApplicationClass();
oNS = oApp->Application->GetNamespace("mapi");
oNS->Logon(Missing::Value, Missing::Value, __box(true), __box(true));
}
This is the truncated stack trace of the exception.
************** Exception Text **************
System.IO.FileNotFoundException: The specified module could not be
found.
at SCToolbar.OptionsDlg.InitializeOutlook()
at SCToolbar.OptionsDlg.LoadData()
at SCToolbar.OptionsDlg..ctor(ToolbarOptions tbarOptions)
at SCToolbar.SCToolbarControl.DisplayOptions()
at SCToolbar.SCToolbarControl.optionsButton_Click(Object sender,
EventArgs e)
************** Loaded Assemblies **************
----------------------------------------
Microsoft.Office.Interop.Outlook
Assembly Version: 11.0.0.0
Win32 Version: 11.0.5530
CodeBase:
file:///c:/windows/assembly/gac/microsoft.office.interop.outlook/11.0.0.0__71e9bce111e9429c/microsoft.office.interop.outlook.dll
As you can see, in the list of loaded assemblies, you can see
Microsoft.Office.Interop.Outlook assembly from GAC. I have no clue
which file is actually missing here.
Please help me.
Regards,
Gulzar
I am getting FileNotFoundException while trying to create an instance
of Outlook::ApplicationClass().
This was done in VC++.Net. This happens only in some of the user's
systems. They had 2003 PIAs installed on their machines from Office
2003 cd. We are also not redistributing the 2003 PIAs as suggested by
Micorsoft.
Environment - Windows XP Pro, Office 2003, Outlook 2003 PIAs
Code -
using namespace Microsoft::Office::Interop;
private: Outlook::ApplicationClass __gc *oApp;
private: System::Void InitializeOutlook()
{
oApp = new Outlook::ApplicationClass();
oNS = oApp->Application->GetNamespace("mapi");
oNS->Logon(Missing::Value, Missing::Value, __box(true), __box(true));
}
This is the truncated stack trace of the exception.
************** Exception Text **************
System.IO.FileNotFoundException: The specified module could not be
found.
at SCToolbar.OptionsDlg.InitializeOutlook()
at SCToolbar.OptionsDlg.LoadData()
at SCToolbar.OptionsDlg..ctor(ToolbarOptions tbarOptions)
at SCToolbar.SCToolbarControl.DisplayOptions()
at SCToolbar.SCToolbarControl.optionsButton_Click(Object sender,
EventArgs e)
************** Loaded Assemblies **************
----------------------------------------
Microsoft.Office.Interop.Outlook
Assembly Version: 11.0.0.0
Win32 Version: 11.0.5530
CodeBase:
file:///c:/windows/assembly/gac/microsoft.office.interop.outlook/11.0.0.0__71e9bce111e9429c/microsoft.office.interop.outlook.dll
As you can see, in the list of loaded assemblies, you can see
Microsoft.Office.Interop.Outlook assembly from GAC. I have no clue
which file is actually missing here.
Please help me.
Regards,
Gulzar