473,785 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Applica tion it errors
out with “File or assembly name Microsoft.Offic e.Interop.Outlo ok, 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.Offic e.Interop.Outlo ok, Version=11.0.0. 0,
Culture=neutral , PublicKeyToken= 71e9bce111e9429 c
(Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/ittest
LOG: Initial PrivatePath = bin
Calling assembly : ittest, Version=1.0.189 9.30078, Culture=neutral ,
PublicKeyToken= null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet.config) .
LOG: Using machine configuration file from
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config\machine. config.
LOG: Post-policy reference: Microsoft.Offic e.Interop.Outlo ok,
Version=11.0.0. 0, Culture=neutral , PublicKeyToken= 71e9bce111e9429 c
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Offic e.Interop.Outlo ok.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Offic e.Interop.Outlo ok/Microsoft.Offic e.Interop.Outlo ok.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Offic e.Interop.Outlo ok.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Offic e.Interop.Outlo ok/Microsoft.Offic e.Interop.Outlo ok.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Offic e.Interop.Outlo ok.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/ittest/d6e8f147/fd2b53a7/Microsoft.Offic e.Interop.Outlo ok/Microsoft.Offic e.Interop.Outlo ok.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Offic e.Interop.Outlo ok.EXE.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/ittest/bin/Microsoft.Offic e.Interop.Outlo ok/Microsoft.Offic e.Interop.Outlo ok.EXE.

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

Jul 21 '05 #1
0 2289

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

Similar topics

8
10040
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 done that yet. Our problem is that we very much want to create a PIA for a COM component of ours, but TlbImp.exe /primary insists that all referenced dependencies be PIAs as well. Our component has a type library reference to MSXML 4, hence the...
0
1314
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 Assemblies from the microsoft site. I use Microsoft Visual Studio.NET 2003 for development including ..NET Framework 1.1. The application runs perfectly at the developers end. Now i need to deploy this application at the customer's box,so i made a...
20
3199
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: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp). I set my project properties as 'Register as COM interop' to true, I can install it my project on my developement machine without a flaw. Great.
1
2298
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 fine, but problems occur when I need to reference a thirdparty's component. In my case I am talking about Interop.ShDocVw and AxInterop.ShDocVw. If
2
1875
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 would like to show that such application extensions can have parts authored in other .NET languages like C#. So I set about rearranging my sample extension to become a multimodule assembly where one ..netmodule was authored in C# and another in...
8
3425
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 added. Converting the type library to a .Net assembly failed. A depended type library 'CDO' could not be converted to a .NET assembly. A dependent type library 'ADODB' could not be converted to a .NET assembly. Item has already been added." ...
0
490
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 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,...
7
10964
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 this screen below. Please help, thanks in advance... Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...
0
2089
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 Office Word 2007, but this primary interop assembly is not installed. I have installed the interop assembly by running: PrimaryInteropAssembly.exe I also set a project reference to the Microsoft Word 12.0 Object Library but I still get this...
0
9485
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.