Why I am getting this error? I uninstalled a plugin and now I am getting this error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 2.2.4-servicing-10062 initialized 'NopObjectContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: MaxPoolSize=128 using lazy-loading proxies
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (48ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT [t].[Id], [t].[Enabled], [t].[LastEndUtc], [t].[LastStartUtc], [t].[LastSuccessUtc], [t].[Name], [t].[Seconds], [t].[StopOnError], [t].[Type]
      FROM [ScheduleTask] AS [t]
      WHERE [t].[Enabled] = 1
      ORDER BY [t].[Seconds] DESC
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (8ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT [s].[Id], [s].[CompanyAddress], [s].[CompanyName], [s].[CompanyPhoneNumber], [s].[CompanyVat], [s].[DefaultLanguageId], [s].[DisplayOrder], [s].[Hosts], [s].[Name], [s].[SslEnabled], [s].[Url]
      FROM [Store] AS [s]
      ORDER BY [s].[DisplayOrder], [s].[Id]
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (21ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT [s].[Id], [s].[Name], [s].[StoreId], [s].[Value]
      FROM [Setting] AS [s]
      ORDER BY [s].[Name], [s].[StoreId]
............


Application startup exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions.AuthenticateAsync(HttpContext context, String scheme)
   at Nop.Services.Authentication.CookieAuthenticationService.GetAuthenticatedCustomer() in D:\nopCommerce\gite\src\Libraries\Nop.Services\Authentication\CookieAuthenticationService.cs:line 101
   at Nop.Web.Framework.WebWorkContext.get_CurrentCustomer() in D:\nopCommerce\gite\src\Presentation\Nop.Web.Framework\WebWorkContext.cs:line 210
   at Nop.Web.Framework.WebWorkContext.get_WorkingLanguage() in D:\nopCommerce\gite\src\Presentation\Nop.Web.Framework\WebWorkContext.cs:line 359
   at Nop.Services.Localization.LocalizationService.GetResource(String resourceKey) in D:\nopCommerce\gite\src\Libraries\Nop.Services\Localization\LocalizationService.cs:line 311
   at Nop.Services.Plugins.PluginService.InstallPlugins() in D:\nopCommerce\gite\src\Libraries\Nop.Services\Plugins\PluginService.cs:line 439
   at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration, IHostingEnvironment hostingEnvironment) in D:\nopCommerce\gite\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 97
   at Nop.Web.Startup.ConfigureServices(IServiceCollection services) in D:\nopCommerce\gite\src\Presentation\Nop.Web\Startup.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[6]
      Application startup exception
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions.AuthenticateAsync(HttpContext context, String scheme)
   at Nop.Services.Authentication.CookieAuthenticationService.GetAuthenticatedCustomer() in D:\nopCommerce\gite\src\Libraries\Nop.Services\Authentication\CookieAuthenticationService.cs:line 101
   at Nop.Web.Framework.WebWorkContext.get_CurrentCustomer() in D:\nopCommerce\gite\src\Presentation\Nop.Web.Framework\WebWorkContext.cs:line 210
   at Nop.Web.Framework.WebWorkContext.get_WorkingLanguage() in D:\nopCommerce\gite\src\Presentation\Nop.Web.Framework\WebWorkContext.cs:line 359
   at Nop.Services.Localization.LocalizationService.GetResource(String resourceKey) in D:\nopCommerce\gite\src\Libraries\Nop.Services\Localization\LocalizationService.cs:line 311
   at Nop.Services.Plugins.PluginService.InstallPlugins() in D:\nopCommerce\gite\src\Libraries\Nop.Services\Plugins\PluginService.cs:line 439
   at Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration, IHostingEnvironment hostingEnvironment) in D:\nopCommerce\gite\src\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ServiceCollectionExtensions.cs:line 97
   at Nop.Web.Startup.ConfigureServices(IServiceCollection services) in D:\nopCommerce\gite\src\Presentation\Nop.Web\Startup.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
Hosting environment: Production
Content root path: h:\root\home\maliknasir-001\www\mysite
Now listening on: http://127.0.0.1:17056
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://maliknasir-001-site1.dtempurl.com/categories  
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://maliknasir-001-site1.dtempurl.com/categories  
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 64
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 69
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000001": An unhandled exception was thrown by the application.
System.ArgumentNullException: Value cannot be null.
Parameter name: values
   at System.String.Join(String separator, IEnumerable`1 values)
   at Microsoft.Extensions.RazorViews.BaseView.EndWriteAttribute()
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLP977SB3C6J", Request id "0HLP977SB3C6J:00000001": An unhandled exception was thrown by the application.
System.ArgumentNullException: Value cannot be null.
Parameter name: values
   at System.String.Join(String separator, IEnumerable`1 values)
   at Microsoft.Extensions.RazorViews.BaseView.EndWriteAttribute()
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLP977SB3C6L", Request id "0HLP977SB3C6L:00000001": An unhandled exception was thrown by the application.
System.ArgumentNullException: Value cannot be null.
Parameter name: values
   at System.String.Join(String separator, IEnumerable`1 values)
   at Microsoft.Extensions.RazorViews.BaseView.EndWriteAttribute()
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLP977SB3C6M", Request id "0HLP977SB3C6M:00000001": An unhandled exception was thrown by the application.
System.ObjectDisposedException: The response has been aborted due to an unhandled application exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: values
   at System.String.Join(String separator, IEnumerable`1 values)
   at Microsoft.Extensions.RazorViews.BaseView.EndWriteAttribute()
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ThrowResponseAbortedException()
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.InitializeResponseAsync(Int32 firstWriteByteCount)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.WriteAsync(ReadOnlyMemory`1 data, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Write(String value)
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 128.5692ms 500
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 128.5657ms 500
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 128.578ms 500
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 128.6145ms 500
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 70
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 58
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLP977SB3C6O", Request id "0HLP977SB3C6O:00000001": An unhandled exception was thrown by the application.
System.OverflowException: Arithmetic operation resulted in an overflow.
   at System.IO.StreamWriter.Write(String value)
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.792ms 500
fail: Microsoft.AspNetCore.Server.Kestrel[13]
      Connection id "0HLP977SB3C6N", Request id "0HLP977SB3C6N:00000001": An unhandled exception was thrown by the application.
System.ArgumentOutOfRangeException: Index and count must refer to a location within the buffer.
Parameter name: chars
   at System.Text.EncoderNLS.GetBytes(Char[] chars, Int32 charIndex, Int32 charCount, Byte[] bytes, Int32 byteIndex, Boolean flush)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Write(String value)
   at Microsoft.AspNetCore.Hosting.Views.ErrorPage.ExecuteAsync()
   at Microsoft.Extensions.RazorViews.BaseView.ExecuteAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.8352ms 500
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6O", Request id "0HLP977SB3C6O:00000001": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000001": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6L", Request id "0HLP977SB3C6L:00000001": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6N", Request id "0HLP977SB3C6N:00000001": the application completed without reading the entire request body.
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 3169.5567ms - InternalServerError
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 3169.5446ms - InternalServerError
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 3169.5502ms - InternalServerError
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 3169.5631ms - InternalServerError
info: System.Net.Http.HttpClient.default.LogicalHandler[101]
      End processing HTTP request after 3184.2101ms - InternalServerError
info: System.Net.Http.HttpClient.default.LogicalHandler[101]
      End processing HTTP request after 3184.2174ms - InternalServerError
info: System.Net.Http.HttpClient.default.LogicalHandler[101]
      End processing HTTP request after 3184.208ms - InternalServerError
info: System.Net.Http.HttpClient.default.LogicalHandler[101]
      End processing HTTP request after 3184.2032ms - InternalServerError
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 69
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 58.3683ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000002": the application completed without reading the entire request body.
info: System.Net.Http.HttpClient.default.LogicalHandler[100]
      Start processing HTTP request POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 69
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.3702ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000003": the application completed without reading the entire request body.
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 21.8212ms - InternalServerError
info: System.Net.Http.HttpClient.default.LogicalHandler[101]
      End processing HTTP request after 22.057ms - InternalServerError
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 58
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.192ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000004": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 69
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.2496ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000005": the application completed without reading the entire request body.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://maliknasir-001-site1.dtempurl.com/categories  
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.1932ms 500 text/html; charset=utf-8
info: System.Net.Http.HttpClient.default.LogicalHandler[100]
      Start processing HTTP request POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 69
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.2798ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000007": the application completed without reading the entire request body.
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 21.261ms - InternalServerError
info: System.Net.Http.HttpClient.default.LogicalHandler[101]
      End processing HTTP request after 21.4378ms - InternalServerError
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://maliknasir-001-site1.dtempurl.com/scheduletask/runtask application/x-www-form-urlencoded 69
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 0.2884ms 500 text/html; charset=utf-8
info: Microsoft.AspNetCore.Server.Kestrel[32]
      Connection id "0HLP977SB3C6K", Request id "0HLP977SB3C6K:00000008": the application completed without reading the entire request body.
4 years ago
I am using hosting https://www.smarterasp.net/ nopcommerce recommended partner.
4 years ago
If this is default source code of nopcommerce then create ticket into smarterasp.net regarding this issue
4 years ago
I don't see how this issue would be related to the hosting.  It is odd to see all the different exceptions in there, but I'd think any mention of HTML/response issues like "the application completed without reading the entire request body", are because the other preceding exceptions (e.g. "Object reference not set to an instance of an object") cause the page not to return results, and are thus the root cause.

For the plugin that you uninstalled, be sure to delete the plugin's folder, because some plugins don't check if they are 'active', and they will still override the core functionality.
4 years ago
I am able to fix it by removing the uninstalled plugin from plugins folder and make sure it is disable in the database.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.