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

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.

yankeebushsoftwareAsked:
Who is Participating?
 
NightmanCTOCommented:
Interop is part of the system namespace.

using System.Runtime.InteropServices;
0
 
Fernando SotoRetiredCommented:
Try adding this to the top of your code file.

using System.Runtime.InteropServices;
0
 
yankeebushsoftwareAuthor Commented:
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
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.

 
Fernando SotoRetiredCommented:
yankeebushsoftware , What does your last post mean?
0
 
yankeebushsoftwareAuthor Commented:
what are the example attributes and values you are expecting to receive and from which project.
0
 
Fernando SotoRetiredCommented:
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
 
yankeebushsoftwareAuthor Commented:
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
 
yankeebushsoftwareAuthor Commented:
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
 
Fernando SotoRetiredCommented:
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
 
yankeebushsoftwareAuthor Commented:
no...I get all these errors, I was giving you the output
0
 
Fernando SotoRetiredCommented:
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
 
Fernando SotoRetiredCommented:
Thanks?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.