473,320 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

primary interop assembly conflict?

Hi,
I'm writing a C# web app that uses Outlook to send email. I use a reference
to the Microsoft Outlook 11.0 Object Library, but it's giving me problems. I
tracked down some stuff on the Net about the global assembly cache (GAC) and
primary interop assemblies (PIA) and so forth, and did all the
recommendations, in terms of tweeking Office, installing the .NET Office
stuff for framework 1.1, etc. I got it to the point where it compiles ok, but
during run-time, when I try to instantiate an Outlook.Application it errors
out with “File or assembly name Microsoft.Office.Interop.Outlook, or one of
its dependencies, was not found.” What it seems like is going on is that the
PIA can be found during compile time, but not during runtime. Is there a way
or a switch to throw that would let runtime know to look in the GAC? I think
it might be a Registry thing. Here are the LOG entries that display for the
runtime error:

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Outlook, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c
(Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/ittest
LOG: Initial PrivatePath = bin
Calling assembly : ittest, Version=1.0.1899.30078, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: Microsoft.Office.Interop.Outlook,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Office.Interop.Outlook.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Office.Interop.Outlook.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Office.Interop.Outlook.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Office.Interop.Outlook.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Office.Interop.Outlook/Microsoft.Office.Interop.Outlook.EXE.

===
Any info or advice would be greatly appreciated.
-Nick

Jul 21 '05 #1
0 2233

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Chango V. | last post by:
Hello, We seem to need a PIA for MSXML 4. According to the documentation, only the original publisher of a COM type library is supposed to create a .NET PIA. As far as I know, Microsoft hasn't...
0
by: kunallalwani | last post by:
Hi friends, I had a functional requirement of my project to get the text content of any Microsoft Office (xp) related file and show it to the user. I downloaded the Office Xp Primary Interop...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
1
by: Shiro | last post by:
Hi I have read the various postings relating to Interop strong name signing and cannot find an example similar to mine. I have stringly named my AxInterops/Interops and they all work just...
2
by: Bern McCarty | last post by:
I have a mixed DLL that "extends" an existing application and works just fine. It makes significant use of IJW to interact with the native interfaces of the application that it is extending. I...
8
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
0
by: keefah | last post by:
Hi, I'm writing a C# web app that uses Outlook to send email. I use a reference to the Microsoft Outlook 11.0 Object Library, but it's giving me problems. I tracked down some stuff on the Net...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
0
by: Luft | last post by:
I'm just starting to work with VSTO and Word 2007 but I've run into a problem when trying to create an add-in. I get the warning: This project references the primary interop assembly for Microsoft...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.