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
10,081 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 500 total points
ID: 18023412
Interop is part of the system namespace.

using System.Runtime.InteropServices;
0
 
LVL 63

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 63

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 63

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 63

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 63

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 63

Expert Comment

by:Fernando Soto
ID: 18095521
Thanks?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where is this file? 3 33
asp web application 3 39
Why use this lambda? 12 62
C# Windows app updating JSON file error. 9 39
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…

749 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