Where to install PrimaryInteropAssembly.exe

S

Sheldon

Hello -

My developer box has Office 2007 on it. I created an application and one of
the things it does is automatically send an email to a mailbox (using MS
Outlook) when it saves a record.

I had thought all of the user computers had been updated to Office 2007,
however, they are still using Office 2003. I am getting the following error
message:
.. . ."the application requires that assembly office Version 12.0.0.0 be
installed in the Global Assembly Cache..."

I downloaded the PrimaryInteropAssembly.exe and started to install it on a
test computer whereupon the option was given to select a folder to install it
in. What folder should I install it in?

The user machines are running XP and Office 2003.

Any help will be greatly appreciated!
 
N

Norman Yuan

The primary interop assemly is just a net wrapper used to expose MS Office
COM-based object model to .NET program. It can only be useful with
corresponding MS Office application installation. In your case, you must
have corrsponding MS Office 2007 application(s) installed. Or the primary
interop assemly is useless.

Since your app is only to send email, you may consider to use
System.Net.Mail namespace to send email from an available SMTP (if the users
are on a corporate network), thus by-pass the difficulty of automating
Outlook.
 
S

Sheldon

Thanks for your response, Norman!

Can you point me in the direction or give me an example of how to do it with
SMTP? I've tried a few things from the Internet, but cannot seem to get them
to work!
 

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

Top