2014年2月25日

[转载]WCF序列化65536大小限制的问题

摘要: 错误:The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:GetResult. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536' 阅读全文

posted @ 2014-02-25 17:18 iackjee 阅读(657) 评论(0) 推荐(0) 编辑

Win2003+iis6部署MVC4网站的方法

摘要: 1.服务器上安装SP2 和 IIS62.安装.Net Framework3.5 SP1(完整安装包,包含2.0 2.0SP1,237MB那个安装包)3.安装.Net Framework4.04.安装WindowsServer2003-KB968930-x86-CHS.exe,PowerShell 2.0的补丁(下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=4045)5.安装wic_x86_chs.exe,windows图像处理组件(下载地址:http://www.microsoft.com/zh-cn/download 阅读全文

posted @ 2014-02-25 14:50 iackjee 阅读(426) 评论(0) 推荐(0) 编辑

[转载]c# winform 获取当前程序运行根目录

摘要: 1 // 获取程序的基目录。 2 System.AppDomain.CurrentDomain.BaseDirectory 3 4 5 // 获取模块的完整路径。 6 System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 7 8 9 // 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。10 System.Environment.CurrentDirectory11 12 13 // 获取应用程序的当前工作目录。14 System.IO.Directory.GetCurrentDirectory(... 阅读全文

posted @ 2014-02-25 11:42 iackjee 阅读(154) 评论(0) 推荐(0) 编辑

[转载]MongoDB设置访问权限、设置用户

摘要: MongoDB已经使用很长一段时间了,基于MongoDB的数据存储也一直没有使用到权限访问(MongoDB默认设置为无权限访问限制),今天特地花了一点时间研究了一下,研究成果如下:注:研究成果基于Windows平台MongoDB在本机安装部署好后1. 输入命令:show dbs,你会发现它内置有两个数据库,一个名为admin,一个名为local。local好像没啥用,如果哪位在使用过程中发现了这个local表的用途,希望能够留言提醒,那我们就专心来说说admin表2. 输入命令:use admin,你会发现该DB下包含了一个system.user表,呵呵,没错,这个表就等同于MsSql中的用户 阅读全文

posted @ 2014-02-25 11:40 iackjee 阅读(202) 评论(0) 推荐(0) 编辑

导航