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

Miguel de Icaza miguel at novell.com
Tue Oct 13 00:46:28 EDT 2009


Hello,

     Where did you get the System.DirectoryServices assembly?   This  
is not an assembly that has been compiled with the MonoTouch mscorlib  
profile, so it will not work.

Miguel.

On Oct 12, 2009, at 1:47 AM, bala sista wrote:

>
> 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]
> ..…..……...
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20091013/125c729d/attachment.html 


More information about the MonoTouch mailing list