nopcommerce

JWT authentication issue with web api plugin in nopCommerce 4.30

会有一股神秘感。 提交于 2021-01-24 15:57:52
问题 I implement JWT authentication for authorization using access token or bearer token in web api plugin with nopCommerce version 4.30. It is working fine with default source of nopCommerce 4.30. But when i used my API plugin with any Seven spikes plugins (SevenSpikes.Nop.Plugins.AjaxCart, SevenSpikes.Nop.Plugins.QuickView, etc), its not working and threw exception like "System.ArgumentException: 'Duplicate Controller with DuplicateControllerName:NopAjaxCartShoppingCart is already added'". Here

JWT authentication issue with web api plugin in nopCommerce 4.30

心不动则不痛 提交于 2021-01-24 15:52:33
问题 I implement JWT authentication for authorization using access token or bearer token in web api plugin with nopCommerce version 4.30. It is working fine with default source of nopCommerce 4.30. But when i used my API plugin with any Seven spikes plugins (SevenSpikes.Nop.Plugins.AjaxCart, SevenSpikes.Nop.Plugins.QuickView, etc), its not working and threw exception like "System.ArgumentException: 'Duplicate Controller with DuplicateControllerName:NopAjaxCartShoppingCart is already added'". Here

JWT authentication issue with web api plugin in nopCommerce 4.30

空扰寡人 提交于 2021-01-24 15:52:14
问题 I implement JWT authentication for authorization using access token or bearer token in web api plugin with nopCommerce version 4.30. It is working fine with default source of nopCommerce 4.30. But when i used my API plugin with any Seven spikes plugins (SevenSpikes.Nop.Plugins.AjaxCart, SevenSpikes.Nop.Plugins.QuickView, etc), its not working and threw exception like "System.ArgumentException: 'Duplicate Controller with DuplicateControllerName:NopAjaxCartShoppingCart is already added'". Here

JWT authentication issue with web api plugin in nopCommerce 4.30

六眼飞鱼酱① 提交于 2021-01-24 15:48:33
问题 I implement JWT authentication for authorization using access token or bearer token in web api plugin with nopCommerce version 4.30. It is working fine with default source of nopCommerce 4.30. But when i used my API plugin with any Seven spikes plugins (SevenSpikes.Nop.Plugins.AjaxCart, SevenSpikes.Nop.Plugins.QuickView, etc), its not working and threw exception like "System.ArgumentException: 'Duplicate Controller with DuplicateControllerName:NopAjaxCartShoppingCart is already added'". Here

[转][C#]常用开源项目

两盒软妹~` 提交于 2020-03-24 23:52:07
[转][C#]常用开源项目 本文来自: http://www.cnblogs.com/sunxuchu/p/6047589.html Json.NET http://www.newtonsoft.com/json https://github.com/JamesNK/Newtonsoft.Json Json .NET 是一个读写Json效率比较高的.Net框架.Json .Net 使得在.Net环境下使用Json更加简单。通过Linq To JSON可以快速的读写Json,通过JsonSerializer可以序列化你的.Net对象。让你轻松实现.Net中所有类型(对象,基本数据类型等)和Json的转换。 Math.NET http://www.mathdotnet.com/ https://github.com/mathnet Math.NET的目标是为提供一款自身包含清晰框架的符号运算和数学运算/科学运算,它是C#开发的开源类库。Math.NET含了一个支持线性代数的解析器,分析复杂微分,解方程等等功能。 Faker.Net https://github.com/jonwingfield/Faker.Net 开发的时候是不是为测试数据烦恼?Faker.Net可以非常方便帮你生成大批量测试数据。例如人员表里面的姓名、性别什么的。 Html Agility Pack http:/

WCF Services in ASP MVC PRoject (NopCommerce)

时光怂恿深爱的人放手 提交于 2020-02-25 13:46:47
问题 I am trying to add a WCF Service to the Admin Folder of NopCommerce . I have done the same thing for the web folder and every thing goes Well, but for Admin folder when I try to execute I have this Error : It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. In the XML File here is the problem :< serviceHostingEnvironment

WCF Services in ASP MVC PRoject (NopCommerce)

爷,独闯天下 提交于 2020-02-25 13:46:28
问题 I am trying to add a WCF Service to the Admin Folder of NopCommerce . I have done the same thing for the web folder and every thing goes Well, but for Admin folder when I try to execute I have this Error : It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. In the XML File here is the problem :< serviceHostingEnvironment

How to Redirect in Mvc Action from OrderPlaceEvent in nopCommerce

邮差的信 提交于 2020-02-01 08:26:25
问题 I am using nopCommerce3.40 I am using OrderPlacedEvent of nopCommerce. I want to redirect to my controller action from this void method. public class OrderPlaceEvents : IConsumer<OrderPlacedEvent> { public void HandleEvent(OrderPlacedEvent eventMessage) { //some code for redirect to controller action } } how to redirect in mvc action from HandleEvent method 回答1: It's not possible. Furthermore, you should not do it because some further actions related to order placement are invoked. 回答2: As

The name 'T' does not exist in the current context while overriding view in a nopCommerce plugin

不羁岁月 提交于 2020-01-25 09:27:06
问题 First, for context, I'm working on a Plugin for nopCommerce. I am overriding a view (namely \Presentation\Nop.Web\Administration\Views\Currency\List.cshtml ) in my plugin by creating a custom view engine. Now though that's successful, I'm having trouble loading my customized view. One of probably several errors when app tries to load my view: Apparently not very experienced with front-end so subsequently with how views work. Edit: Created View doesn't recognize sln project references to