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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
I am working on a new plugin on nopCommerce 4.10, I got my plugin install and created the table and columns. When I go to click Configure I get the famous Object reference not set to an instance of an object

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Nop.Web.Framework
  StackTrace:
   at Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions.<>c.<UseNopExceptionHandler>b__1_1(HttpContext context) in C:\Sandbox\nopCommerce_4.10_Source\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ApplicationBuilderExtensions.cs:line 83
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()

Here is a screenshot of my VS http://prntscr.com/nomcwo

I did all right so far with debugging but this one it does not point me to where the issue is.
4 years ago
The inner exception doesn't get carried on when the exception gets re-thrown here. This has been fixed in v4.2. You can find the fix here: https://github.com/nopSolutions/nopCommerce/blob/develop/src/Presentation/Nop.Web.Framework/Infrastructure/Extensions/ApplicationBuilderExtensions.cs#L86-L92
4 years ago
Thanks for your reply that fixed that issue.

cheers
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.