ASP.NET MVC 5 Visual Studio 2019 I'm facing a problem (That Every time we have to upload file in order to create - Img Null Exception ) & Also Edit is not working (due to null exception thrown)
An exception is thrown of Img cannot be null
I don't know how to fix this null Problem , I'm beginner
Rest all is working fine In My Database I can see the file location that are saved and In my Published site I can see In Images Folder All Files are saved.
I followed this YouTube Video - https://www.youtube.com/watch?v=lyjb7nsCQ_s
Error -
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Jayesh - Diamond
StackTrace:
at Jayesh___Diamond.Controllers.TracksController.<Create>d__4.MoveNext() in C:\Users\Jayesh Chourasiya\source\repos\Jayesh - Diamond\Jayesh - Diamond\Controllers\TracksController.cs:line 54
img was null 'Object reference not set to an instance of an object.'.jpg
Server Error in Application.jpg
Thank-You 😇
User contributions licensed under CC BY-SA 3.0