Opening Admin Plugins results in Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
1. nopCommerce version 4.1 (No Source Version)
2. A list of available plugins
3. Erorr message
4. Login in admin Configuration > Plugins (site_url/Admin/Plugin/List)
5. No modifications. Just downloaded and installed.

I was getting this error message after deplying my own source code, but it resulted in the same error, but with a different path. The code is trying to access a path that is not available and is probably the location of source code on a dev machine.

here is the error stack pertaining to OfficialFeedManager.cs



System.OperationCanceledException: The operation was canceled.
   at System.Net.HttpWebRequest.GetResponse()
   at Nop.Core.Plugins.OfficialFeedManager.GetDocument(String feedQuery, Object[] args) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs:line 25
   at Nop.Core.Plugins.OfficialFeedManager.GetVersions() in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs:line 70
   at Nop.Web.Areas.Admin.Factories.PluginModelFactory.PrepareOfficialFeedPluginSearchModel(OfficialFeedPluginSearchModel searchModel) in C:\andrei\nopcommerce\sources\src\Presentation\Nop.Web\Areas\Admin\Factories\PluginModelFactory.cs:line 249
   at Nop.Web.Areas.Admin.Factories.PluginModelFactory.PreparePluginsConfigurationModel(PluginsConfigurationModel pluginsConfigurationModel) in C:\andrei\nopcommerce\sources\src\Presentation\Nop.Web\Areas\Admin\Factories\PluginModelFactory.cs:line 357
   at Nop.Web.Areas.Admin.Controllers.PluginController.List() in C:\andrei\nopcommerce\sources\src\Presentation\Nop.Web\Areas\Admin\Controllers\PluginController.cs:line 111
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 94
   at Nop.Services.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Authentication\AuthenticationMiddleware.cs:line 79
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Nop.Core.Http.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Http\InstallUrlMiddleware.cs:line 51
   at Nop.Core.Http.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Http\KeepAliveMiddleware.cs:line 50
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
5 years ago
Thanks! Already reported
5 years ago
Hello
Is there a solution to this problem?
5 years ago
Yes, it's fixed
5 years ago
The following errors occurred.


CS0111 C# Type already defines a member called with the same parameter types


Error  CS0111  'OfficialFeedManager' already defines a member called 'MakeUrl' with the same parameter types  Nop.Core  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs  14  

Error  CS0111  'OfficialFeedManager' already defines a member called 'GetDocument' with the same parameter types  Nop.Core  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs  14  


Error  CS0102 The type 'PluginModelFactory' already contains a definition for '_localizedModelFactory'
Nop.Web  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Presentation\Nop.Web\Areas\Admin\Factories\PluginModelFactory.cs  35  

Error CS0121: The call is ambiguous between the following methods or properties:
'OfficialFeedManager.MakeUrl(string, params object[])' and
'OfficialFeedManager.MakeUrl(string, params object[])'
Nop.Core  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs  23  
5 years ago
itamturk wrote:
The following errors occurred.


CS0111 C# Type already defines a member called with the same parameter types


Error  CS0111  'OfficialFeedManager' already defines a member called 'MakeUrl' with the same parameter types  Nop.Core  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs  14  

Error  CS0111  'OfficialFeedManager' already defines a member called 'GetDocument' with the same parameter types  Nop.Core  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs  14  


Error  CS0102 The type 'PluginModelFactory' already contains a definition for '_localizedModelFactory'
Nop.Web  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Presentation\Nop.Web\Areas\Admin\Factories\PluginModelFactory.cs  35  

Error CS0121: The call is ambiguous between the following methods or properties:
'OfficialFeedManager.MakeUrl(string, params object[])' and
'OfficialFeedManager.MakeUrl(string, params object[])'
Nop.Core  C:\Users\İbrahim\Desktop\nopCommerce_4.10_Source\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs  23  


my fault.
I haven't deleted a copy.
4 years ago
Hi,

I also had the same error with nopcommerce 4.1
When I built at localhost, there was no error, but restoring the database and files from localhost to the server encountered this error. The nopcommerce 4.1 version is the nosource version I downloaded on nopcommerce

----------------

http://demo.nopdemo.info/Admin/Plugin/List


System.OperationCanceledException: The operation was canceled.
   at System.Net.HttpWebRequest.GetResponse()
   at Nop.Core.Plugins.OfficialFeedManager.GetDocument(String feedQuery, Object[] args) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs:line 25
   at Nop.Core.Plugins.OfficialFeedManager.GetVersions() in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Plugins\OfficialFeedManager.cs:line 70
   at Nop.Web.Areas.Admin.Factories.PluginModelFactory.PrepareOfficialFeedPluginSearchModel(OfficialFeedPluginSearchModel searchModel) in C:\andrei\nopcommerce\sources\src\Presentation\Nop.Web\Areas\Admin\Factories\PluginModelFactory.cs:line 249
   at Nop.Web.Areas.Admin.Factories.PluginModelFactory.PreparePluginsConfigurationModel(PluginsConfigurationModel pluginsConfigurationModel) in C:\andrei\nopcommerce\sources\src\Presentation\Nop.Web\Areas\Admin\Factories\PluginModelFactory.cs:line 357
   at Nop.Web.Areas.Admin.Controllers.PluginController.List() in C:\andrei\nopcommerce\sources\src\Presentation\Nop.Web\Areas\Admin\Controllers\PluginController.cs:line 111
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
   at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
   at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 94
   at Nop.Services.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Services\Authentication\AuthenticationMiddleware.cs:line 79
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
   at Nop.Core.Http.InstallUrlMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Http\InstallUrlMiddleware.cs:line 51
   at Nop.Core.Http.KeepAliveMiddleware.Invoke(HttpContext context, IWebHelper webHelper) in C:\andrei\nopcommerce\sources\src\Libraries\Nop.Core\Http\KeepAliveMiddleware.cs:line 50
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.