Late binding

  • Thread starter Thread starter Max
  • Start date Start date
M

Max

Hello,

I'm using late binding to make my app compatible with multiple versions
of Microsoft Outlook.
It works fine on the development machine but when I try to run it on another
machine I get an
error saying that "The specified module could not be found" and it mentions
mscorlib

I read somewhere that I could load Mscorlib.dll without a path but I'm not
sure how to do that.
Another way is to use the unmanaged metadata API to get the desired info but
I have no experience
with that either. Can anyone help?

Thanks.
 
It works fine on the development machine but when I try to run it on
another machine I get an
error saying that "The specified module could not be found" and it
mentions mscorlib

Does the other machine have the proper version of the framework installed?
 
Yes. Both machines have the .NET Framework v1.1.4322 and both are running on
Windows XP with Microsoft Outlook 2003 installed.

The error comes up on line 3 of the following section of code when I try to
open the existing version of Microsoft Outlook on the machine:

Type objClassType;
objClassType = Type.GetTypeFromProgID("Outlook.Application");
objApp_Late = Activator.CreateInstance(objClassType); // error here

Now I should also mention that I just tested the code on a third machine
with Microsoft Outlook XP and it worked fine.... I got a COMException
on a fourth machine with Microsoft Outlook 97 but that's a different
story....

Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top