windows-10-universal

Access denied while saving image in UWP.Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

巧了我就是萌 提交于 2019-12-02 01:46:56
I am working on universal windows app on Windows 10 SDK to draw rectangle on faces recognized in the image. I am using Win2D to edit the pictures and draw rectangle on it. I am able to read files from the Pictures library but when I try to save the image after editing it gives the following error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) The following is the method I used to draw rectangle on the image: private async void DrawRect() { CanvasDevice device = CanvasDevice.GetSharedDevice(); CanvasBitmap bitmap = null; CanvasRenderTarget offscreen = null; Windows

Error when uploading UWP app to Windows Store: Failed to merge PRI file \\Resources_split.scale-100.pri

你。 提交于 2019-12-01 22:24:05
I am uploading a latest version of my app to the Windows store but my app is throwing the error: Package acceptance validation error: We encountered a fatal error while parsing the package MyApp.UWP_2.33.0.0_x86_x64_ARM_AppStore.appxbundle: Failed to merge PRI file D:\data\Temp\69b5c2ab-3419-4197-839c-2ef13d218413\Resources_split.scale-100.pri: 80070490. Try again or upload a new package. I do not understand where to even begin to look to fix this error. has anyone else seen this error or have any inclin to what it may be? This is also throwing a similar error when running on The Windows App

How do I change the accent colour of a Xamarin.Forms UWP application?

天涯浪子 提交于 2019-12-01 22:07:12
I am developing a Xamarin.Forms UWP application. I am struggling to set the accent colour of my application. This is the colour that is used for certain behaviors by default on controls. For example the Entry control has a default blue highlighting on focus shown below: I have tried a few suggestions from this thread: Change Accent Color in Windows 10 UWP but none seemed to work. I am not sure whether it is because I didn't fully understand how changing the colour for UWP differs for Xamarin.UWP, or whether what I'm trying to do is even possible with Xamarin.Forms. Has anyone found out how to

How to use PCL in ASP.NET Core 1.0 RC2 project

情到浓时终转凉″ 提交于 2019-12-01 21:50:36
I want to use a simple (POCO only without other dependencies) PCL with targets Xamarin.Android Universal Windows 10 ASP.NET Core 1.0 in an ASP.NET Core 1.0 RC2 project (all in the same solution). I have added this import to my project.json: "frameworks": { "netcoreapp1.0": { "imports": [ "dotnet5.6", "dnxcore50", "portable-net451+win8" ], "dependencies": { "PCL.Library": { "target": "project" } } } } I don’t get any errors (compilation or otherwise) and the PCL.Library project shows up in the references (without warning signs or anything). But I can’t use it in my ASP.NET Core 1.0 RC2 project

How can I convert a image into a byte array in uwp platform

眉间皱痕 提交于 2019-12-01 20:08:54
问题 I need to convert an image into a byte array to store it in a database. and also I need to convert that array back to the image. I did google research but I couldn't find a solution because in UWP platform some api doesn't available. 回答1: I found the solution from these articles as theoutlander says. To convert a image into a byte[] i'm going to use the 'OpenSequentialReadAsyn()' method of a storage file. lets assume that our image is 'file'. to convert it into a byte array do the below using

Install 2 versions of same Windows 10 Universal App in the same OS instance

左心房为你撑大大i 提交于 2019-12-01 19:48:31
We are developing a Windows 10 Universal app. Currently, there are 2 branches of the app code, MAIN and DEV. We would like to be able to install (and run) both builds on the same OS instance at the same time. Right now, we do not see any other way of doing this than having a separate VM for each app build, but this is not our preference. Does anyone have any experience with this type of challenge, and does anyone know if this is even possible from technology standpoint? Each package must have a distinct PFN (Package Family Name) listed in the package.appxmanifest.xml if you want them to be

Facebook Single sign on not working in windows phone 8.1 app running on windows 10 devices

老子叫甜甜 提交于 2019-12-01 19:45:32
问题 I have referred this link to implement facebook login with facebook app. It works fine. After login from facebook app it redirects to my app. But when i run this app on windows 10 device facebook app(both latest beta version and latest facebook ) doesnt redirect to my app. Instead facebook beta opens its timeline and facebook app crashes. I think fbconnect://authorize? is not supported in windows 10 facebook app? But i have got some links in satackoverflow(link1) which says it works fine. But

How can I convert a image into a byte array in uwp platform

混江龙づ霸主 提交于 2019-12-01 19:01:30
I need to convert an image into a byte array to store it in a database. and also I need to convert that array back to the image. I did google research but I couldn't find a solution because in UWP platform some api doesn't available. Nuwan Karunarathna I found the solution from these articles as theoutlander says. To convert a image into a byte[] i'm going to use the 'OpenSequentialReadAsyn()' method of a storage file. lets assume that our image is 'file'. to convert it into a byte array do the below using (var inputStream = await file.OpenSequentialReadAsync()) { var readStream = inputStream

Facebook Single sign on not working in windows phone 8.1 app running on windows 10 devices

…衆ロ難τιáo~ 提交于 2019-12-01 18:06:59
I have referred this link to implement facebook login with facebook app. It works fine. After login from facebook app it redirects to my app. But when i run this app on windows 10 device facebook app(both latest beta version and latest facebook ) doesnt redirect to my app. Instead facebook beta opens its timeline and facebook app crashes. I think fbconnect://authorize? is not supported in windows 10 facebook app? But i have got some links in satackoverflow( link1 ) which says it works fine. But only difference with those links is they have actually created windows 10 universal app where as

What is the equivalent of Assembly.GetEntryAssembly() in .NET Core?

我怕爱的太早我们不能终老 提交于 2019-12-01 17:50:14
In .net framework we could get the starting assembly using: Assembly.GetEntryAssembly(); But that is removed from .NET Core. Also there is no AppDomain. How can I get access to the entry assembly in .NET Core and Windows Universal applications? (I need to find all of its embedded resource keys) Assembly.GetEntryAssembly() is available in .NET Standard 1.5 , but not in versions 1.0 through 1.4. If you are only developing .NET Core and Universal Windows applications, version 1.5 should be sufficient for your needs. If I remember correctly, AppDomain is destined to appear in .NET Standard 2.0 .