Error on Live Server

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
aspsteve
User
Posts: 52

Error on Live Server

Post by aspsteve »

I receive the below error when I try to log on after uploading my code to the live server.

I am able to log in normally without any errors when I generate my code on my local server.

An unhandled exception occurred while processing the request.
NullReferenceException: Object reference not set to an instance of an object.
AspNetMaker2021.Models.***_transformation_3_1_6+AdvancedSecurityBase.ValidateUser(LoginModel model, bool autologin, string provider) in AdvancedSecurityBase.cs, line 503

Stack Query Cookies Headers Routing
NullReferenceException: Object reference not set to an instance of an object.
AspNetMaker2021.Models.***_transformation_3_1_6+AdvancedSecurityBase.ValidateUser(LoginModel model, bool autologin, string provider) in AdvancedSecurityBase.cs
AspNetMaker2021.Models.***_transformation_3_1_6+LoginBase.Run() in Login.cs
AspNetMaker2021.Controllers.HomeController.Login() in ewcontroller.cs

MichaelG
User
Posts: 1113

Post by MichaelG »

Usually the problem is due to incorrect database connection. Please make sure that the database schema is the same in the remote server. Also double check the connection string in "appsettings.json" ("appsettings.Development.json" for development mode).


Post Reply