Error Integrating EWS 2.2 with Windows Phone 8.1 App

Hi,
I am new to Windows Phone development. I have a basic need to access the Exchange Calendar.
I am using Windows Phone 8.1 SDK and Exchange Web Service 2.2 SDK.
As a first step I tried to use the
Microsoft.Exchange.WebServices.Autodiscover
dll to find the end points of the Exchange Server.
However on the first code statement
Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService
service = new
AutodiscoverService();
It throws an exception –
An exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.Exchange.WebServices.DLL but was not handled in user code
'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll
I further tried some debugging and using Code Analyser I get following warnings –
Microsoft.Exchange.WebServices.dll: warning CS1684: Reference to type 'System.Net.IPAddress' claims it is defined in 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1\System.dll',
but it could not be found.
And
C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.Auth.dll: warning MSB3817: The assembly "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.Auth.dll"
does not have a NeutralResourcesLanguageAttribute on it. To be used in an app package, portable libraries must define a NeutralResourcesLanguageAttribute on their main assembly (ie, the one containing code, not a satellite assembly).
I am not sure what the issue is, but when I try the same code it works in a Command Application. There are other errors but not the above ones. It at least executes few statements.
Can someone please help resolve this error and point me to links where I can find sample code with Windows Phone 8.1 implementation?
Thanks in Advance
Nasir

The EWS SDK 2.2 is a regular Desktop .Net DLL and therefore won't work in a WinRT App (CoreCLR). You should however be able to call the WebService directly.

Similar Messages

  • How to know whether my Windows Phone 8.1 App is Associated with the store or not?

    How to know whether my Windows Phone 8.1 App is Associated with the store or not? 
    I have an Windows Phone 8 app already in the store , Now i upgraded it to 8.1 it got upgraded to Windows Phone Silverlight 8.1.
    Now iam trying to use Single Sign on feature on this app but it is showing the error message like
    the App is not Configured correctly i followed the process from  Signing users in to OneDrive
    please guide me how to do this?
    Mohan Rajesh Komatlapalli

    You should post to publish forum.

  • Cannot update software with Windows Phone 7 Connector.

    I cannot get Windows Phone 7 Connector to download software updates for my HTC Trophy. I unlocked the phone and took it to Europe last year, I returned to the US in January 2012 and the phone has been working fine, but I have not been receiving any software updates. Today I tried to download some apps and discovered that I've missed some updates and I cannot download anything through Marketplace until I fix it. When I try to update the software, I get an error message that tells me that Windows Phone 7 Connector cannot download the updates. I think the problem may have to do with the APN, but other users who have mentioned similar issues after reconnecting an unlocked phone have lost all data connection.

    j-martinez1992 wrote:
    yes they said to ask on here??
    Well, they were wrong.  Your issue is with Microsoft products, not Apple.  Therefore questions should be presented on their forums.

  • I get an error message when installing itunes with windows 8, error message is error occured while attempting to create the directory C:\program file(x86)\common files\apple\mobile device support\sync services\schemas\outlook.syncschema

    I keep getting an error message when installing iTunes with windows 8

    See the second box in Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Lumia 920 does not sync with Windows Phone for Mac

    I cannot sync any item between my Lumia 920 and with Mac.
    Many users indicated that the problem encountered when syncing the Lumia 920 with Windows Phone for Mac is resolved by using the option "Allow access to folder" to the iTunes library. However, I have tried several times with many folders but cannot sync anything between my phone and my Mac.
    I also modified the security options of my Mac by allowing the Windows Phone app to access my computer but with not success.
    Any suggestions?
    Thanks
    Solved!
    Go to Solution.

    Hi mate,
    As of yet, this appears to be an unresolved issue, but as this is a user to user forum only for Nokia products and services, you will need to contact Microsoft directly.
    You can do this by the link below:
    http://windowsphone.uservoice.com

  • Is possible to connect a Remote Ressource with Windows Phone 8.1 ?

    I am trying to connect the my mobile with Windows Phone 8.1 with a remote ressource (and not remote PC). The address is something like "https://xxx.xxxx.xx/...". This connection is possible wiith Androïd and Mac. Here I don't fond it.

    Hi,
    Current versions of Microsoft Remote Desktop Preview for Windows Phone 8.1 do not support connecting to Remote Resources. I will help to forward your concern to the product group.
    Best Regards.
    Jeremy Wu
    TechNet Community Support

  • SBH-52 with Windows Phone 8

    Hello Everyone!
    I just bought a Sony SBH52.
    I would like to use it with my Lumia 1520. But it appears that the SBH52 works only with Android!!!
    Does it exist a way to make SBH52 worked with a Windows Phone 8 ??
    Thank you very much for your help!!

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    It should work just as any Bluetooth headset to any device but you'll miss out on the special features if you don't have a Android device.
    No tests have been made with Windows phones I believe so I can't promise any functionality. But perhaps you could tell us more about the problem you run into?
     - Community Manager Sony Xperia Support Forum
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Create a signature capture for Windows Phone 8.1 App

    I am creating a Windows Phone 8.1 app with signature capture control on one of my page. I am looking for an approach using C# so that I can draw points on a XAML with Canvas control. But it seems like that InkPresenter name space is removed from Windows
    Phone 8.1. Is there anyway I can get it around?
    Thanks, 

    Hi edwlin,
    Please try the suggestion provided by Rob Caplan in this thread:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/2a428bef-d7a3-423b-a288-4c4b4efa8034/capture-digital-signature-in-windows-phone-blank-app?forum=wpdevelop
    Quote:
    You can capture the signature by listening to pointer messages and storing the points as they come through. You can then render them as Path segments.
    See Quickstart: Pointers
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to import MySql database to windows phone 8.1 app

    Hello everyone I'm Designing a new windows phone 8.1 app and I need some help from you.
    I have a database that Im using for the some app but for Windows.
    currently using db4free.net
    and use this code
      Mysqlconn = New MySqlConnection
            Mysqlconn.ConnectionString = "server=db4free.net;Port=3306; user id=%%%%%; password=%%%%%%%; database=%%%%%%%%"
            Dim READER As MySqlDataReader
            Try
                Mysqlconn.Open()
                Dim Query As String
                Query = "SELECT * FROM Manager WHERE Name='" & TextBox1.Text & "' AND Password='" & TextBox2.Text & " ' "
                Command = New MySqlCommand(Query, Mysqlconn)
                READER = Command.ExecuteReader
                Dim count As Integer
                count = 0
                While READER.Read
                    count = count + 1
                End While
                If count = 1 Then
                    MsgBox("Mire se vini'" & TextBox1.Text & "'")
                    FORMAKRYESORE.Show()
                    Me.Close()
                ElseIf count > 1 Then
                    MsgBox("Mire se vini'" & TextBox1.Text & "'")
                Else
                    MsgBox("Manager'" & TextBox1.Text & "' is not in the data")
                End If
                Mysqlconn.Close()
            Catch ex As MySqlException
                MsgBox(ex.Message)
            Finally
                Mysqlconn.Dispose()
            End Try
    this is the code that  I use to login.  but on windows phone cant import Mysql connector. not sure why... any suggestion how to deal with this?
    or should I use SQLite? I dont know nothing about the code on SQLite...

    If this is supposed to work just on the phone then SQLite or a Local database.
    https://msdn.microsoft.com/en-us/library/windows/apps/hh202860(v=vs.105).aspx
    For small amounts of data, serializing and deserializing classes to isolated storage is faster.
    Phones aren't always connected to the interweb.
    Even if you are planning on using a central database on some server and connecting via services, you will almost always also need to store some data locally.
    It's in your interest to ask questions in the appropriate forum for the technology you're using.
    As it is, you're asking wpf developers a question about windows store app development.
    It's similar but different.
    Which is probably why Magnus is unaware of local database and I probably omitted something else.
    It's not what we do.
    I've written a grand total of one windows store apps.
    Magnus probably has a similar level of experience.
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • How to make backward compatibility of windows phone 8.1 app for windows phone 7?

    I developed windows phone 8.1 app which is in windows phone store. Now, i want to make this app compatible for windows 7 also. Is it possible, if yes then how?

    It may be that you are using non-backward compatible capabilities in your Windows Phone 8.1 app(s).
    Developers that want to develop for different OS's usually have platforms with the different OS's on them for developing applications so they work on each platform.
    I suppose you developed for Windows phone 8.1 rather than Windows phone 7. Therefore your app runs on a different framework than a Windows phone 7 has as well as probably newer hardware with greater capabilities.
    So you will probably need to purchase an older phone that came with Windows phone 7 in order to develop for. I couldn't find documentation like the last link below (App capabilities and hardware requirements for Windows Phone 8) for Windows phone 7
    from Microsoft but maybe you can.
    Windows Phone OS 7.1 - Developing a Windows Phone Application from Start to Finish
    Types of Applications
    The Windows Phone application platform provides two frameworks for developing applications:
    Silverlight
    The Silverlight framework supports event-driven, XAML-based application development.
    XNA
    The XNA Framework supports loop-based games.
    Silverlight and XNA can also be combined in a single application.
    The following table lists some of the criteria that you can use to determine whether you should use Silverlight or the XNA Framework for your Windows Phone application. With Windows Phone OS 7.1, you can combine Silverlight and XNA into one application. 
    For more information about Silverlight and XNA, see
    The Silverlight and XNA Frameworks for Windows Phone. For more information about the application platform, see
    Application Platform Overview for Windows Phone.
    What's New in Windows Phone 8.1
    Platform convergence with Windows Store apps
    Windows Phone 8.1 introduces an important change in the Windows Phone developer ecosystem. In this release, Windows Phone converges with the Windows Store apps platform into a single developer platform that runs the same types of apps—Windows Runtime apps.
    Platform convergence began in Windows Phone 8, which supports a small subset of Windows Runtime APIs, but which differs from Windows in many core areas. In Windows Phone 8.1, there’s so much more in common—a much larger API set, a similar app model
    and life cycle, a shared toolset, a common UI framework—Windows Phone and Windows Store app developer platforms truly have become one, single development platform.
    Of course there are still some small differences in behavior and supported features between Windows Phone and Windows Store apps. Some of these are the result of timing of the different product cycles, and they may not appear in future releases. Some differences
    are the result of the different natures of phones and computers, their sizes, and the way people use them. We encourage developers to think in terms of Windows app development—developing for a single Windows Runtime, but targeting two different platforms on
    phones and computers.
    Required Tools for Windows Phone Development
    App capabilities and hardware requirements for Windows Phone
    8
    La vida loca

  • Make clickable UI-elements for windows Phone 8.1 apps maps

    Windows Phone 8.1 App , C#
    I would like to let the user add Pushpins ( which apparently are called MapIcons ) to the map and when the user clicks the newly created Pushpin some other ui-elements should appear.
    But apparently MapIcons are not clickable and you can not inherit from them since they are sealed, so no luck in making them clickable.
    I tried to just extend from Windows.UI.Xaml.Controls.Button , but those have not Location, probably because the do not belong to the Windows.UI.Xaml.Controls.Maps-namespace. So I can not really add them to the Windows.UI.Xaml.Controls.Maps.MapControl.Children
    or Windows.UI.Xaml.Controls.Maps.MapControl.MapElements, since they will not be on the map where I would want them to be.
    So how do you make a clickable ui-element that I can give a location on the map?
    I already was here
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn792121.aspx#showing_xaml_controls_and_shapes_on_the_map
    But I don't see how I can add clickable elements to my map
    I could write something like this of course
            <Maps:MapControl Grid.Row="1"
                x:Name="map"
                MapServiceToken="token"
                >
                <Maps:MapIcon>
                </Maps:MapIcon>
            </Maps:MapControl>
    But this MapIcon again is not clickable and it also staticly coded. I want to add mine dynamic.

    Hi Michael,
    Yes, as you said the MapIcon is not clickable, then for the workaround, please try to check the reply which posted by @Jogy in here:
    http://stackoverflow.com/questions/25377526/windows-phone-8-1-mapicon-click-event .
    Rest Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • RESOLVED : Windows Phone – Download/In-app reporting fix begins tonight

    Update 4/2/15: The processing is complete.  The below issue is resolved.
    We have identified some download and in-app purchase transactions that were not appearing in the Windows Phone Dev Center dashboard for the November to present timeframe.
    We will start the process to add these transactions back tonight. The process will be completed in approximately a week.
    Please note the following:
    We will add data one month at a time. The most current data will be processed first (March 2015) and then work backwards to November 2014. 
    As each month is processed, you may see increases in your download/in-app reporting numbers for that month.
    You will not lose visibility into any data. 
    Transactions will continue to be shown in the Windows Phone Dev Center portal, while in parallel, we will add back the historical data.
    Only some developers were missing transactions, so you may not see any changes in your download/in-app numbers.
    This issue only impacts
    Windows Phone download/in-app numbers.  Windows Phone payout data, and Windows data is unaffected.
    We will update this post when the process is complete.
    Thank you,
    Patrick

    Hello,
    Skype for Windows Phone 7 has been discontinued and stopped working. Please read this:
    https://support.skype.com/en/faq/FA34489/is-skype-for-windows-phone-7-being-discontinued
    Skype für Windows Desktop: v7.4.x.102
    Skype für Mac OSX: v7.7.335
    ↓ Did my reply answer your question? Accept it as a solution to help others. Thanks! ↓
    ↓ Hat mein Post deine Frage beantwortet? Akzeptiere ihn als Lösung, um anderen zu helfen. Vielen Dank! ↓ .

  • Error with windows phone 7.1 in visual studio 2010 ultimate

    System.ArgumentNullException
    Value cannot be null.
    Parameter name: parentContext
       at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext)
       at MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata, AssemblyReferenceProvider referenceProvider)
       at MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider)
       at MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext)
       at MS.Internal.Host.PersistenceSubsystem.Load()
       at MS.Internal.Host.Designer.Load()
       at MS.Internal.Designer.VSDesigner.Load()
       at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
       at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
       at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
       at MS.Internal.Designer.DesignerPane.LoadDesignerView(Boolean isReload)
    this error occurs all the time i tried to open a windows phone aplication and i dont no wtf is this?

    Hi PedroMartins221,
    From your error message looks like it is a VS designer issue, I would recommend you do the same as Ken suggested, besides keep your windows update and reboot the device machine should help.
    Another possibility is maybe you update with Silverlight 5.0, as I can see from a old post:
    https://social.msdn.microsoft.com/Forums/en-US/5964a4c7-7a5b-4d09-a672-268d37aad1ff/windows-phone-7-designer-view-error-in-visual-studio-2010-ultimate?forum=vswpfdesigner uninstall Silverlight 5 might help.
    Give a try and let's see if this helps.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issues with 32GB micro SD with Windows Phone 8 and Lumia 810

    I bought 32 GB micro SDHC card (Sandisk) that causes issues such as:
    (1) tap Settings - then blank screen - then go back to Home
    (2) when shutting down WP8, it says "goodbye" forever and it does not go away. I have to detach the battery.
    (3) Occasional freezes - need to do step (2) to force reboot
    (4) Go to music > songs, causes OS to freeze
    (5) Go to music > albums, select one and cannot play - OS freeze
    I have huge library of MP3 and WMA that I want to keep them in the SD. I did it in 2 ways:
    (A) 
    Attach the micro SD (with adapter) into Windows PC, copy music folders to SD with Windows Explorer.
    (B) Attach the micro SD into Lumia 810, connect it to Windows PC. Windows detects the hardware, then using Windows Explorer, copy he music folders to Lumia 810 > SD card > Music.
    When I tried (A), 5 above issues came up. WP8 reported the SD card was corrupted. I run chkdsk to fix the SD card, but the 5 issues persisted after I inserted the SD. I formatted the SD card, and repeat
    (A), but the 5 issues persisted.
    I tried (B), then the copying process stopped in the middle. Windows Explorer reported error cannot copy file XXX. Then the 5 issues came up again.
    I am running out of ideas. What's wrong? SD, Lumia, or WP8? What should I do to have huge music files on the phone? Sorry, I can't play from the cloud.

    Hello,
    You should ask in the
    Windows Phone forums on the Microsoft Community forums.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Desktop Integration Suite 10gR3 compatibility with Windows 7

    Hi Everyone,
    I've installed DIS 10gR3 in Windows 7, installation was completed successfully without errors / warnings. But, I'm not able to move on from there. It doesn't show up in the desktop or programs list.
    Please could you let me know if DIS 10gR3 is compatible with windows 7.
    We are planning to move into windows 7 (64 bit). Highly appreciate your guidance.
    thanks,

    Hello, I have installed DIS 11.1.1.3.0 on my Windows 7 (64bits) and I've the same problems with windows explorer integration. There is no way to make it work. DIS 11.1.1.3.0 is the latest version from Oracle's page. I couldn't find version 11.1.1.4. Does it exists, or some fix about this problem.
    thanks,

Maybe you are looking for

  • Updated to Snow Leopard and now my picture looks bad on my HD TV... help?

    Hey guys and gals. So I have a MBP 1.3ghz 15" 4 gb RAM and running Snow Leopard. I have always used my DVI to Composite/S-Video adapter to watch movies on TV. I just recently updated to Snow Leopard from 10.4 and for some reason it looks like my reso

  • Creating user in oracle 12i

    Hi everybody, Where can I find information about creating users in oracle e business suite 12(12i)? Though I know how to do such procedure but I am thinking of a thorough mannual to integrate what I know about this matter. All the best,

  • Oracle JDBC thin driver(10g) returns "int/smallint" as JDBC Decimal type

    Hi, I am using Oracle type 4 thin JDBC driver for 10g. In our code we decide column type by querying the database using database metadata (as code snippet below) DatabaseMetaData dbmd = Connection.getMetaData() ; ResultSet rs = dbmd. getColumns() ; S

  • Appworld for an 8700g?

    All i want is bbm 5 back after i had to wipe an 8700.  Its defaulted back to bbm 4.5 with the core software and ive no ide how to get newer bbm back when it jumps right to appworld every time.  Its downloaded a v2 something of it, but on boot errors

  • Regarding LDB in webdynpro

    Hi, like LDB(PNP,PCH,PAP etc) in se38 Report for HCM module is there any standard way to declar a LDB in webdypro report.Kindly help me if anybody knows... Regards, Raj.