摘要: WebService部署到服务器上的时候,出现如下错误: Server Error in '/PHDAPI' Application.-------------------------------------------------------------------------------- Could not load file or assembly 'PHDAPINET' or one o... 阅读全文
posted @ 2013-03-04 18:38 中小刀 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 在将vs 2003转换为2008时web项目没法转换,提示项目文件不存在的解决方法: 将项目文件 .sln 文件中的 “http://localhost/” 删除,再升级 阅读全文
posted @ 2013-03-04 18:36 中小刀 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 打开一个别人曾经做的项目,里面用来三方控件,本机没有安装此控件,只是添加的相应的dll,结果导致了LC.exe错误:"Lc.exe已退出 代码为-1 "解决方法:1、把项目文件夹下Properties文件夹下的licenses.licx文件删除,重新编译即可;2、文本方式打开*.csproj文件,在文件中查找licenses.licx字样,删除对应节点。注意:还有一种情况就是Properties文件夹下已经没有licenses.licx文件了,程序还是报这个错,这个时候你只需要重命名一个空的txt文件为licenses.licx再放入Properties文件夹,问题也可解决 阅读全文
posted @ 2013-03-04 18:26 中小刀 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 当需要在浏览器中直接访问webservice中的方法时,需要做如下修改 <webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> <add name="HttpSoap"/> <add name="HttpSoap12"/> </protocols... 阅读全文
posted @ 2013-02-25 15:00 中小刀 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 为了将Office文档转换为PDF文件,在网上找了些工具类,但转换效果不理想,采用office自带的功能能比较好的实现转换。首先需要安装 SaveAsPDFandXPS.exe 插件在工程中添加com引用,如下图代码如下: 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: 5: using Microsoft.Office.Core; 6: using Word = Microsoft.Office.Interop.Word; 7: using Excel ... 阅读全文
posted @ 2013-02-21 13:46 中小刀 阅读(1609) 评论(1) 推荐(0) 编辑
摘要: 那么多的数据库,那么多的连接字符串,怎么记得住,google了一下,嘿嘿,这里有个好东西: http://www.connectionstrings.com/ 有图为证: 阅读全文
posted @ 2013-02-04 10:09 中小刀 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1 [Code] 2 3 function IsDotNetDetected(version: string; service: cardinal): boolean; 4 5 // Indicates whether the specified version and service pack of the .NET Framework is installed. 6 7 // 8 9 // version -- Specify one of these strings for the required .NET Framework version: 1... 阅读全文
posted @ 2013-01-23 19:45 中小刀 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 做了一年生意,又回来写代码了!用博客记录点滴!! 阅读全文
posted @ 2013-01-20 16:06 中小刀 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 在初次使用 Oracle 时,用ado.net连接数据,出现 “Oracle.DataAccess.Client.OracleConnection”的类型初始值设定项引发异常 的提示:解决方法:将对应版本的 OraOps11W.dll 拷到应用程序目录。 阅读全文
posted @ 2013-01-16 15:54 中小刀 阅读(1726) 评论(0) 推荐(0) 编辑
摘要: menu block功能说明:显示当前目录的下级目录。使用方法:一、安装menu block模块;二、在管理>站点构建>区块中添加一个menu block;三、在区块中显示刚才添加的区块。 阅读全文
posted @ 2011-04-16 16:43 中小刀 阅读(552) 评论(0) 推荐(0) 编辑