Solved

Problems with OWC11 interop publishing to development server

Posted on 2006-01-10
9
2,168 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
  • 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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