-2

I'm trying to compile my ASP.NET MVC code, but I get a System.NullReferenceException.

The program works, but in the confirmation of my form, I get this error. Please help me solve it.

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Durelo
  • 1
  • 2
  • 1
    Suggest reading [How to ask a good question](https://stackoverflow.com/q/4660142/8017690) before posting the question by providing the Minimal, Reproducible Example with code snippet. – Yong Shun May 29 '22 at 12:22
  • Show us your code in the controller that prepares the data and then returns this view - that's where we'd see if you're getting the data ready correctly... – marc_s May 29 '22 at 18:27

1 Answers1

-1

you information is limited, but base on your image, @Model is NULL. you should initialize it before use.

nima ansari
  • 434
  • 9
  • 19
  • Ok, Nima. Thank you for your answer, but here is the extract of my form, which must collect information...

    – Durelo May 29 '22 at 15:55