代码改变世界

不使用GACUtil.exe,如何部署和卸载程序集到GAC中

2009-12-30 19:12 by 程序开发助手, 2720 阅读, 0 推荐, 收藏, 编辑
摘要:在Windows Server 2008和Windows Server 2008 上, 部署程序集到GAC中时,如果以直接将程序集拖拽到GAC的方式部署,将会得到Access is denied的错误消息。解决方案:1.关闭UAC,重启服务器,此时重新部署程序集就OK了此方法有一个缺点,就是修改完UAC后,必须重启服务器。2.创建一个快捷方式,目标为:%SystemRoot%\explorer.e... 阅读全文

MOSS: SPListItem.Update() throws error Operation is not valid due to the current state of the object.

2009-12-29 13:09 by 程序开发助手, 868 阅读, 0 推荐, 收藏, 编辑
摘要:问题:在SPSecurity.RunWithElevatedPrivileges 代码块中执行SPListItem.Update(),SPSecurity.RunWithElevatedPrivileges ( () => { using (SPSite site = new SPSite("web url")) { using (var tempWeb = site.OpenWeb()) ... 阅读全文

创建TFS 团队项目失败 error: TF30004 TF30171 TF30224

2009-12-11 19:34 by 程序开发助手, 1113 阅读, 0 推荐, 收藏, 编辑
摘要:在windows server 2008 + sql server 2008+ wss v3 with sp2 上, 安装完TFS后,创建团队项目失败,出现如下错误:Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCr... 阅读全文

vs2008出错

2009-10-20 11:04 by 程序开发助手, 309 阅读, 0 推荐, 收藏, 编辑
摘要:今天VS2008突然出现如下错误,Project 'Console' could not be opened because the Microsoft Visual C# 2008 compiler could not be created. QueryService for '{74946829-37A0-11D2-A273-00C04F8EF4FF}' failed.在VS的命令提示行中执行... 阅读全文

c# 统计方法执行时间

2009-10-13 12:46 by 程序开发助手, 975 阅读, 1 推荐, 收藏, 编辑
摘要:在System.Diagnostics命名空间中dot net framework为我们提供了精确计算代码执行时间的类Stopwatch; Stopwatch stopWatch = new Stopwatch();stopWatch.Start();//要测试的方法stopWatch.Stop();Trace.WriteLine(stopWatch.ElapsedTicks.ToText()); 阅读全文

ASP.Net 文件上传大小限制

2009-09-05 18:29 by 程序开发助手, 1523 阅读, 0 推荐, 收藏, 编辑
摘要:IIS 7 默认文件上传大小时30M要突破这个限制:1. 修改IIS的applicationhost.config 打开 %windir%\system32\inetsrv\config\applicationhost.config 找到: 节点,这个节点默认没有 元素,IIS 7和IIS 7.5上... 阅读全文

CentOS 6.5 安装 VNC Server

2009-07-28 20:50 by 程序开发助手, 307 阅读, 0 推荐, 收藏, 编辑
摘要:1. 检查是否已经安装了VNC Serversudo rpm -q vnc-serversudo rpm -q tigervnc-server2. 安装或升级VNC Server在centos 5用sudo yum install vnc-server在centos 6要用sudo yum inst... 阅读全文
上一页 1 ··· 3 4 5 6 7