代码改变世界

Could not load the assembly 'App_Web_cwclgcuu'. Make sure that it is compiled before accessing the page.

2015-09-29 11:55 by 步丈天涯, 441 阅读, 0 推荐, 收藏, 编辑
摘要:将网站迁移到windows server 2012 R2(64 bit), IIS 6.2(build 9200)上,爆出这个错误。解决:右键相应的application pool,选择“Set Application Pool Defaults”菜单,找到Enable 32-Bit Applica... 阅读全文

Task could not find "AxImp.exe" using the SdkToolsPath "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\"

2015-06-12 11:53 by 步丈天涯, 2337 阅读, 0 推荐, 收藏, 编辑
摘要:本机v7.0A目录里没有AxImp.exe,无奈只能去官网下了个V7.1的。安装完V7.1后,去“开始-所有程序-Microsoft Windows SDK v7.1”里找到Windows SDK 7.1 Command Prompt,右键-以管理员身份 运行它。运行之后,依次执行以下命令:cd S... 阅读全文

在IIS7.5上配置Https,SSL

2012-08-05 20:57 by 步丈天涯, 26308 阅读, 1 推荐, 收藏, 编辑
摘要:本博文目的:在非服务器、而且没有证书颁发机构(Certificate Authority简称CA)的开发环境中,配置HTTPS,SSL用于测试或学习一、建造测试网站1.在桌面上建立个文件夹,然后再在文件夹里新建个html文件2.打开IIS,添加网站,如图:3.访问网站http://localhost:8090,如图:二、创建证书IIS里的Server Certificates提供了5种创建证书的方法,见下图:1.其中Create a Self-Signed Server Certificate选项,创建自签名服务器证书,目的在于: a)解决第三方证书问题。 b)远程管理 IIS。 c)在... 阅读全文

DTS,复制到同一服务器下

2012-07-17 15:58 by 步丈天涯, 239 阅读, 0 推荐, 收藏, 编辑
摘要:打开DTS,在DTS 2000 Package Designer界面的工具栏里,选择Package-Save as-重新命名DTS包 阅读全文

SSL Settings-Client certificates

2012-07-12 19:01 by 步丈天涯, 675 阅读, 0 推荐, 收藏, 编辑
摘要:配置https的过程如下:http://learn.iis.net/page.aspx/144/how-to-set-up-ssl-on-iis/当配置SSL的时候,遇到个问题,Client certificates有3个选项:Ignore,Accept,Require具体解释如下:•Accept client certificatesUsers can access the resource with a client certificate, but the certificate is not required.•Require client certificatesThe server 阅读全文

添加IIS_IUSRS

2012-07-11 19:11 by 步丈天涯, 1865 阅读, 0 推荐, 收藏, 编辑
摘要:发布网站到IIS7.5时,遇到个错误,如下:Server Error in Application "application name"HTTP Error 500.19 – Internal Server Error HRESULT: 0x80070005Description of HRESULTThe requested page cannot be accessed because the related configuration data for the page is invalid. 解决方法,添加一个IIS_IUSRS组:IIS7.5 -> Your 阅读全文

处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”

2012-07-11 19:06 by 步丈天涯, 317 阅读, 0 推荐, 收藏, 编辑
摘要:发布网站到IIS7.5的时候,遇到个HTTP错误,500.21,Internal Server Error原因是.net framework 安装在前,IIS安装在后。在控制台里重新跑一下aspnet_regiis.exe,即aspnet_regiis.exe -i该exe在Win7的目录如下:C:\Windows\Microsoft.NET\Framework\v4.0.30319重新安装.net framework 成功之后,重启一下IIS的服务即可参考资料:http://support.microsoft.com/kb/943891 阅读全文

No error message available, result code: E_FAIL(0x80004005)

2012-07-05 16:50 by 步丈天涯, 2422 阅读, 0 推荐, 收藏, 编辑
摘要:做上传Excel文件这个功能的时候,遇到个奇怪的事情。我的程序里上传Excel文件的过程是这样的:1.将用户选择上传的文件保存到服务器上2.使用Provider=Microsoft.Ace.OLEDB.12.0 打开这个文件,然后读取文件内容,加载到DataTable里关键在于上面第2步,本地开发环境怎么debug都是没问题的;一旦发布到服务器上,文件size小一点的没有问题,大于大约1M的话,就会报错,错误有2个(不是同时出现):a)external table is not in the expected formatb)No error message available, result 阅读全文

在Console Application项目中,引用System.Web不成功的解决方法

2012-07-02 14:57 by 步丈天涯, 344 阅读, 0 推荐, 收藏, 编辑
摘要:在solution property页面,把Target Framework从.NET Framework 4 Client Profile改为.NET Framework 4。http://blogs.msdn.com/b/jgoldb/archive/2010/04/12/what-s-new-in-net-framework-4-client-profile-rtm.aspx 阅读全文

.NET设计规范-笔记-1

2011-09-21 23:28 by 步丈天涯, 351 阅读, 0 推荐, 收藏, 编辑
摘要:1.Qualities of a Well-Designed Framework: 1.1 Simple You can always add;you cannot ever remove. 1.2 Expensive to Design Framework design should be explicit and distinct in the development process. It must be explicit because it needs to be appropriately planned,staffed,and executed. It... 阅读全文