2019年6月4日
摘要: 当Web.config中配置项值出现&特殊字符时,IIS或者其它读取Web.config时将无法读取到真正的值,其它特殊字符需要转义字符,加上\转义 阅读全文
posted @ 2019-06-04 18:02 leojon 阅读(434) 评论(0) 推荐(0) 编辑
  2016年8月22日
摘要: 当使用SqlParameter进行数据赋值时,如果数据类型是float类型,数据传递执行时值等于10.9添加到数据库就会变成10.89,解决此问题需要将数据类似float转换成decimal 如:new SqlParameter("@price",Entry.Price) Entry.Price属性 阅读全文
posted @ 2016-08-22 15:03 leojon 阅读(591) 评论(0) 推荐(0) 编辑
  2015年10月31日
摘要: 解决方法:在WCF服务接口修改服务协定如原来:[ServiceContract] public interface IMyService修改成[ServiceContract, XmlSerializerFormat(Style = OperationFormatStyle.Document... 阅读全文
posted @ 2015-10-31 14:09 leojon 阅读(237) 评论(0) 推荐(0) 编辑
  2015年9月10日
摘要: 如果你的服务MyService.svc 有重命名过,那必须要修改目录下文件类型是SVC的文件将以前的名称改成现在MyService的名称,否则将无法引用在重命名时不会去修改SVC里的原来配置名称 http://blog.csdn.net/xuemoyao/article/details/925989... 阅读全文
posted @ 2015-09-10 11:36 leojon 阅读(204) 评论(0) 推荐(0) 编辑
  2015年9月9日
摘要: 第一步:先选择需要取消权限的目录,然后在右边可以看到 “处理程序映射” 双击打开。第二步、打开右侧的“编辑功能权限”,将“脚本”这一项取消掉即可 阅读全文
posted @ 2015-09-09 11:29 leojon 阅读(828) 评论(0) 推荐(0) 编辑
  2015年9月8日
摘要: 异常信息:Self referencing loop detected for property 'md_agent' with type 'System.Data.Entity.DynamicProxies.md_agent_5F7CB7C257B9164D0D18D2B3E8DA3838A3ED... 阅读全文
posted @ 2015-09-08 14:22 leojon 阅读(4307) 评论(0) 推荐(0) 编辑
  2015年8月15日
摘要: //提供方法执行的上下文环境 OperationContext context = OperationContext.Current; //获取传进的消息属性 MessageProperties properties = context.IncomingMessageProperties; //获取 阅读全文
posted @ 2015-08-15 16:28 leojon 阅读(1035) 评论(0) 推荐(0) 编辑
  2015年8月5日
摘要: 在注册window服务时出现System.IO.FileNotFoundException: 未能加载文件或程序集“×××.exe”文件,或它的某个依赖项未能加载时,有可能是你的注册Microsoft.NET\Framework版本不一样, 当你的程序是在4.0下编译却用2.0去注册时就报此异常,解 阅读全文
posted @ 2015-08-05 20:27 leojon 阅读(399) 评论(0) 推荐(0) 编辑
  2015年5月4日
摘要: 1、在视图中自定义一个控件格式: @Html.TextBox("txtemail", "", new { id = "txt_UserName", style = "width:280px;height:34px", @class = "input-easyui", @readonly = true... 阅读全文
posted @ 2015-05-04 10:17 leojon 阅读(496) 评论(0) 推荐(0) 编辑
  2015年4月8日
摘要: 废话少说上代码:create FUNCTION [dbo].[Fun_getParent](@child VARCHAR(30))returns @t table(vid varchar(100),dt DATETIME) asbegin INSERT inTO @t select pid,GET... 阅读全文
posted @ 2015-04-08 14:22 leojon 阅读(1197) 评论(0) 推荐(0) 编辑