Did this article resolve your question/issue?



Unable to log into backend after upgrade - Object reference not set to an instance of an object

« Go Back


TitleUnable to log into backend after upgrade - Object reference not set to an instance of an object
URL Nameunable-to-log-into-backend-after-upgrading-from-sitefinity-9-2-to-10-0
Article Number000188441
EnvironmentProduct: Sitefinity
Version: 9.x, 10.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
Cannot login to Sitefinity backend after upgrading Sitefinity.

User-added image
Steps to Reproduce1) Upgrade Sitefinity project
2) Try to log into Sitefinity backend
Clarifying Information
Error MessageObject reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
Telerik.Sitefinity.Security.Claims.ProtectedRoute.HandleUnauthorizedUserRedirect(HttpContextBase httpContext) +184
Telerik.Sitefinity.Security.Claims.ProtectedRoute.GetRouteData(HttpContextBase httpContext) +433
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +235
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +82
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Defect Number
Enhancement Number
Some DLLs did not upgrade properly. 
Failed update of the Authentication module.
Elements missing from the web.config
Option 1
Take the following steps:
1. Create a back up of the project.
2. Delete all the file from the 'Bin' folder.
3. Copy all the files from 'Bin' folder of '_EmptyProject ' and paste them in the 'Bin' folder of the project.
4.(Optional) Make sure to add all additional DLLs, which might be missing which the project is dependent on.
5. Copy the web.config file from an Empty Project (Corresponding to the same version)
6. Build the project and try to log in again.

Option  2
To check if the error is caused due to a failed update of the Authentication module, execute the following query in your Database:
​SELECT [module_name]
  FROM [dbo].[sf_module_vrsn]
  WHERE module_name = 'Authentication'
If there is an error message in the error_msg column:
1) Create a backup of the database.
2) Execute the following query:
DELETE FROM [dbo].[sf_module_vrsn]
WHERE module_name = 'Authentication'
The query will delete the failed module, and next time Sitefinity Starts, the reinstallation of the module will be triggered.

Option 3 
This is contained in step 5 in Option 1
Make sure that the following key exists with the right value (true) in the project's web.config:
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
Last Modified Date3/15/2018 4:12 PM
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.