Rony SP
Rony SP

Reputation: 2628

Silverlight project will only work with Silverlight assemblies

Now a days, I make one application in Silverlight to get Emails from MS Exchange Server online. So first i create Silverlight Application in Visual Studio 2010. Now Issue is that when i add reference Microsoft.Exchange.Webservice.dll to silverlight application so error shown below: "You cant add a reference to Microsoft.Exchange.Webservice.dll as it was not built against the Silverlight runtime. Silverlight project will only work with Silverlight assemblies". I have searched error but failed to solve this issue.. please help me..

Upvotes: 1

Views: 743

Answers (1)

slugster
slugster

Reputation: 49974

Silverlight uses a different runtime and a subset of the regular .Net framework, which is why you can only reference other SIlverlight libraries.

I would also think you shouldn't be referencing the Microsoft.Exchange.Webservice.dll directly anyway, rather you should be adding a web service reference to a web service exposed by an existing installation of Exchange, and then using webservice calls to retrieve the emails.

Edit:

This excellent previous StackOverflow should be enough to get you underway: Getting started with Exchange Web Services 2010

Upvotes: 1

Related Questions