{"id":6049,"date":"2014-04-12T02:54:57","date_gmt":"2014-04-12T02:54:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/windows-phone-development-forumsdeveloping-for-windows-phonerelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-12T02:54:57","modified_gmt":"2014-04-12T02:54:57","slug":"windows-phone-development-forumsdeveloping-for-windows-phonerelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/12\/windows-phone-development-forumsdeveloping-for-windows-phonerelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"windows-phone-development-forums,developing-for-windows-phoneRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums tools-for-windows-phone-development<br \/>\nHey,I just purchased a Samsung Focus to test my applications on before sending them off to the Marketplace. When I go to deploy the app to the device using the Application Deployment tool, I get the following error:&#8221;Error &#8211; Failed to connect to device. Ensure that the device is completely booted and is connected to the PC.&#8221;I have the device attached to the PC by USB, phone booted and unlocked to the Home Screen, App Deployment running as Admin, and Zune software running. Also, the devi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nI was surprised today to figure out that an in-app purchase item I had published was causing a repeatable, unrecoverable app crash. (After purchase, clicking the app icon just leads to a load page, then a crash back to home or menu.) I was surprised becauseI had tested this feature in beta and never gotten a problem.I immediately unpublished the in-app purchase item (which it seems no one had yet purchased anyway, luckily), and I&#8217;ve removed all ads in code for an upcoming update, but I&#8217;d like to<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums tools-for-windows-phone-development<br \/>\nI&#8217;m trying to test the new performance analysis tool and after trying to sample both the emulator and the device for my xna game it:Copying log file to the desktop (check)Parsing of log file failed (X)anyone getting similar error? am i missing something? it seems like im following the directions onhttp:\/\/msdn.microsoft.com\/en-us\/library\/hh202934(v=VS.92).aspxi even adjusted the sample rate but still no luck<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nMy mango HTC HD7 was receiving deployments over the weekend at home but when I deploy I get the error:Failed to connect to the device. Ensure that the device is completely booted and is connected to the PC.I did the usual things, rebooting everything, etc, but I stillget the same error.Despite the &#8216;failed to connect to device&#8217; error, Zune still kicks up when I connect the phone, it syncs ok, and having trawled an archived forum I also de-registered my phone from my AppHub account page and then k<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHopefully somebody has the answer to this as I&#8217;ve been smashing my head against the wall for more than a day on the issue. The problem is as follows:I&#8217;m attempting to logon to a well know, public website, obtain the logon cookie, and allow the use to use the not-web-friendly site on their Windows Phone via my app. In theory everything works, but when I attempt to logon, I get a 404 Not Found error fromthe HttpWebRequest object.This happens in the WP7 and WP8 emulators. This happens on my WP7 pho<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nWhen I create just a WP7.1 App, no changes created, I run\/debug the App and get: Error 1 Manifest validation fails: Exception: Could not find a part of the path &#8216;C:\\Users\\\\AppData\\Local\\Temporary Projects\\testing\\Tools\\CapDetect&#8217;. testing Why is this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHi,I have a WP7 app which records audio and stores it in app isolated storage in (microsoft) wave format. It plays back fine on the phone. But when I copy the file from WP7 to my Windows 7 PC and try to play on the PC it fails with unknown format error.It&#8217;s a very small file of size 12 KB and I binary compared wave header on PC and on phone (thru debugger watch) and also binary compared start and end of\u00a0 audio data in file. they match.PS: In the wave header the entries are like PCM, Mono, 1<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nDear ALL;I have a WP7.5 application. I want to update it. And when i changed the application manifest version from &#8220;1.5.12.927&#8221; to &#8220;1.6.12.1026&#8221; it gives a compilation error with the following messageManifest validation failed: AppManifestInvalidVersionPlease advise&#8230;Muhammad Makhaly [url]http:\/\/www.makhaly.net[\/url]<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums tools-for-windows-phone-development<br \/>\nWhenever I try to deploy to any of the WP8 emulators, the emulator starts to load then I get this error:&#8221;The Windows Phone Emulator wasn&#8217;t able to connect to the Windows Phone operating system:The emulator couldn&#8217;t determine the host IP address, which is used to communicate with the guest virtual machine.Some functionality may be disabled.&#8221;Then when I close the error, the emulator loads up, the WP8 OS runs on it, but the app isn&#8217;t deployed, and nothing happens in Visual Studio until I<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHi All,Visual Studio, Windows Application Deployment Tool, and Windows Phone Registration Tool all fail to recognize my brand new HTC 8 development phone. Finally after countless attempts I was able to unlock the new phone from a different machine, but still mydevelopment box will not recognize it. I can still deploy applications to my WP7, but nothing to WP8. Here is the error:Error\u00a01\u00a0Connection to device failed. For connecting to Windows Phone 8 device &#8211; Deployment failed because no<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nI was surprised today to figure out that an in-app purchase item I had published was causing a repeatable, unrecoverable app crash. (After purchase, clicking the app icon just leads to a load page, then a crash back to home or menu.) I was surprised becauseI had tested this feature in beta and never gotten a problem.I immediately unpublished the in-app purchase item (which it seems no one had yet purchased anyway, luckily), and I&#8217;ve removed all ads in code for an upcoming update, but I&#8217;d like to<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nMy mango HTC HD7 was receiving deployments over the weekend at home but when I deploy I get the error:Failed to connect to the device. Ensure that the device is completely booted and is connected to the PC.I did the usual things, rebooting everything, etc, but I stillget the same error.Despite the &#8216;failed to connect to device&#8217; error, Zune still kicks up when I connect the phone, it syncs ok, and having trawled an archived forum I also de-registered my phone from my AppHub account page and then k<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHopefully somebody has the answer to this as I&#8217;ve been smashing my head against the wall for more than a day on the issue. The problem is as follows:I&#8217;m attempting to logon to a well know, public website, obtain the logon cookie, and allow the use to use the not-web-friendly site on their Windows Phone via my app. In theory everything works, but when I attempt to logon, I get a 404 Not Found error fromthe HttpWebRequest object.This happens in the WP7 and WP8 emulators. This happens on my WP7 pho<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nWhen I create just a WP7.1 App, no changes created, I run\/debug the App and get: Error 1 Manifest validation fails: Exception: Could not find a part of the path &#8216;C:\\Users\\\\AppData\\Local\\Temporary Projects\\testing\\Tools\\CapDetect&#8217;. testing Why is this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHi,I have a WP7 app which records audio and stores it in app isolated storage in (microsoft) wave format. It plays back fine on the phone. But when I copy the file from WP7 to my Windows 7 PC and try to play on the PC it fails with unknown format error.It&#8217;s a very small file of size 12 KB and I binary compared wave header on PC and on phone (thru debugger watch) and also binary compared start and end of\u00a0 audio data in file. they match.PS: In the wave header the entries are like PCM, Mono, 1<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nDear ALL;I have a WP7.5 application. I want to update it. And when i changed the application manifest version from &#8220;1.5.12.927&#8221; to &#8220;1.6.12.1026&#8221; it gives a compilation error with the following messageManifest validation failed: AppManifestInvalidVersionPlease advise&#8230;Muhammad Makhaly [url]http:\/\/www.makhaly.net[\/url]<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHi All,Visual Studio, Windows Application Deployment Tool, and Windows Phone Registration Tool all fail to recognize my brand new HTC 8 development phone. Finally after countless attempts I was able to unlock the new phone from a different machine, but still mydevelopment box will not recognize it. I can still deploy applications to my WP7, but nothing to WP8. Here is the error:Error\u00a01\u00a0Connection to device failed. For connecting to Windows Phone 8 device &#8211; Deployment failed because no<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nIn my dev copy of my app email and sky drive work ok.\u00a0 I just got my app published.\u00a0 So I un-installed the dev copy and installed copy from store.\u00a0 When I send and email my app gives a no network message.\u00a0 When I try to login to SkyDrive the login screen never comes up.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nI am listening back pressed event. When user presses back on the main screen I show yes-no dialog. But when user presses Yes I see no way how make the program exit.In this topic http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/wpdevelop\/thread\/fdedf8f6-e691-4df6-92c7-ed3dc97bddc0 some solutions were discussed but it seems for me that they require XAML.So how can I exit from Windows Phone 8 application.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-phone-development-forums developing-for-windows-phone<br \/>\nHere is the code for checking license of app:\/\/from main threadcreate_async([this]{GetTrial();});void MyApp::GetTrial(){m_inTrial = CurrentApp::LicenseInformation-&gt;IsTrial; }Then the purchase app:bool MyApp::PurchaseApp(){String^ pProductIdString;pProductIdString = CurrentApp::AppId.ToString();try { auto operation = CurrentApp::RequestProductPurchaseAsync( pProductIdString, true ); auto requestPurchaseTask = create_task(operation);requestPurchaseTask.then([pProductIdString]( task&lt;String^&amp;g<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>msdn windows-phone-development-forums tools-for-windows-phone-development Hey,I just purchased a Samsung Focus to test my applications on before sending them off to the Marketplace. When I go to deploy the app to the device using the Application Deployment tool, I get the following error:&#8221;Error &#8211; Failed to connect to device. Ensure that the device is completely booted and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6049","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6049"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6049\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}