Solved

Problems with OWC11 interop publishing to development server

Posted on 2006-01-10
9
2,207 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…

751 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