Error when trying to Scaffold a model

ATA

I'm building a Razor Page app using ASP.NET 2017. When I run the command

dotnet aspnet-codegenerator razorpage -m Activity -dc CongContext -udl -outDir Page\Activities --referenceScriptLibraries

This error appears:

Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I stopped and restarted VS, I've also cleaned and build the solution. Attached jpg shows the code I typed and the results

S.Serpooshan

This is because of different versions of packages. Check the 'Dependencies' node of your project. The Microsoft.EntityFrameworkCore and Microsoft.EntityFrameworkCore.Design must have same 2.0.3 versions.

If not, delete and re-add them from [Tools] menu > [Nuget Package Manager]. Also delete the Migrations folder and repeat instructions as listed here. For more info, you may take a look at this comment

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Error when trying to rename a pretrained model on tf.keras

When trying to implement tensorflow lite model in Android studio I am getting an incompatible data types error

Error when trying to create tables from model

How to run `rails generate scaffold` when the model already exists?

'Resource exhausted' memory error when trying to train a Keras model

CDI error when attempting to create scaffold with JBoss Forge

Older versions of spaCy throws "KeyError: 'package'" error when trying to install a model

Error when trying to fix

django error "The value of 'fieldsets[0][1]' must contain the key 'fields'." when trying link model to admin panel

Out of memory error when trying to implement superresolution model

Value error on Image field when trying to comvert model to dict

Django, new model raises error when trying to access the server

Error when trying to encrypt

Error when trying to export randomForest model to PMML

Umbraco 7 error, when trying to render model through partial View

Error when trying to encode

Type error when trying to fit a VGG like model

Error when trying to login

Clarifai object error when trying to call "model.predict" in Angular

Error when trying to evaluate pertained model in tensorflow object-detection

Scaffold not found error in Flutter for BottomModalSheet widget even when it is defined inside a Scaffold

Error when trying to train LSTM model with windowed dataset

Scaffold.of() called with a context that does not contain a Scaffold error when showing snack bar flutter

Yolov4 error when trying to display image on custom model

Getting Error when trying to save Django Model to My Sql Dtatabase

utf-8 decode error when trying to feed an image into a model

How can I solve this error that arises when trying to train a model?

The relevant error-causing widget was Scaffold when the exception was thrown, this was the stack

KerasClassifier error when trying to run a LST Model