When compiling an error will occur that a name space does
not exist. An example error like the message below:
The type or namespace name
'Microsoft.Office.Interop.Outlook' does not exist in
the namespace
'Microsoft' (are you missing an
assembly reference?)
The system is trying to find a reference for a specific
namespace or dll.
One solution for this is to add the reference to the missing
namespace.
Find the “solution explorer” window like the image below:
After opening the “solution explorer” window, right click
the name of the project just below the solution explorer. Beside the C# icon.
A new window will open like the image below.
Click “Add”, then click “Reference”.
After clicking “Reference”, the “Reference Manager” window
will open.
Click “COM” option, then use the filter option to go directly
to the desired namespace or reference.
Since the error is a Microsoft namespace, type “Microsoft” and
“Microsoft” namespace will be filtered from the list. See image below:
Select the desired namespace based on the compiled error.
For example if the error was “Microsoft.Office.Interop.Outlook” then try adding
Microsoft Office Library or Microsoft Outlook Reference object.
Visual Studio will auto detect if the desired namespace or
reference has been added since the error won’t show up anymore.
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment