Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Adding Reference to Microsoft.Exchange.WebServices.Data

$
0
0

I attempted to start a new project in Visual Studio 2010 and didn't get any farther than adding the reference to Microsoft.Exchange.WebServices.Data. The goal is to read email messages from Exchange 2007. I downloaded the "Exchange Web Services Managed API" from http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 and added a reference to Microsoft.Exchange.WebServices.dll.

I tried to compile the project and received the error below. What am I missing here?

warning BC40056: Namespace or type specified in the Imports 'Microsoft.Exchange.WebServices.Data' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3253: The referenced assembly "Microsoft.Exchange.WebServices" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

Imports System.Web
Imports Microsoft.Exchange.WebServices.Data

Public Class Form1

 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

 End Sub

End Class


Mike

Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>