摘要: IIS7.0站点/虚拟目录中访问共享 目的:实现一个2008serve的IIS的虚拟目录(通过网络路径(UNC)的形式,共享在另外一个2008服务器上)准备工作 1.运行组策略编辑器(gpedit.msc)找到本地安全策略-本地策略-安全选项子项中的:网络安全:LAN管理器身份验证级别,默认是“没有定义”,更改为“发送LM和NTLM响应”。 2.共享资源服务器为 ShareServer,IP地址为:192.168.100.10; 3.Web服务器为 WebServer,IP地址为:192.168.100.20详细步骤:一、共享账户的建立1.1.在WebServer上建立一个用户名,方便使用该. 阅读全文
posted @ 2012-09-24 12:07 老肖想当外语大佬 阅读(1979) 评论(0) 推荐(0) 编辑
摘要: 近日收到oracle的.net组邮件,预计于九月或十月间发布纯托管代码的ODP.NET,以下是部分邮件原文We want to thank you for joining the Oracle Data Provider for .NET (ODP.NET) Managed Provider Beta program. We know many of you are excited about the upcoming managed provider.The Oracle team expects to release the beta in September or October. .. 阅读全文
posted @ 2012-08-08 09:18 老肖想当外语大佬 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 近日开发iso api,使用web api self host 作为服务端,ios 中请求使用asihttprequest做http get请求,只要一发出请求,服务端就出错,而且此错误无法用filter捕获经过调试发现是http请求头的User-Agent在作祟,其值居然是一堆奇怪的字符:“大彩ç½?? 1.0 ipod touch;iphone os 5.0.1;zh-cn”;在自定义User-Agent 为纯英文字符后,程序正常运行了,说明当http头包含未编码的中文字符时,web api 运行时就抛 阅读全文
posted @ 2012-06-16 15:35 老肖想当外语大佬 阅读(898) 评论(1) 推荐(0) 编辑
摘要: 早前在4月份,收到oracle的订阅邮件,标题为Coming Soon: Fully Managed ODP.NET Beta,说将发布纯托管代码的ODP.NET(Oracle Data Provider),并介绍了部分功能,英文就直接贴了:Oracle will release an 100% managed ODP.NET version on OTN soon. Develop with the same ODP.NET APIs you always have, but also take advantage of the fully managed provider's be 阅读全文
posted @ 2012-06-14 09:18 老肖想当外语大佬 阅读(1788) 评论(8) 推荐(0) 编辑
摘要: 近日将asp.net webapi 升级为rc版,突然发现之前beta版开发的程序不能正常工作了,用httpclient调用webapi时,action的参数总是空,无法获取传入的值,查阅了官方的论坛发现下面的帖子,http://blogs.msdn.com/b/jmstall/archive/2012/04/16/how-webapi-does-parameter-binding.aspxrc版的webapi参数绑定器分为两种:1.Model Binding2.Formatters其中Model Binding仅从url中取值,这点是与mvc的model binding有区别的,forma. 阅读全文
posted @ 2012-06-12 12:23 老肖想当外语大佬 阅读(4460) 评论(6) 推荐(3) 编辑
摘要: 当我们asp.net程序迁移到iis7时,如果页面cookie中存在未编码的汉字时,iis内核就会报错,错误信息如下:在多字节的目标代码页中,没有此 Unicode 字符可以映射到的字符。 (异常来自 HRESULT:0x80070459)对应的英文错误信息如下:No mapping for the Unicode character exists in the target multi-byte code page经过单元测试,确实如此,iis6下还未测试,不知是否会发生此情况解决方案:存储cookie值经过url编码即可,上代码HttpCookiecookie=newHttpCookie. 阅读全文
posted @ 2012-04-10 13:09 老肖想当外语大佬 阅读(7371) 评论(2) 推荐(0) 编辑
摘要: 打开IIS 7.5的applicationHost.config文件(C:\Windows\System32\inetsrv\config\applicationHost.config),在<applicationPools>中加一个 startMode=”AlwaysRunning”属性:<applicationPools> <add name="appname" managedRuntimeVersion="v4.0" startMode="AlwaysRunning" /></appli 阅读全文
posted @ 2012-02-06 15:39 老肖想当外语大佬 阅读(1346) 评论(3) 推荐(0) 编辑
摘要: 为了提高网站性能、和网站的负载能力,页面静态化是一种有效的方式,这里对于asp.net mvc3 构架下的网站,提供一种个人认为比较好的静态话方式。实现原理是通过mvc提供的过滤器扩展点实现页面内容的文本保存,直接上代码:View Code publicclassStaticFileWriteFilterAttribute:FilterAttribute,IResultFilter{publicvoidOnResultExecuted(ResultExecutedContextfilterContext){}publicvoidOnResultExecuting(ResultExecuting 阅读全文
posted @ 2012-01-05 10:50 老肖想当外语大佬 阅读(7426) 评论(31) 推荐(9) 编辑
摘要: PKCS 全称是 Public-KeyCryptography Standards ,是由 RSA 实验室与其它安全系统开发商为促进公钥密码的发展而制订的一系列标准,PKCS 目前共发布过 15 个标准。 常用的有:PKCS#7 Cryptographic Message Syntax StandardPKCS#10 Certification Request StandardPKCS#12 Personal Information Exchange Syntax StandardX.509是常见通用的证书格式。所有的证书都符合为Public KeyInfrastructure (PKI) . 阅读全文
posted @ 2011-12-26 16:55 老肖想当外语大佬 阅读(13393) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-12-21 08:55 老肖想当外语大佬 阅读(214) 评论(0) 推荐(0) 编辑