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..
Asked
Active
Viewed 731 times
1 Answers
1
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
-
+1 Was just about to post the same answer. Ravi, silverlight isn't designed to solve this kind of problem. FYI: When microsoft think it is something silverlight should do, then they provide a silverlight version of the assembly. – perfectionist Feb 24 '12 at 10:44
-
hi slugster, thanx for reply.. But i have using online exchange server so How i can use its webservice? – Rony SP Feb 24 '12 at 11:04
-
@Ravi, check my edit, it is an excellent answer which has also been expanded with helpful references by the question asker. – slugster Feb 24 '12 at 11:23
-
hi slugster, I have been already used this is for Sharepoint application but in sharepoint i reference dll and use class name like "ExchangeService" for getting Emails.. But using webservice i cant found any code for getting inbox mails.. – Rony SP Feb 24 '12 at 11:28