Object reference not set to an instance of an object (v2021)

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

Object reference not set to an instance of an object (v2021)

Post by aspsteve »

I am getting the error message below when I upload my code to the server.

The code works perfectly well on my local machine.

An unhandled exception occurred while processing the request.

NullReferenceException: Object reference not set to an instance of an object.

AspNetMaker2021.Models.****+AdvancedSecurityBase.ValidateUser(LoginModel model, bool autologin, string provider) in AdvancedSecurityBase.cs, line 462


MichaelG
User
Posts: 1111

Post by MichaelG »

Make sure that you have published your application and set up IIS in your server correctly. Read the Publish setting in Generate Settings:
https://aspnetmaker.dev/docs/#/generatesetup.html


Post Reply