nopcommerce

serializing session state in asp.net

限于喜欢 提交于 2019-12-01 06:25:24
I'm trying to store session state in SQL instead of InProc in our nopcommerce 1.9 install. When I make the requisite changes to the web.config I get this error: Server Error in '/' Application. Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode. Description: An unhandled exception occurred during the execution of the current

serializing session state in asp.net

北城余情 提交于 2019-12-01 05:17:00
问题 I'm trying to store session state in SQL instead of InProc in our nopcommerce 1.9 install. When I make the requisite changes to the web.config I get this error: Server Error in '/' Application. Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state

基于nopcommerce b2c开源项目的精简版开发框架Nop.Framework

风格不统一 提交于 2019-11-30 11:53:37
 该开源项目是博客园的网友 徐领 发布的的一款基于b2c开源项目nopCommerce的开发框架,名叫Nop.Framework,去除了电商业务,保留基础功能。  .NET的开发人员应该都知道这个大名鼎鼎的高质量b2c开源项目-nopCommerce,基于EntityFramework和MVC开发,拥有透明且结构良好的解决方案,同时结合了开源和商业软件的最佳特性。官网地址:http://www.nopcommerce.com/,中文网:http://www.nopcn.com/。下载后前后端展示如下。如果你还未了解过该项目,建议从官网下载代码后在本地运行查看效果。   作者使用该框架开发过不少项目,总的来说,方便简洁,集成了.NET开发许多常用的组件和功能。一直想将它分享出来,但忙于工作而没有达成,最近也是有时间来写这篇文章,本文将展示如何提取该源码的精简框架并附上源码(基于nopCommerce3.9版本)。如果你想了解框架结构,通过该框架来开发项目,那么看一遍该文章是有价值的。前排提示:本框架源码已上传到GitHub:https://github.com/dreling8/Nop.Framework,有兴趣的可以关注该项目,后续会将其它的一些通用模块添加进去,如用户管理(IWorkContext 工作上下文)、插件功能、任务模块(taskservice)、日志、缓存、本地化等

Upgrade nopcommerce 2.8 to 3.10

自闭症网瘾萝莉.ら 提交于 2019-11-29 02:41:26
Hello, I am new in NopCommerce. I have change in Nop.Core, Nop.Data and Nop.Services. I have change also in some controller, Model and view of Nop.web. If i wish to upgrade nopcommerce version from 2.8 to 3.10 then, which way is easy and best. 1) I backup my file and get update. Once update is finished then, may i replace only those part which i have updated and differ from original code? May i add new method which is in my backup file but not in original code? 2) Or May i have to create new plugin or other way. [For example: I have change in product table and add new fields like size, age,

Very Close but not quite able to override core view nopcommerce

只谈情不闲聊 提交于 2019-11-28 08:20:03
问题 I have been reading some very good post from Wooncherk, Twisted Whisperer, and Alex Wolf. Their articles respectively (Wooncherk), (Twisted Whisperer), and (Alex Wolf) have been extremely informative but alas I'm just not as smart as the rest of the SO community and can't quite piece together what I'm missing. I am overriding a core view in the admin area...specifically the order edit view. The behavior I am seeing is that it does NOT hit the controller in my plugin but it DOES display my

Is there an equivalent to “HttpContext.Response.Write” in Asp.Net Core 2?

守給你的承諾、 提交于 2019-11-28 01:03:47
问题 I'm trying to append some HTML and Javascript content on page using ActionFilter in Asp.Net Core 2. In MVC, it's working with filterContext.HttpContext.Response.Write(stringBuilder.ToString()); but in Core it not working. I tried to implement with this: filterContext.HttpContext.Response.WriteAsync(stringBuilder.ToString()); But it make complete page to blank. I'm looking solution for nopCommerce 4.0 which build in Asp.Core 2.0 回答1: You can try something like this In a custom implementation

How to set a default page on an MVC app?

こ雲淡風輕ζ 提交于 2019-11-27 23:09:46
问题 I would like to have my base URL go to a specific category of an online store (a NopCommerce online store if that makes a difference). The URL of the category is: http://myUrl.com/c/6 After reading a few posts including Scott Gutherie's post about MVC routing I thought I could just add the following code to my Global.ascx.cs file: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); //register custom routes (plugins, etc) var

Upgrade nopcommerce 2.8 to 3.10

丶灬走出姿态 提交于 2019-11-27 16:59:12
问题 Hello, I am new in NopCommerce. I have change in Nop.Core, Nop.Data and Nop.Services. I have change also in some controller, Model and view of Nop.web. If i wish to upgrade nopcommerce version from 2.8 to 3.10 then, which way is easy and best. 1) I backup my file and get update. Once update is finished then, may i replace only those part which i have updated and differ from original code? May i add new method which is in my backup file but not in original code? 2) Or May i have to create new

Implementing Google Analytics in Mvc4/C#?

China☆狼群 提交于 2019-11-27 15:11:28
问题 Im trying to implement Google Analytics in my mvc website. First i tried creating a GA account, unfortunately i'm developing locally on localhost which isn't a valid site URL but i found a fix that will hopefully work here http://www.objectpartners.com/2011/05/26/setting-up-google-analytics-on-localhost/#comment-5960. Then i copied the generated JS tracking code and paisted it to a view. However i found this article (http://analyticsimpact.com/2011/01/20/google-analytics-on-intranets-and

Debugging Entity Framework SQL statements

大憨熊 提交于 2019-11-27 14:45:46
I am having a weird pattern of response time when using the Entity Framework for SQL communication. This is from my web host: This is from my local server: It's the increase in response time I am worried about. I have narrowed the problem down to one single line in code Nop.Data > EfRepository.cs > public void Insert(T entity) > _entities.Add(entity); Yes I know this very specific for the NopCommerce, but the point is really that I am looking her for help on how to debug this. Are there some events I can catch that display the SQL being executed? Or what other things can I do to find out more