?
Solved

The type or namespace name 'Exchange' does not exist in the namespace 'Microsoft'

Posted on 2011-03-07
4
Medium Priority
?
711 Views
Last Modified: 2013-12-17
This is my code, please take a look at the screen shoot attached. I added a reference to the Exchange Web Services also. Why do I get this error all the time?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Exchange.WebServices.Data;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}

3-7-2011-11-35-05-AM.png
0
Comment
Question by:joein610
[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
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
OriNetworks earned 1500 total points
ID: 35058883
The development computer does not have any reference to the Microsoft.Exchange namespace. You may be able to find the ddl file on an exchange computer and copy them to your project so they can be referenced. Most likely you should be able to  google the SDK for your version of Exchange which should have the files you need.

Exchange 2010 - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=155AB218-3CD5-439F-9CE3-5E6983AB6B79
0
 

Author Comment

by:joein610
ID: 35059891
What file are we looking for? Is it Microsoft.Exchange.WebServices.dll ?
0
 
LVL 17

Expert Comment

by:OriNetworks
ID: 35063680
Yes
0
 

Author Comment

by:joein610
ID: 35069276
I've already attached this file. The steps are:

1. I attach the dll file as a reference.
2. I add "using Microsoft.Exchange.WebServices.Data;"
3. I try to Debug the Project and I get an error.

Screen shots attached
3-8-2011-8-58-55-AM.png
3-8-2011-8-59-45-AM.png
0

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

762 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