Developer forum

Forum » Development » Error at Application_AuthenticateRequest

Error at Application_AuthenticateRequest

Tomas Gomez
Reply

Hi,

I copy the information about an error as informed at the log. It was triggered during the normal working of a live public DW site. It looks related to an authentication process, but not special permissions are needed to visit the url that triggered the error.

Does anybody have a clue about the reason and how to fix it?

Regards,
Tomas

EVENT INFORMATION
Action - Unhandled
Category - Health
Level - Error
User Name - System
Url - /myproductgroup
Description - Nullable object must have a value.
Exception type - InvalidOperationException

FILE LOG INFORMATION
Log content
2021-06-29 09:18:45.945: Nullable object must have a value.
System.InvalidOperationException: Nullable object must have a value.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at Dynamicweb.Frontend.UrlHandling.UrlHelper.CheckResetNeeded()
at Dynamicweb.Admin.GlobalAsaxHandlerProxy.Application_AuthenticateRequest(Object sender, EventArgs e)
at Dynamicweb.Admin.Global.Application_AuthenticateRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2021-06-29 09:18:45.960: Request headers: [   "Accept",   "Accept-Encoding",   "Host",   "User-Agent" ]
2021-06-29 09:18:45.960: Request item keys: [   "alternateUrlKey",   "Dynamicweb.Environment.Web",   "owin.Environment",   "ExecutionTableMapper",   "MS_HttpRequestMessage" ]
2021-06-29 09:18:45.960: Request form: []


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I think this is a concurrency issues that happens rarely and was fixed on 21/05/2021. So ensure you have a 9.10 Dynamicweb.dll with a build date after this day.

Votes for this answer: 1
 
Tomas Gomez
Reply

Thanks Nicolai,

Would it be enough to change the Dynamicweb.dll or is it needed to update all DW?

Regards,
Tomas

 
Nicolai Pedersen
Reply

Just that dll should be enough

 
Tomas Gomez
Reply

I replaced the Dynamicweb.dll with the latest version of this dll in DW 9.10.11

An exception is thrown. The Dynamicweb.Frontend.DynamicwebRouteHandler class is missing. There is not such a Dynamicweb.Frontend.dll, and searching into the docs this class should be inside the Dynamicweb.dll (https://doc.dynamicweb.com/api/html/20a45616-536d-9f6b-596d-7d379c083d22.htm)

What am I missing?

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Dynamicweb.Frontend is the namespace inside the Dynamicweb assembly - so yes, it is inside Dynamicweb.dll.

The DynamicwebRouteHandler is moved to Dynamicweb.AspNet in Dynamicweb 9.10. You must have upgraded Dynamicweb dll to 9.10.* on a solution running 9.9.* - you cannot do that. You have to update all to 9.10

Votes for this answer: 1
 
Tomas Gomez
Reply

Clear wisdom! You ascertain the reason and the solution.

Thanks again :-)

 

You must be logged in to post in the forum