Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)

Posted on 2006-11-27
12
Medium Priority
?
10,276 Views
Last Modified: 2013-11-19
How do I fix this error? The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)

I already added a reference from the Project Menu and selected the COM tab of the Add Reference window and double clicked the type library for Microsoft Office. But I still get this error.

0
Comment
Question by:yankeebushsoftware
[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
  • 5
12 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 2000 total points
ID: 18023412
Interop is part of the system namespace.

using System.Runtime.InteropServices;
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 18023425
Try adding this to the top of your code file.

using System.Runtime.InteropServices;
0
 

Author Comment

by:yankeebushsoftware
ID: 18029692
login to silkcentral
get project list
pull out information for project Demo Project
Requirements
Get top level requirements
Get requirement property ids
Get property Risk for requirement General Requirements
Get property Priority for requirement General Requirements
Get property Reviewed for requirement General Requirements
Get property Obsolete for requirement General Requirements
Get property 22 for requirement General Requirements
com.segue.tm.published.webservice.requirements.RMServiceException: java.lang.NullPointerException
0
Technology Partners: 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 64

Expert Comment

by:Fernando Soto
ID: 18030210
yankeebushsoftware , What does your last post mean?
0
 

Author Comment

by:yankeebushsoftware
ID: 18040136
what are the example attributes and values you are expecting to receive and from which project.
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 18040419
Your Question: "How do I fix this error? The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)"

The answer, Place the following statement at the top of the source code file.

using System.Runtime.InteropServices;

I do not know what the following has to do with that, from your last post.??

login to silkcentral
get project list
pull out information for project Demo Project
Requirements
Get top level requirements
Get requirement property ids
Get property Risk for requirement General Requirements
Get property Priority for requirement General Requirements
Get property Reviewed for requirement General Requirements
Get property Obsolete for requirement General Requirements
Get property 22 for requirement General Requirements
com.segue.tm.published.webservice.requirements.RMServiceException: java.lang.NullPointerException

Fernando
0
 

Author Comment

by:yankeebushsoftware
ID: 18040701
what are the example attributes and values you are expecting to receive and from which project.

Done! The case number is 651343. I'll contact you when they start asking for data/input!
0
 

Author Comment

by:yankeebushsoftware
ID: 18053698
We can't pull out content under tabs 'Activities', 'Issues', 'Reports', and also some content under tabs 'Requirements', 'Test Plan', 'Execution'. I found silk didn't provide comprehensive webservice interfaces
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 18054194
yankeebushsoftware;

I have no idea what your last couple of post has to do with the question in this thread.

Has adding the statement, using System.Runtime.InteropServices; to the top of the code file resolve the issue you were having with, "The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)"

Fernando
0
 

Author Comment

by:yankeebushsoftware
ID: 18054224
no...I get all these errors, I was giving you the output
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 18054362
OK, but did adding this statement

using System.Runtime.InteropServices

At the top of the code remove the error:

The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?)".

Also you will have to add a reference to the dll for the product you are trying to use such as the following.

Microsoft.Office.Tools.Excel
Microsoft.Office.Tools.Outlook
Microsoft.Office.Tools.Word

Fernando
0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 18095521
Thanks?
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

670 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