Setup for Windows Phone 8 Application Development. Error while Making new Project - windows-phone-8.1

I have :-
1) Windows 7(64 Bit)
2) Visual Studio 13(Installed)
3) Windows Phone SDK 8.1(Installed)
When I am creating new Mobile project, I am getting Error,
A problem was encountered creating the sub project 'App.Mobile.Native.WinPhone'. The project file 'C:\Users\AppData\Local\Temp\us2to0hu.qdd\Temp\App.Mobile.Native.WinPhone.csproj' cannot be opened.
There is a missing project subtype.
Subtype: '{76F1466A-8B6D-4E39-A767-685A06062A39}' is unsupported by this installation.
Please Help.

I searched for the Subtype: ‘{76F1466A-8B6D-4E39-A767-685A06062A39}’
It must be Windows Phone 8/8.1 Blank/Hub/Webview App
Refer to:
http://www.codeproject.com/Reference/720512/List-of-Visual-Studio-Project-Type-GUIDs
Please install windows 8.1 SDK from the following link:
https://dev.windows.com/en-us/downloads/sdk-archive
Best Regards,

Related

Run Cocos2d-x Hello World Project on Windows Phone

I want to run cocos2d-x Hello World Project on Windows Phone, but I have no idea how to do it.Currently , I am working on Mac, create cocos2d-x Project and run on iOS Device, its easily achieved. Now, I want to run it on Windows Phone: I am trying some steps but failed:
Copy whole project and paste into windows 10 laptop.
Try to open .sln file from HelloWorld Project in visual studio but this gives Unsupported Project.
Please give me any hint , how to do it.
you can copy or create a new project it doesn't matter what dose matter is that you have to open the proj.win8.1-universal folder in visual studio then open up the *.sln file and you have to have a community version of visual studio which has by default the wp8.1 sdk that allows you to open an develop wp8.1 projects and 2013 or 2015 will do just fin.

Can't Deploy Universal App to Windows Phone 10 Technical Preview

Here's the details:
Created a blank Universal Windows App in Visual Studio 2015
Set to ARM, Debug
Attempt to deploy to a Lumia 925 Running Windows 10.0.10166.0
Phone is in 'Developer Mode'
I unlocked the phone using the Windows Phone Developer Registration (8.1) tool. Do I need one for Win10?
I first get the following error:
Error : DEP3321 : To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.10240.0 or higher. You currently are running version 10.0.10166.0. Please update your OS, or change your deployment target to a device with the appropriate version.
Now I found a solution for this first error here so I changed the following in the App1.csproj file:
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
to
<TargetPlatformMinVersion>10.0.10166.0</TargetPlatformMinVersion>
Now I get the following error when I try and deploy the app to the phone and I can't find a solution:
Error : DEP0001 : Unexpected Error: Element not found. (Exception from HRESULT: 0x80070490)
Anyone have any idea how to resolve this? I can deploy the app fine to the emulator, just not to my physical phone running Windows 10.
For me I had to turn on the Windows Phone ip over USB Transport
go to run -> services.msc -> [look for it].
If any of these answer not solved your problems, here is what I've done:
Reset the phone (it's dev phone, so it's okay to reset, not losing any data)
DO NOT choose recovery. Start clean
After all waiting (installing app, get settings set), plug it in and try to deploy again.
And it's just worked
The idea come from: https://social.msdn.microsoft.com/Forums/en-US/d2340565-a80a-4f1c-8a0c-ba8ad5ce34b1/cannt-deploy-wp-81-app-to-phone-using-vs-2013-error-dep0001-unexpected-error-element-not?forum=wptools
What worked for me was resetting the phone to factory defaults ( and erasing all data... a true reset). The phone came with 8.1, when I reset it however, it was reset to windows 10 base. I re-enabled developer mode on the phone and I can deploy my apps to the phone now.
I had tried all the other suggestions with no luck.
The error is telling you that the version on your phone is older than what the tools support and that you'll need to upgrade it. Can you try checking for updates on the phone and bringing it up to 10.0.10240.0? There are likely breaking changes between 10166 and 10240 that prevent the VS RTM tools from working with older versions.
Update: we have announced a newer build of Win10 mobile, which will work with the win10 tools. More information is available here:
http://blogs.windows.com/bloggingwindows/2015/08/12/announcing-windows-10-mobile-insider-preview-build10512/
Apparently 10.0.10166.0 is a pre-release Mobile Insider Preview Build.
You just need to decrease Target Min version to 10166.
Unfortunately, you can't do this from Project settings.
Bu you can do it manually.
Follow these steps (Worked in my case with Nokia Lumia 520 Windows 10 Mobile Insider build 10.0.10166.0):
Right click on your project in Visual Studio.
Select "Unload Project", it will now appears as ProjectName
(unavailable).
Right click on the unloaded project and select "Edit
ProjectName.csproj"
Locate the <TargetPlatformVersion> and <TargetPlatformMinVersion>
items in the first <PropertyGroup>.
Change the <TargetPlatformMinVersion> value to 10.0.10166.0.
Now Save and Close the file.
Right click on the project again and select "Reload Project"
Rebuild the project and deploy to device.
When I tried to deploy my app in Release mode to Windows Phone 10 I got the following error:
Error : DEP0001 : Unexpected Error: Element not found. (Exception from HRESULT: 0x80070490)
I tried a few things but what ended up working was quite simple: I built and ran the Debug mode of my app. Then without uninstalling the app I switched the configuration to Release and built and ran it on the phone and then it worked!
Whoever ends here because they are getting
Error : DEP0001 : Unexpected Error: Element not found. (Exception from HRESULT: 0x80070490)
after trying to deploy a UWP app (but deploying on emulators work) and the Windows Phone ip over USB Transport service is started, first and foremost try reseting the phone to fabric settings. It worked for me and some others in this thread, so my advice is to start with this before spending lots of hours chasing ghosts.
I tried it with Visual Studio 2015 Update 2.

Windows Phone 8.1 HubApp + HtmlAgilityPack

I know that using HAP in windows phone apps is very problematic, but I very need to. So the problem is that when I add System.Xml.XPath from silverlight 5 or 4 I get "Xaml Internal Error error WMC9999". It's got to be noticed that the version of HAP is 1.4.6 but not 1.4.9 (tha latest one), because it cannot be installed from NuGet (just doesn't add reference) and I've found no links to download it manually.
In old windows phone 8 silverlight app everything worked great.
Please, help.
Use the HtmlAgilityPack-PCL nuget package with Windows Phone 8.1 XAML apps, it works fine with no need to add any references manually.

Error when set project in release mode - Windows Phone 8.1

Am porting my Windows Phone 8 app to Windows Phone 8.1 and everything is working fine in debug mode. But when I set in release mode and while building the application, I get the error,
The type of namespace "FlickGestureEventArgs" could not be found
The type of namespace "ShakeGestureEventArgs" could not be found
How to overcome this? I couldn't launch the app certification kit when in debug mode.
Got solution for my own question and here is my answer.
First I re-installed the WP toolkit from nuget using the command
Install-Package WPtoolkit
So that I can able to solve FlickGestureEventArgs. And similarly I thought this will be solution to my another problem ShakeGestureEventArgs. Started searching for the new ShakeGesture.dll and find that in below link.
ShakeGesture.dll
Now my problem is solved. If you are facing the same issues, just re install the packages which shows error and you can able to solve it.

Cannot find type System.SystemException in module mscorlib.dll when reference to Microsoft.Phone in Windows Phone 8.1 app template

Microsoft just released Windows App 8.1 with combination of Windows 8.1 and Windows Phone 8.1, so you can create a universal app. However, it gives me a trouble to add Microsoft.Phone 8.1 assembly to project reference.
Here is what I did (in Visual Studio 2013, with Rc2 installed)
1> Create New project from Visual C#->Store Apps -> Windows Phone Apps.
2> Added Microsoft.Phone from this location: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.1
3> Now, do a build, I see the following Error: "Cannot find type System.SystemException in module mscorilib.dll"
Anyone has the similar experience? any solutions?
Thanks
There has been a few API changes as part of programming model in windows phone 8.1 apps.
have a look at this link.
It will solve your problem.
http://blogs.msdn.com/b/paraswadehra/archive/2014/08/21/how-to-send-email-from-your-windows-phone-8-1-app.aspx