question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add new scaffolded item error (Bug)

See original GitHub issue

Scaffolding items for:

  • API Controller with actions, using Entity Framework
(Error : Method not found: System.Type.Microsoft.EntityFrameworkCore.Metadata.Iproperty.getClrType()'.')
  • MVC Controller with views, using Entity Framework
(Error : Method not found: Boolean Microsoft.EntityFrameworkCore.Metadata.Iproperty.getlsShadowProperty'.')

Steps to reproduce:

  • Add new project
  • Add context and etc…
  • Add migration data by PMC command “Add-Migration ProjectInitialCreate”
  • Update database by PMC command “Update-Database”
  • Add new scaffolded items (ERROR)

Target framework(s):

ASP.NET Core SDK v 3.0.0-preview4.19212.13

Package version

<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" />

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
guilhermesoattocommented, Feb 17, 2020

I have the same problem image

using the last version try to add scaffold item using netcore 3.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when trying to add a scaffolded item in Razor Pages
I have been trying to add a scaffold item in ASP.NET Core, razor pages using Entity Frameword (CRUD). My current target framework is...
Read more >
Error while generating New Scaffolding item ( Add Razor ...
Error while generating New Scaffolding item ( Add Razor Pages using using Entity Frame work-CRUD)Closed - Not a Bug View resolution
Read more >
Add Scaffolded Item Erorr with startindex cannot be larger ...
I try to follow the Microsoft Document WebApp MVC and stuck at part 4 Add a model. It shows Error with StartIndex cannot...
Read more >
Fix Update: Scaffolding failed, could not load information for ...
In this video, I going to fix this error, Scaffolding failed in visual studio dring adding razor view, area etc. so you can...
Read more >
ASP.net MVC 6 Cannot use New Scaffloded item
In Solution Explorer, right-click the Controllers folder and select Add > New Scaffolded Item. In the Add Scaffold dialog, select MVC Controller ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found