摘要: 今天自己动手安装TFS 2010,把安装过程全程记录下来: 1)安装其实很简单,一直点下去,界面如下: 2)现在安装成功了,下面就是配置了,首先看到配置中心里面有好几个选项: 基本—包含简单的版本,工作项,Bug这些的管理 标准单一服务器—相比基本的多了报表和分析服务 高级—比较完整的版本,包括了文档管理 下面就一步一步开始高级配置: 因为我这个服务器上暂时没有安装Reporti... 阅读全文
posted @ 2012-04-13 11:37 Statmoon 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 我今天在配置TFS 2010是出现了帐户冲突的错误,具体错误如下: 错误 [ 配置数据库 ] TF255507: 以下 SQL Server 登录的安全标识符(SID)与某个指定的域或工作组帐户冲突: NEWWEBSRV\Administrator。域或工作组帐户为: TESTWEB\Administrator。选择的用于承载 Team Foundation Server 数据库的服务器为:... 阅读全文
posted @ 2012-04-13 11:05 Statmoon 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: 如果在使用ADO.NET DbContext Generator生成类时出现如下错误: Running transformation: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFou... 阅读全文
posted @ 2012-04-01 10:50 Statmoon 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 创建MVC3项目出现了如下错误,错误详细信息如下: Could not create a new ASP.NET MVC project because the required component ‘NuGet Package Manager’ is missing or out of date. Please install it and try again. 解决方法如下: 打开Vi... 阅读全文
posted @ 2012-03-31 17:55 Statmoon 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 从今天开始,打算使用Windows Live Writer来更新博客,先来个图片测试下: 效果怎么样呢? 阅读全文
posted @ 2012-03-30 17:30 Statmoon 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 以前我们在ASP.NET MVC3中添加一个Controller时只有简单的一个选项,现在有一个名为"ASP.NET MVC 3 Tools Update"的小工具能够非常方便的添加Controller,现在在Add Controller对话框中能够自动的创建Create, Read, Update, Delete controller actions和对应正确的views,界面如下:关于ASP.NET MVC 3 Tools Update的介绍可以参考这里,微软下载地址如下:http://www.microsoft.com/download/en/details.aspx 阅读全文
posted @ 2012-03-21 15:04 Statmoon 阅读(642) 评论(0) 推荐(0) 编辑
摘要: Ribbon is a great new feature introduced by SharePoint 2010.It provides many actions for different users,but sometimes,we don't want to see it.So I'll introducehow to hide the ribbon for users with different privilegesin the following paragraph.First,open the site by SharePoint Designer,find 阅读全文
posted @ 2012-03-06 12:16 Statmoon 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 今天将一个在测试环境中测试通过的WSP解决方案部署到生产环境时出现如下错误:Event code: 3005 Event message: 发生了未处理的异常。 Event time: 2012/3/5 15:11:36 Event time (UTC): 2012/3/5 7:11:36 Event ID: 53e61463a2404804abd431d6c573ebd7 Event sequence: 75 Event occurrence: 1 Event detail code: 0 Application information: Application domain: /... 阅读全文
posted @ 2012-03-05 16:49 Statmoon 阅读(4118) 评论(0) 推荐(0) 编辑
摘要: We can using the following code to elevate permissions to modify user profile: 1 try 2 { 3 SPSecurity.RunWithElevatedPrivileges(delegate() 4 { 5 HttpContext curcon = HttpContext.Current; 6 using (SPSite mySite = new SPSite("http://YourSiteURL")) 7 { 8 SPSe... 阅读全文
posted @ 2012-03-05 16:18 Statmoon 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 今天在部署一个WSP解决方案的时候出现了如下的错误:中文:SharePoint 管理框架中的对象“SPSolutionLanguagePack Name=0”依赖其他不存在的对象。请确保已创建所有对象依赖项,然后重试此操作。English:An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0 ", depends on other objects which do not exist.Ensure that all of the objects depende 阅读全文
posted @ 2012-03-05 11:59 Statmoon 阅读(781) 评论(0) 推荐(0) 编辑
摘要: Sometimes we need to change the UIVersion of sharepoint site on sharepoint 2010 for it looks like sharepoint 2007 site,there are two ways to achieve.First one ,we can use SharePoint 2010 Management Shell tool,just put the following command:View Code 1 $myWeb = Get-SPWeb http://YourSiteURL2 $myWeb.UI 阅读全文
posted @ 2012-03-01 16:14 Statmoon 阅读(299) 评论(0) 推荐(0) 编辑
摘要: In SharePoint 2010 there are a number of object models that can be used by developers to access the server. The Client Object Model (Client OM) is a unified model which uses the same or similar programming concepts as the Server Object Model (Server OM).We can use it like this:Get all list item from 阅读全文
posted @ 2012-02-29 15:50 Statmoon 阅读(273) 评论(0) 推荐(0) 编辑
摘要: We often use modal dialog to display list item or other infomation in sharepoint.we can use the following code to create a modal dialog:View Code 1 <script type="text/javascript"> 2 function ShowInfo() { 3 var options = SP.UI.$create_DialogOptions(); 4 5 options.title = "ModalD. 阅读全文
posted @ 2012-02-24 17:05 Statmoon 阅读(575) 评论(2) 推荐(0) 编辑
摘要: As we all know,if we change display form of a list item to infopath form,there can't find the print previewbutton on the ribbon:If we want to print this form, we need to add a print button,but how to do it,just follow the following steps:First,trun back to the list,on the ribbon area,click " 阅读全文
posted @ 2012-02-24 16:32 Statmoon 阅读(537) 评论(0) 推荐(0) 编辑
摘要: Today,I'd deployed a solution to a SharePoint Farm,but I got the following error:"Object reference not set to an instance of an object",in chinese is "未将对象引用设置到对象的实例".The user I used to run this command isn't a farm administrator account,and also it doesn't have fullc 阅读全文
posted @ 2012-02-20 17:27 Statmoon 阅读(360) 评论(0) 推荐(0) 编辑