Solved

Problems with OWC11 interop publishing to development server

Posted on 2006-01-10
9
2,248 Views
Last Modified: 2008-08-20
Good morning,

On my local development machine, I added a reference to OWC11 and .NET automatically created the Interop stuff.  I compiled and pushed all of the code to my development server for testing using xcopy like I normally do.

Before I did that I installed the OWC11 Web Components I just downloaded from Microsoft.

When I try to run the page, though, I get the following error:

File or assembly name Microsoft.Office.Interop.Owc11, or one of its dependencies, was not found.

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Owc11, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
 (Fully-specified)
LOG: Appbase = file:///E:/inetpub/test/Web
LOG: Initial PrivatePath = bin
Calling assembly : test, Version=1.0.2201.19480, 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\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Office.Interop.Owc11, 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/root/efbcf085/16840ac9/Microsoft.Office.Interop.Owc11.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/efbcf085/16840ac9/Microsoft.Office.Interop.Owc11/Microsoft.Office.Interop.Owc11.DLL.
LOG: Attempting download of new URL file:///E:/inetpub/test/Web/bin/Microsoft.Office.Interop.Owc11.DLL.
LOG: Attempting download of new URL file:///E:/inetpub/test/Web/bin/Microsoft.Office.Interop.Owc11/Microsoft.Office.Interop.Owc11.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/efbcf085/16840ac9/Microsoft.Office.Interop.Owc11.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/efbcf085/16840ac9/Microsoft.Office.Interop.Owc11/Microsoft.Office.Interop.Owc11.EXE.
LOG: Attempting download of new URL file:///E:/inetpub/test/Web/bin/Microsoft.Office.Interop.Owc11.EXE.
LOG: Attempting download of new URL file:///E:/inetpub/test/Web/bin/Microsoft.Office.Interop.Owc11/Microsoft.Office.Interop.Owc11.EXE.

 

Stack Trace:


[FileNotFoundException: File or assembly name Microsoft.Office.Interop.Owc11, or one of its dependencies, was not found.]
   test.Emt.charting.prospect.drillQueuePieWorkingInv.Page_Load(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +750

 
0
Comment
Question by:dentyne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 3

Expert Comment

by:jphillips247
ID: 15664063
On your local machine see if the reference is made to the GAC or c:\windows\assemblies if it is ensure that the interop is in the GAC of your test machine if it is not there review your installation and check this link out.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrtskinstallingofficeprimaryinteropassemblies.asp

And go here to locate the download for the Primary Interops installation:
http://www.microsoft.com/downloads/details.aspx?FamilyID=3c9a983a-ac14-4125-8ba0-d36d67e0f4ad&DisplayLang=en

Thanks.
0
 
LVL 1

Author Comment

by:dentyne
ID: 15664115
Thanks for the response.  Can you help me in determining if the reference is to the GAC or C:\windows\assemblies please?  This GAC and interop stuff is new territory for me.

Thanks for the help.  This problem has really shut down a critical piece of functionality.
0
 
LVL 3

Expert Comment

by:jphillips247
ID: 15665367
Are you working with Visual Studio?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:dentyne
ID: 15665857
Visual Studio .NET.  In ASP.NET. I went to "References" and then chose Microsoft Office Web Components 11.  I guess that somehow created some interop, because I use:

using Microsoft.Office.Interop.Owc11;

It works locally, but when I xcopy to the development server it does not.

0
 
LVL 1

Author Comment

by:dentyne
ID: 15665919
I also looked at the links you sent.  I am using Office Web Components but I didn't see anything in the article about them.  Would the office web be included in the office PIAs?  I am also conceptually lost as to what these are.  Thanks again.
0
 
LVL 1

Author Comment

by:dentyne
ID: 15665950
I also see that Microsoft.Office.Interop.Owc11 exists in C:\Windows\Assembly, but it does not on the server.  Can I just cut and paste this in there?  
0
 
LVL 1

Author Comment

by:dentyne
ID: 15666202
I downloaded the Office Interop PIAs but the setup won't run because it tells me that I need to install Office 2003 first.  I am not interested in the whole Microsoft Office Installation...just the Office Web Components. Is it possible to just transfer my interop from my GAC to the server's GAC?
0
 
LVL 3

Accepted Solution

by:
jphillips247 earned 500 total points
ID: 15666547
Yes, you can do this by using start->run type c:\windows\assembly\gac  do not try to browse to it you cannot get there. hit Enter.
Next copy the folder called  Microsoft.Office.Interop.Owc11 to a location that you can reach from the server.  Log on to the server and then use the start->Run type c:\windows\assembly\gac once there copy the folder into it.  This should fix the problem.
0
 
LVL 1

Author Comment

by:dentyne
ID: 15670562
Hi JPhillips,

Thank you so much for your courage, effort, and dedication in answering my question.   I have gotten the charting to work on my development and production servers.  You have solved my issue and the awarding of 500 points certainly doesn't convey my appreciation for this enough.


 
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question