locked
Unidentifiable code error. RRS feed

  • Question

  • User1421620300 posted

    Is their some possible way to clear the following errors. Application has complete code. Errors after building data model. This is a Tutorial and not sure how to suffice! Markus.

    https://imgur.com/a/7skAxLA

    Wednesday, November 7, 2018 9:05 PM

Answers

  • User753101303 posted

    Hi,

    It means the Employee class doesn't have anything named ImageUpload. Double check how it is declared in your Employee class (or show how it is supposed to be declared if you still need help).

    IMHO don't post images. Just copy/paste the text of the error message…

    Edit: BTW you can find some more details about compiler errors at https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1061

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 7, 2018 10:03 PM
  • User1520731567 posted

    Hi Markus33,

    As PatriceSc said,the model lacks a field named ImageUpload.

    As I can see in your picture,this is a post action,you should also pay attention to your view.

    Check if the html tag named ImageUpload has a value.

    Best Regards.

    Yuki Tao

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 8, 2018 8:39 AM

All replies

  • User753101303 posted

    Hi,

    It means the Employee class doesn't have anything named ImageUpload. Double check how it is declared in your Employee class (or show how it is supposed to be declared if you still need help).

    IMHO don't post images. Just copy/paste the text of the error message…

    Edit: BTW you can find some more details about compiler errors at https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1061

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 7, 2018 10:03 PM
  • User1520731567 posted

    Hi Markus33,

    As PatriceSc said,the model lacks a field named ImageUpload.

    As I can see in your picture,this is a post action,you should also pay attention to your view.

    Check if the html tag named ImageUpload has a value.

    Best Regards.

    Yuki Tao

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 8, 2018 8:39 AM