?
Solved

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

Posted on 2011-03-07
4
Medium Priority
?
712 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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 …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

650 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