UWP exception “Could not load file or assembly Windows.Data......" - c#

I have a application UWP that I downloaded for to check how managed UWP with SQLServer from here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/tree/master/Samples/SQLServer
When I try to Build the application I got so many errors about the Windows resource is not found,,, I have the last version of VS2017 and also W10 Pro SO....
I tried to add references and reinstall nugets, change the debug type, change the Frameworks... and I don't get works....
Can you tell me what more to do?? Maybe you can download the Project and see the same error than me...

This reference is used to call UWP APIs in "SqlBridge" windows console project.
To call UWP APIs from a classic .NET Framework application, you could install UWPDesktop NuGet package
For more info, please see Calling Windows 10 APIs From a Desktop Application.

Related

Can't install because provider name com.iceteck.silicompressor.provider (in package MyPackagename2) is already used by Package1

my App is not installing in my android device if another app(that app also used silicompressor nuget) is installed on my device. I have checked out with manifest file,android:authorities="${applicationId}.fileprovider" and both apps having different android:authorities name only. What is the actual problem causing this exception. Please help to resolve this Error using xamarin forms.
Mono.AndroidTools.InstallFailedException:Failure[INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/MyPackagename2-FNVNvrTmReyC06yRui516g==: Can't install because provider name com.iceteck.silicompressor.provider (in package MyPackagename2) is already used by Package1
By any chance are you using any Android X library in your xamarin forms application? Is silicompressor a library that works with the android content file provider

Issue with launching Feedback Hub from UWP app

I followed these two docs (Doc1, Doc2) to integrate Feedback hub in my app. I used NuGet to install the Microsoft Store Services SDK.
As recommended I am using StoreServicesFeedbackLauncher.IsSupported() to check if the Feedback hub is available or not. This works locally on my machine, but in production all customers hit System.Exception with message "Method 'StoreServicesFeedbackLauncher.IsSupported()' was not included in compilation, but was referenced in HomePage.<feedback_tapped>d__23.MoveNext(). There may have been a missing assembly."
I have read the docs again and don't seem to have missed any of mentioned the steps.
Edit
This app is a Desktop Bridge app. The solution has a UWP app which communicates with a win32 exe. I am trying to launch the app from UWP app. The solution has a Windows Application Packaging project to package the app.

Xamarin Forms - Plugins.BLE - MvvmCross.Plugins.BLE

I want to develop an app with Xamarin Forms which detects devices and interacts with them by bluetooth connection.
The plugin "Plugins.BLE" seems good to me for my request. I found this plugin here : https://github.com/xabre/xamarin-bluetooth-le
I did not find the plugin "Plugins.BLE" when I wanted to install it in Xamarin Studio, so I tried to use the MvvmCross.Plugins.BLE plugin. So I downloaded it and installed it in my project. A reference to MvvmCross.Platform has been installed in the same time. I set the permissions for bluetooth in the AndroidManifest.xml.
I have many problems with this plugin. In the first place, I initialized an adapter like this :
var adapter = Mvx.Resolve<IAdapter>();
I put this code in my App.xaml.cs but I got a NullReferenceException when I build.
Otherwise, when I put
var ble = Mvx.Resolve<IBluetoothLE>();
Xamarin Studio does not recognize the IBluetoothLE interface.
Maybe errors come from MvvmCross using. I don't want to use MvvmCross so if the plugin "Plugin.BLE" is available I would like to use it but I did not find it.
You have to search for pre release. Currently we haven't released a "stable" 1.0 without the "-beta" postfix. Every package thats version have "-foo" postix are recognized as prerelease by nuget.
The null reference exception is a typical error if you haven't referenced the platform specific package in your iOS or Android app. Running the package on a simulator can cause some problems, too. We are working on this.

Azure media service for shared app

I've been trying to use the Azure Media Service for a shared native app in Visual Studio 2015.. But whenever i try to install the windowazure.mediaservices.extensions package, i get an error because apparently it isn't cross platform compatible on all three OS. However i can add another nuget Microsoft.windowsAzure.Managment.MediaServices - but it does not give me the same namespace as the one i get with the media services samples i downloaded earlier.
Does anyone have experince with the two nugets - and can tell me the difference? And if so - could provide me with a link to a sample that uses the last mentioned nuget.
An additional remark/question - i cannot get it to work on xamarin.forms either - not on shared or portable project.

A reference to a higher version or incompatible assembly cannot be added to the project

I created new Windows Phone 7.1 project in Visual Studio 2012 Ultimate. I have Windows Phone 8 SDK (and I am using Windows 8.1 Pro). I am trying to add AdMob.dll (from Google) which I downloaded today (version 6.5.13). When I try to add this dll to the project, I get an error: "A reference to a higher version or incompatible assembly cannot be added to the project".
Common solution for this error is to unblock the file, but I don't have "Unblock" button in Windows Explorer when I go to dll properties. I tried to unblock the dll (and the entire zip) using powershell command "Unblock-File". I tried using streams.exe to ublock the entire unzipped folder that I downloaded form Google, so I would say that this dll isn't blocked, but I still cannot add it to my solution.
Is this version of AdMob.dll incompatible with my VisualStudio/Windows/solution or am I doing something wrong?
Admob 6.5.13 targets Windows Phone 8 and thus a higher version of the Core Framework, at least the version on the current download page. I suspect you'll need to find a much older version that was compiled against Phone 7, but I do now know if that version would still be supported by google.

Categories