Failed to get reflection type for model.

Step 1: right click to generate

this is my first step

Step 2: installation

enter image description here

Step 3: error message

My Vs2017 will display this error message when I create a view from the controller

Step 4: my model

enter image description here

how to solve it? I cannot create a creation form

+4
source share
2 answers

So far, even if you try to add say, a different view for the existing controller and an existing action, say ManageController.AddPhoneNumberwith an existing view model - AddPhoneNumberViewModel, the same exception will still be thrown, despite the fact that there is already a view for the same action and controller, using the same presentation model.

- , , , VS 2017 ( ) , , .

, "/", . -, () , - " , VS, ".

+2

, , # 7.2 7.1

enter image description here

. enter image description here

, VS, #. , ,

enter image description here

. , #

# , .

btw , .

0

Source: https://habr.com/ru/post/1675809/


All Articles