Solved

Problems with OWC11 interop publishing to development server

Posted on 2006-01-10
9
2,150 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASCX file or a newer alternative? 1 35
Regex validation 2 25
performance issue in asp web 5 32
Error handling in asp.net site 5 28
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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