[MonoTouch] Help with the following error while using Micorosft.Exchange.WebServices

bala sista balaiapps at gmail.com
Mon Oct 12 01:47:01 EDT 2009


Hi All,

I am trying to use Microsoft.Exchange.WebServices to access the  
Exchange server. I am getting the following errors. Please help.



Thanks,

Bala

Snippet of the code is

ExchangeService service = new ExchangeService 
(ExchangeVersion.Exchange2007_SP1);

            //service.Credentials = new NetworkCredential( "{Active  
Directory ID}", "{Password}", "{Domain Name}" );
            ItemView myView = new ItemView(30);
	  service.AutodiscoverUrl("someone at yourcompany.com",  
ValidateRedirectionUrlCallback);
            FindItemsResults<Item> findResults = service.FindItems 
(  WellKnownFolderName.Inbox,   myView);

            foreach (Item ReturnItem in findResults.Items)
            {
                Console.WriteLine(ReturnItem.Subject);
            }
               Console.WriteLine("Press any key to continue...")





Error Message


mtouch failed with following message:
Error:while loading assemblies:System.IO.FileNotFoundException: Could  
not  
resolve:System.DirectoryServices 
,Version=2.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a
at Mono.Cecil.BaseAssemblyResolver.Resolve 
(Mono.Cecil.AssemblyNameReference name)[0x00000]
..…..……...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20091011/98b32669/attachment.html 


More information about the MonoTouch mailing list