I am trying to run a new asp.net5 project on IIS loader, but I can't get it to work.
The error message is:
Could not find the Microsoft.AspNet.Loader.IIS.Interop Nuget Package in your users packages folder.This NuGet package is required to run ASP.NET 5 web applications.
I have installed the NuGet Package Manager for Visual Studio 2015 (as you can see in the image here) and have installed the Microsoft.AspNet.Loader.IIS 1.0.0-beta7 (prerelease) nuget package (screenshot).
What am I missing?
Asp.Net 5 is no longer supported and replaced by Asp.Net Core now. I recommend you to migrate your project to Asp.Net Core and then try again. You can follow this link to migrate your project: Migrating from ASP.NET 5 RC1 to ASP.NET Core 1.0.
According to the error message, the missing package is Microsoft.AspNet.Loader.IIS.Interop. But in your second screenshot, you are installing Microsoft.AspNet.Loader.IIS package, which is not the missing package.
Please install the Microsoft.AspNet.Loader.IIS.Interop package with command "Install-Package Microsoft.AspNet.Loader.IIS.Interop -Pre" in Package Manager Console.
In addition, please make sure your Visual Studio has enabled auto restore nuget packages through Tools -> Options -> NuGet Package Manager -> General.
Related
How to Migrate .Net core App project from VS2015 to VS2019?
In VS2015 used netcoreapp2.1
You can simply install the VS2019 and open the projet with this one.
Don't forget to restore nuget packages before regenerate the solution.
I've got a class library that till today was for .NET 4.5, now I've been asked to port it to .NET 40 but I've got some difficulies. I've followed this approach
and it works for the nuget packages that
but using this approach I get an error when going to Manage Nuget Packages telling
What's the most clean way to target different .NET framework version without loosing nuget package manager?
UPDATE #1
I've this version of nuget package manager
The error message caused by the duplicate packages listed in packages.config file. Because the Manager NuGet Packages window will read the packages.config file to list installed packages in your project and manage them.
For your situation, please check whether the packages in your project could compatible with both of .NET 4.5 and .NET 4.0. If yes, you need not to use two version packages in one project. You just need to change the project .NET Framework through Project -> Properties -> Application -> Target Framework.
If the installed packages version could not compatible with .NET 4.5 and .NET 4.0 at the same time, and you still want to use the Manager NuGet Packages, I suggest you do with below manual operation: Comment out one version of the packages in packages.config file and then open Manager NuGet Packages. After using Manager NuGet Packages, please uncomment the version that commented before.
Good morning all,
I am following the instructions on the azure site for adding offline sync capability in a Xamarin.Forms application.
I have added the package to the PCL without issue but when trying to add to the iOS client project I am getting the following error:
Could not install package 'Microsoft.Azure.Mobile.Client.SQLiteStore 2.1.1'. 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.
My project is well established in terms of completed code base so I downloaded the getting started app to test from scratch and the same issue remains.
Please help
Jordan Mazurke
Looks lite something is wrong with package 2.1.1.
Install version 2.1.0 instead and it should work!
See also Unable to install Microsoft.Azure.Mobile.Client.SQLiteStore 2.1.1 into Xamarin.iOS project with NuGet 2.12
Can I use a EF7 Code First in a Class Library to be referenced by a Console Application?
I'm preparing/creating a Database to be used in multiple projects in the future.
Now I need to play around with EF7 but not in ASP. Im ok with Console.
Now in a console application to management the first data.
Then in the Final Release of ASP.NET Core 1.
Thanks.
EF/NuGet
Assuming you are using Visual Studio, you would use the built in NuGet functionality to download and install the package. Here is a detailed tutorial.
The easiest thing to do from that link is to open the Package Manager Console window and type the following: Install-Package EntityFramework. This will install the latest version which happens to currently be 6.1.3.
EF Without NuGet
If you don't use Visual Studio or you cannot use NuGet for whatever reason, you can manually download the package from the EF NuGet Site and rename it from a .nupkg extension to a .zip extension and extract the DLL from the lib folder.
EF7
Now your question specifically mentions EF7 which is can be installed using NuGet with the following command: Install-Package EntityFramework.Commands -Pre in the Package Manager Console.
If you don't have NuGet, you can follow the steps above or download the source from GitHub and build the DLL yourself. Having said that, it is a RC so use at your own risk.
I do the following steps:
Open VS Express 2013 for Web
Create Empty MVC 5 Project
Select Tools ➤ Library Package Manager ➤ Manage Nuget Package for Solutions
Install Ninject.MVC5.
When I run debug I saw this:
I am so confuse with this error since I am new to MVC and Ninject. I already use assembly redirect because It's seem it use System.Web.Mvc version 3.0.0.0, but it's still error.
Anyone can help me?
Uninstall ninject from your project and install it again:
Select Tools-> Library Package Manager-> Package Manager Console in Visual Studio to
open the NuGet command line and enter the following commands:
Install-Package Ninject
Install-Package Ninject.Web.Common
Install-Package Ninject.MVC5
If the error continues checks that the version of System.Web.Mvc is 5.0 not another.
First, Unistall the ninject you have Install with this code
Uninstall-Package Ninject.MVC5.
Note: you put a dot(.) at the end of MVC5, i think that gave you the error.
Now, you can Install the package again with these following code
Install-Package Ninject.MVC5
resource: https://www.nuget.org/packages/Ninject.MVC5/