windows-store-apps-forums,building-windows-store-apps-with-c-or-vb-Related issues-Collection of common programming errors


  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    I’m trying to request AutoDiscover information from an Exchange server, and running into the weirdest error message when I use HttpClient to submit the request. The exception I’m seeing is:A first chance exception of type ‘System.Net.Http.HttpRequestException’ occurred in mscorlib.dllSystem.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. — > System.Inval

  • msdn
    windows-store-apps-forums tools-for-windows-store-apps-
    It use to work but now even with a newly created metro app from template I got those 2 errors when I hit deploy:Error 1 Error : DEP0700 : Registration of the app in the layout folder “C:\Users\Public\Documents\GridAppPub\GridAppPub\bin\Debug\AppX” failed. GridAppPubError 2 error 0x80041316: windows.licensing failed to update critical data for 84caf524-2d21-4c83-aaea-378e9650fd83_1.0.0.0_neutral__31ae3h49aptqa.  Try again and contact the package publisher i

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Hi,    My App Got rejected two times because of the same reason. I corrected from the first failure itself. The following is the reason they got rejected: The App displays unexpected behaviours when the reviewers  snap and unsnaps the app.The App uses a button, gesture or other user interface elements to close the appThe App closes programmatically.The app doesn’t suspend and  resume to a  reasonable state.The app has an app bar, but the bar doesn’t show up wit

  • msdn
    windows-store-apps-forums tools-for-windows-store-apps-
    I have 2 Win 8 machines both installing the same copy of Developer Preview Build 8102. One of the machine is the Samsung tablet that obtained from the BUILD conference. I set it as the ‘remote machine’ in another system’s VS11 Debug tab. Both of the machinescan see each other.I launch the Remote debugger on the Samsung tablet. Then Press F5 from another system’s VS11 project. I can the project shows “Deployment succeeded” at the lower left corner of VS11. And after I enter the SamSung

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-
    I’ve got a Metro app which uses Xaml, and one of the files it auto-generates is xamltypeinfo.impl.g.cpp.  I have specified in the project properties -> C/C -> Precompiled Headers -> Precompiled Header File = “StdAfx.h”, however xamltypeinfo.impl.g.cppis trying to use “pch.h” for its precompiled header.  How do I fix this conflict?What is the process which goes into generating this file? Since it seems to be ignoring the project property, is there a template

  • msdn
    windows-store-apps-forums tailoring-your-windows-store-app-for-hardware-and-devices-
    Hello,We are currently investigating how to port our application across to a Metro style app using the WinRT API so that we can target ARM tablets once they are released.Our application needs to be able to connect to an interface dongle over Bluetooth using the serial port profile, this interface is then used to access a common communications bus used in industrial automation. We are then able to the Bluetooth link to monitorthe communication bus as well as send configuration commands etcTo be a

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-html5javascript
    I really have to wonder… the provided change notifications in WinRT are crap. They do not offer any way to find out what has been actually changed. This is so annoying since ReadDirectoryChangesW, which is most likely internally used towatch for file/folder changes, offers plenty of information about a change. Why did the implementers of the FileQuery.onchange notifier decided to omit almost all vital informations in the change event they give to us WinRT use

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Hello Team,I am receiving below error while opening a Channel Uri for Push Notifications.A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)A wait operation as timed out. Exception from HRESULT: 0x880403ED Also, I ‘m trying to show a local toast notification on a button click. The toast appears on local machine, but fails to show up on Tablet emulator.Appreciate your help.Thanks,Naresh  Naresh

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-
    Hi,Most of the time, I create task chains from MTA context and I get the expected behavior working well.But, in a specific case, I have to create a task chain from the STA (in my case, when the spend event is raise).The pseudocode :task<TRes> firstTask;if(anyCondition){     IASyncOperation<TRes>^ asyncOp = ….;     firstTask = task<TRes>(asyncOp);}else{     IASyncOperation<TRes>^ anotherAsyncOp = ….; &nbs

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    I have create a Template Control with these following things:New project -> Class Library (Windows Store Apps)Names it: ProjectButtonTemplateDelete Class1.cs which create automaticallyAdd->New Item -> TemplateControl -> Names it: ProjectButtonAfter build this Template Control Project, i came back to my main App Project, Add References -> ProjectButtonTemplate/ProjectButtonTemplate/Bin/debug/ProjectButtonTemplate.dllI add xmns like this: xmlns:control=”using:ProjectButton

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    I’m trying to request AutoDiscover information from an Exchange server, and running into the weirdest error message when I use HttpClient to submit the request. The exception I’m seeing is:A first chance exception of type ‘System.Net.Http.HttpRequestException’ occurred in mscorlib.dllSystem.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. — > System.Inval

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Hi,    My App Got rejected two times because of the same reason. I corrected from the first failure itself. The following is the reason they got rejected: The App displays unexpected behaviours when the reviewers  snap and unsnaps the app.The App uses a button, gesture or other user interface elements to close the appThe App closes programmatically.The app doesn’t suspend and  resume to a  reasonable state.The app has an app bar, but the bar doesn’t show up wit

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Hello Team,I am receiving below error while opening a Channel Uri for Push Notifications.A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)A wait operation as timed out. Exception from HRESULT: 0x880403ED Also, I ‘m trying to show a local toast notification on a button click. The toast appears on local machine, but fails to show up on Tablet emulator.Appreciate your help.Thanks,Naresh  Naresh

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    I have create a Template Control with these following things:New project -> Class Library (Windows Store Apps)Names it: ProjectButtonTemplateDelete Class1.cs which create automaticallyAdd->New Item -> TemplateControl -> Names it: ProjectButtonAfter build this Template Control Project, i came back to my main App Project, Add References -> ProjectButtonTemplate/ProjectButtonTemplate/Bin/debug/ProjectButtonTemplate.dllI add xmns like this: xmlns:control=”using:ProjectButton

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    I am observing a rather unexpected behaviour of images inserted into RichTextBlocks.I am converting a WP7 eBook reader to metro. In WP7 the handling of images is done completely by the App, inserting sequences of TextBlocks and Images in a StackPanel representing the phone page. This is rather a slow process, and in the MetroApp I replaced it by using RichTextBlocks and inserting in the RTBs sequences of Paragraphs with their relative Inlines, and making full use of the RichTextOverflo

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    If you happen to be sharing a ViewModel between two Pages, and both pages have XAML ComboBoxes that bind their ItemsSource and SelectedItem to the ViewModel, it’s possible that code on a non-visible page will run. Here’s a snippet:<!– First Page –> <ComboBoxItemsSource=”{Binding Titles}”SelectedItem=”{Binding Title, Mode=TwoWay}”SelectionChanged=”ComboBox_SelectionChanged”/><Button Click=”Button_Click”/>…<!– Second Page –> <

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    In this thread, I asked if it was possible not to make the ComboBox loop around its items.  In addition, select an item in the middle of the list and expand the ComboBox, and items appear above and below the ComboBox – not just below like a standard dropdown.I’m not sure why Microsoft decided to change the way the ComboBox works; the referenced thread ended with a request for a blog entry or clarification on this, but I have seen nothing that explains these non-standard behaviors.Our busine

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Since shipping my windows 8.1 application there are SO many more exceptions than there were in windows 8. There seem to be so many new bugs in Windows.One new issue is “The application identifier provided is invalid.”I’m getting this exception in at least two scenarios:”System.Exception: The application identifier provided is invalid.   at Windows.UI.Notifications.ToastNotificationManager.CreateToastNotifier()”and “System.Exception: The application identifier p

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Hi,I am using HttpClient for sending requests to the server.HttpClientHandler handler = new HttpClientHandler();handler.UseDefaultCredentials = true;handler.ClientCertificateOptions = ClientCertificateOption.Automatic;handler.AutomaticDecompression = DecompressionMethods.GZip;HttpClient httpClient = new HttpClient(handler);httpClient.Timeout = TimeSpan.FromSeconds(30);httpClient.DefaultRequestHeaders.ExpectContinue = false;HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, URL)

  • msdn
    windows-store-apps-forums building-windows-store-apps-with-c-or-vb-
    Have a bunch of ListViews on our Windows 8 app main panorama. Right-click select works:..but using Tap in the emulator, I cannot tap and swipe down to select/deselect. It just animates in as a tap.The entire page is a horizontal StackPanel and multiple ListViews is in one big horizontal ScrollViewer…wondering if this is a bug of sorts.

Web site is in building