摘要: 报错信息如下:Server Error in '/MyWcfService' Application.When 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' is set to true in configuration, the endpoints are required to specify a relative address. If you are specifying a relative listen URI on the endpoint, 阅读全文
posted @ 2013-11-28 15:49 爽口辣萝卜 阅读(2974) 评论(0) 推荐(0) 编辑
摘要: 如下方法调用RenderPartial:报“No overload for method 'Write' takes 0 arguments”的错误;@if (@Model != null && @Model.ProductBaseInfo != null)} else{ @Html.Partial("PartialView/_ProductNotFound")}@if (@Model != null && @Model.ProductBaseInfo != null){} else{ @{Html.RenderPartial 阅读全文
posted @ 2013-11-04 15:18 爽口辣萝卜 阅读(815) 评论(0) 推荐(0) 编辑
摘要: 今天学习ASP.NET MVC时,其中介绍了一种如何解决一种叫Cross-site request forgery网站攻击的方法(链接:Stephen Walther博客http://stephenwalther.com/archive/2009/03/03/chapter-6-understanding-html-helpers.aspx)。Cross-site request forgery简单来说就是利用受信任的网站A使用cookie做安全认证时,恶意网站可以偷偷的用一个A网站的链接(比如图片)或者脚本,在用户不知情的情况下想网站A提交Http请求,进行相关操作,从而达到起非法目的。关于 阅读全文
posted @ 2013-05-16 13:48 爽口辣萝卜 阅读(462) 评论(0) 推荐(0) 编辑