After asking my first question Windows Phone 7.1 app accessing Azure Storage directly, I download wp7facebookazure wp7.0 sample.
After i downloaded wp7facebookazure sample from http://wp7azurequickstarts.codeplex.com/releases/view/65745, I compiled WindowsPhoneCloud.StorageClient library, I see it is using custom System.Data.Services.Client library.
After I change the sample to use windowsphone7.1 sdk and then I add System.Data.Services.Client reference, I get following error:
Microsoft Visual Studio
A reference to a higher version or incompatible assembly cannot be added to the project.
How I can use windowsphone7.1 sdk System.Data.Services.Client reference?
Here is what I tried in my machine:
Loaded WP7FacebookAzure solution
Upgraded solution to use Windows Phone SDK 7.1
Removed System.Data.Services.Client project completely
Added System.Data.Services.Client references from C:\Program Files (x86)\Microsoft SDKs\Microsoft Data Framework\Phone\v7.1\bin\System.Data.Services.Client.dll
There were some error which you work to remove however using above steps I was able to integrate System.Data.Services.Client.dll in WP7FacebookAzure solution.
Related
I'm trying to integrate online payment in a existing web application.
I'm using as a payment vendor worldpay which has a git link (link)
The problem is that the sdk is built on version 2.0.0.0 of Newtonsoft and in the other web application I'm using version 10.
I've tried to build again the SDK with version 10.0.0.0 but I get a build failure.
I've also tried to use both dll with diferent versions using codeBase but it doesn't seem to work.
Does someone has any ideas how to use this sdk with a greater version of Newtonsoft?
The way we resolved this problem was by renaming worldpay's Newtonsoft.Json.dll to WorldPayNewtonsoft.Json.dll.
1 Download worldpay-lib-dotnet-3-5 from worldpay-lib-dotnet
2 Open with visual studio Newtonsoft.Json project, rename it to WorldPayNewtonsoft.Json.dll (from Project (right click) -> Properties -> Assembly name) and build it.
3 Open Worldpay.Sdk project in visual studio and replace the Newtonsoft.Json reference with the new one called WorldPayNewtonsoft.Json.dll and build Worldpay.Sdk project.
4 Take then the new built Worldpay.Sdk.dll and WorldPayNewtonsoft.Json.dll from bin folder and put them into your project references without worrying about Newtonsoft.Json.dll conflicts.
In our case this made it work.
Hope it helps!
I have a C# app targeting windows UWP. It was all working fine couple month's ago. When I opened it today, it cannot find this reference: Microsoft.NETCore.UniversalWindowsPlatform. I am unable to install this reference as well. Here are my project details & the steps I have followed:
My VS details:
MS VS Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038
When I try to install this reference: Referencs(right click)->Manage NuGet Packages, & then by selecting Microsoft.NETCore.UniversalWindowsPlatform, I get this error:
Could not install package 'Microsoft.NETCore.Platforms 1.0.0'. You are trying to install this package into a project that targets '.NETCore,Version=v5.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have NuGet Package Manager for Visual Studio 2015 Version 3.4.3.855 installed.
Based on the suggestion available here Github MS UWP samples page I deleted project.json from my project, but that doesnt seem to help me. Unfortunately I do not see project.lock.json file in my project
I had similar exception after copy solution folder to other machine.
In project.lock.json in field "packageFolders" and "project" where my settings for previse machine, I have changed them and it resolve my issue
I am trying to create an Azure Mobile Services cross platform app. I am using Xamarin.Forms, so have been trying to follow this tutorial. However, I am not getting very far... I create a new Xamarin Forms project in Visual Studio 2015 and opening the nuget manager. I try to install Azure Mobile Services into each project in the solution. But I get the following set of errors:
Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.FileNotFoundException: Could not load assembly 'Azure_Test, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? Azure_Test.Droid
Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I have filed a bugzilla case, but it seems like a pretty straight forward thing, so I wondered if there is anything I have done wrong there is a workaround?
Had this the other day. Before you install the Mobile Services package install the Microsoft.Bcl.Build nuget package. After that, I was able to install flawlessly.
At the moment I'm trying to launch empty app with cross-platform solution in Xamarin Studio.
I've tried make app with empty library project and shared library, both has same errors. Now unresolved problems are:
1) Build error:
Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file classes.jar doesn't exist. (XA5207) (*projectName*)
Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file libs/internal_impl-21.0.3.jar doesn't exist. (XA5207) (*projectName*)
This question didn't help me.
2) Some links says it could be because of old Mono.Android.Support.v4 component. My component version is 21.0.3.0. After clicking for update it says:
You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework.
My Mono.Android assembly version is 0.0.0.0 and I dodn't know how to update it.
I've tried PCL project with PCL 4.5 - profile7. New projects builds normal, but after first project clean it gives me error about not found classes.jar file like described above. Another new PCL project still builds fine.
UPDATE
Error in PCL project occures not after clean - it occures with included Xamarin.Forms NuGet to Android project.
UPDATE
After rising target framework of android project to v4.0.3 I successfuly updated Mono.Android.Support.v4 component, but it still show me error about Please install package.
UPDATE
I'm using Windows 7 OS, same problem with all users including new user. But on another computer with Windows 8 it works. It is not a solution for me, but it can somehow help someone.
i think your java JDK and JRE not install properly and your path not set in your environment variable you must add your jdk path in that and if you are make application using cross platform then also add path SDK in your computer environmental variable. using CMD throw creating project.
I'm having a bit of a senior moment trying to get SQLite working on a new WPF project. I've recently written a bunch of Windows Store and Phone projects and always used the same neat SQLite-net implementation there, but now I can't seem to do that with my WPF app.
I've added SQLite-net through nuget, but I can't find a version of SQLite3.dll that I can add to the project. When I download it from SQLite.org I get the following error.
What am I doing wrong? All the tutorials I find tell me to use System.Data.Sqlite instead but I don't want to rewrite all my DAL code again
I got it working.
For anyone who's trying to do this - specifically, trying to get sqlite-NET to work on WPF, not just SQLite, you need to:
download the pre-compiled windows binary of sqlite3.dll from http://www.sqlite.org/download.html
copy that dll file into your bin folder
go to project properties > build and change the CPU type to x86 (there's no precompiled x64 version at time of writing)
You need to download and install an appropriate System.Data.SQLite setup package from http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki.
This will install the required SQLIte assemblies into your GAC and the design-time components for Visual Studio.
For .NET 4.5.1 (VS 2013) the current link is http://system.data.sqlite.org/downloads/1.0.92.0/sqlite-netFx451-setup-bundle-x86-2013-1.0.92.0.exe
For .NET 4.5 (VS 2012) the current link is http://system.data.sqlite.org/downloads/1.0.92.0/sqlite-netFx45-setup-bundle-x86-2012-1.0.92.0.exe
For .NET 4 (VS 2010) the current link is http://system.data.sqlite.org/downloads/1.0.92.0/sqlite-netFx40-setup-bundle-x86-2010-1.0.92.0.exe
Once you do that you will be able to add required SQLite assembly references in your project.
Here is a screenshot of SQLite assemblies in Add Reference dialog: