Windows Phone 8.1 System.Security.Cryptography doesn't exist - cryptography

I need to use the System.Security.Cryptography namespace in my Windows Phone 8.1 app - specifically the rsa provider.
But there is no such namespace available when i make a Windows Phone app. When I use Siverlight the namespace is there but I cant find it when creating standard Windows Runtime apps.
The MSDN documentation says that RSACryptoServiceProvider is available on Windows Phone 8.1, do I need to reference any additonal assemblies to get it working?

In windows phone 8.1 this is different from windows phone 8. Use this instead:
Using Windows.Security.Cryptography;

Related

Does Microsoft Store support apps that are made with VB.Net in Winforms? And VB.Net in WPF?

So, does Microsoft Store support apps that are made with VB.Net in Winforms?
I know the Microsoft Store supports UWP (Universal Windows Platform) apps, but I don't know whether the store supports apps that are made with Vb.Net in Winforms.
Also does Microsoft Store support WPF (Windows Presentation Foundation) apps that are made with VB.Net?
According to this page, Winforms apps are not allowed:
WinForms applications are not allowed at Windows Store, only UWP apps are allowed in the Microsoft Store. UWP provides a more secure ecosystem than other runtimes.
If you want to publish winform app to windows store, the first step would be to convert your WinForms application to UWP.
MS put out an app to convert Winforms/WPF apps into UWP apps though:
https://developer.microsoft.com/en-us/windows/bridges/desktop
For a whole lot more info on that than I could ever post here, here's a good page:
https://www.telerik.com/blogs/tips-for-publishing-winforms-wpf-apps-to-microsoft-store

Native WCF client for Windows XP

I have created program using MSVC++ that besides it's main task calls WCF server functions. Under Windows 7 and Windows 8 everything works fine and I got several problems with Windows XP:
On some machines I have error that webservice.dll is missing and program doesn't starts. Why some Windows XP installations contain webservice.dll while others - not? How to install required dll?
On Win XP computers that has webservice.dll sometimes programm just crashes without any reporting. After recompiling program without WCF client code program runs fine. What might be starting point to look for the problem?
Windows Web Services API (WWSAPI) is an operating-system component of Windows 7 and Windows Server 2008 R2 or later versions of Microsoft Windows.
On Windows XP you need to package it with your app. The reason it works on some boxes is probably caused by one other installed application that uses that the WWSAPI as well.
The final version of the Windows Web Services API for Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008 is now available
In contrast to the past pre-released version of this API, this final version release can be used in production code and redistributed with the final versions of the product. Because of this, the final version is only available to companies who agree to terms of Windows Master Redistribution License Agreement (MRLA). To acquire the redistributable installers for this release and a copy of the Windows MRLA for review, please email a formal request.
Partially copied and adapted from Windows Core Networking blog, from Ari Pernick, dated Oct 9th, 2009.

Check if a tablet is connected to a power supply from a windows 8 store app

Is it possible from a Windows 8.1 store application to tell if the tablet has it's power supply connected.
Basically I poll a service every 15 minutes to check for new data but I'd like this to be every minute if the power is connected.
I did ask this question a while back and was told it wasn't possible but I was wondering if the windows 8.1 update has added any extra functionality.
I'm using Visual Studio 2013 and the application is a Windows 8.1 application.
Many thanks
Still no Power Management API or any alternatives for Windows 8.1
Check System section in this MSDN article:
Alternatives to Windows APIs in Windows Store apps

What is difference between windows 8 metro style app and windows 8 store app?

In windows 8 consumer preview ,i used visual studio 2011 ,it has windows metro style app option.. and in windows 8 Pro i am using vs 2012 it has windows store app option ,there is no windows 8 metro option available in vs2012..is windows metro and store apps one and the same?
They are indeed the same this. "Windows Store apps" is the final name. The name change is speculated to be for legal reasons.
The Windows Store Apps used to be called Metro Style apps, but then Microsoft ran into some issues with one of its partners in Europe and had to come up with a new name. Now they are called Windows Store Apps.

Windows Mobile/Embedded Device Emulator on Windows 8

We design and develop applications that run on Windows Mobile and Windows Embedded, as this is the operating system that comes on most industrial bar code scanners right now.
Give that, we often use the Windows Mobile Device Emulator to simulate our software and give customer demonstrations. With Windows 8 being released, it seems that the Windows Mobile Device Center no longer works. This component was required to "Cradle" the device to get a network connection.
Is there a way to get the Windows Mobile/Embedded emulator to work on Windows 8?
You need to uninstall Windows Mobile Device Centerand to install the most recent one (dec 2012).
Go to the Microsoft web and download Windows Mobile Device Center for Vista (32 or 64 bits according your hardware). There is not option for Windows 8, but the version for Vista works perfectly in Windows 8.
you can always use Windows CE versions for using on your mobile/ embedded projects