03 2012 档案
摘要:创建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...
阅读全文
摘要:从今天开始,打算使用Windows Live Writer来更新博客,先来个图片测试下: 效果怎么样呢?
阅读全文
摘要:以前我们在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
阅读全文
摘要: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
阅读全文
摘要:今天将一个在测试环境中测试通过的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: /...
阅读全文
摘要: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...
阅读全文
摘要:今天在部署一个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
阅读全文
摘要: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
阅读全文