上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 52 下一页
摘要: 开发背景:使用VS2008开发SharePoint2007的webparts问题描述:使用Feature部署webpart后,手动激活和反激活的时候,系统报错并无法执行。解决办法:由于这个Feature执行的时候,部署了3个webpart,我们需要使用Process Monitor工具来查看是那个webpart出了问题。Process Monitor是微软提供的系统调试工具集合,可以从这里下载www.sysinteranls.com或者http://www.cnblogs.com/mybook/archive/2012/11/06/2757597.html下载。手工执行Feature时,Pro 阅读全文
posted @ 2013-03-15 10:49 风影极光 阅读(769) 评论(0) 推荐(1) 编辑
摘要: 使用托管方法来实现。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using System.IO;namespace ALU.C0370A.SimuDID.Common{ public class FileStatus { [DllImport("kernel32.dll")] private static extern IntPtr _lopen(... 阅读全文
posted @ 2013-03-14 16:12 风影极光 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 环境描述:SharePoint 2007,IIS7,win 2008 server问题描述:在SharePoint文档库中,上传的附件名字中包含+号时,使用url在浏览器中访问时,提示文件找不到,即使把+号转换为url编码%2B也无效。访问后的页面错误信息如下所示:HTTP 404 Not Found.解决方案:经测试在SharePoint2007和IIS6的环境下,访问此类文件正常。方式一:修改IIS7的配置文件applicationHost.config方式二:使用这个命令将会使所有的站点都生效:Appcmd set config "Default Web Site" 阅读全文
posted @ 2013-03-13 16:07 风影极光 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-03-13 13:40 风影极光 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 问题描述:using System;using System.Collections.Generic;using System.Text;using Microsoft.SharePoint; namespace NCR{ class NCRListEventHandler: SPItemEventReceiver { /// <summary> /// Update NCRPrint calculated column so ID column is not blank. Without this new items have ID empty in ... 阅读全文
posted @ 2013-01-23 15:10 风影极光 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 在SharePoint2007下测试通过。使用SharePoint对象模型:SPFieldCollection collFields = list.Fields;//Update the calculated columnif (collFields.ContainsField("Document ID")){ collFields["Document ID"].Update();}使用Powershell:[System.Reflection.Assembly]::LoadWithPartialName(”Microsoft.SharePoint”)# 阅读全文
posted @ 2013-01-10 15:06 风影极光 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 删除群组:错误的做法:foreach (SPGroup group in web.SiteGroups){ if (group.Name.ToLower() == grpName.ToLower()) { web.SiteGroups.Remove(grpName); }} 原因:当我们增加或删除集合中的条目(Item)时候,Enumerator枚举不知道数据集合中有多少个条目(Item)。正确的做法:for (int index = 0; index <= web.SiteGroups.Count... 阅读全文
posted @ 2013-01-10 13:31 风影极光 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 手工方式:前提分别在site collection和Site Feature中启用Feature:Office SharePoint Server Publishing。比如两个feature都启用。由于此Feature创建了Pages library。如果此Feature没有启用,你在设置欢迎页面的时候,将会收到如下报错信息:The site is not valid. The 'Pages' document library is missing.如果相关的Feature没有启用,你将不能看到以上画面,你可以通过固定的页面地址来进行访问。比如:http://Mingle/s 阅读全文
posted @ 2013-01-08 16:38 风影极光 阅读(2696) 评论(1) 推荐(1) 编辑
摘要: 错误信息:Failed to instantiate file "ALU.C0370A.Agora.WebPart\CDispFormWebPart.webpart" from module "WebPartPopulation": Source path "ALU.C0370A.Agora.WebPart\CDispFormWebPart.webpart" not found. at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(Str 阅读全文
posted @ 2013-01-06 16:57 风影极光 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 错误信息:Warning 2 Error updating JScript IntelliSense: C:\Martin\WebApplication1\WebApplication1\Script\jquery-1.4.4-vsdoc.js: 缺少对象 @ 7277:3 C:\Martin\WebApplication1\WebApplication1\Script\JScript1.js 1 1 WebApplication1原因剖析:经查证VS2008只支持1.4.1以下版本。<script type="text/javascript" src="S 阅读全文
posted @ 2012-12-31 15:12 风影极光 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 52 下一页