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
9,981 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
  • 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 62

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
 
LVL 62

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 62

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 62

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 62

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 62

Expert Comment

by:Fernando Soto
ID: 18095521
Thanks?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now