Posts

Sharepoint 2010 Certification Drive

Image
Preparing for a Sharepoint 2010 certificate  070-667, 070-668, 070-573, 070-576 ?? Moving the blog to my site www.shopSharepoint.com. Click below to go to the Blogs

Few useful links

http://sharepointroot.com/2010/07/07/editing-contents-of-a-wsp-sharepoint/ http://mysharepointwork.blogspot.com/2010/02/ascx-webpart-using-system-using-system.html http://www.allaboutmoss.com/index.php/2010/03/05/how-to-create-wsp-package-for-user-controls/

Interesting but an annoying thing with Visual WebPart Renaming

When you rename the Visual Webpart, you might want to change the folder structure in which the user controls are deployed on the ControlTemplates and the safecontrol entries. You might need change all the new information (namespace, class name, folder name) in the SharepointProjectItem.spdata file. Where to find this, I did a search on the project with the old name, boom I got this file opened automatically.

Running a sharepoint windows app in x64 Vs x86

If you execute the following line of code on a Windows app and get the error on red specified : ================================================================= SPSite  site =  new   SPSite ( "http://yoursite.com" );   SPWeb  web = site.OpenWeb(); ================================================================= Error : The Web application at  http:// yoursite.com could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. ================================================================= Issue is : you are not targetting the X64 - targeting  x64 or AnyCpu  &  .NET 3.5 Framework  in your Windows Application will resolve this issue. =================================================================

Workflow as wsp - Create, Deploy & Move it to Production

If you are creating a custom workflow or a resuable workflow through SPD 2010 for the first time, you'll end up with a question about how to move the same to production. Hope this helps. 1. Create the workflow in SPD 2. Save it as Template (Saves a soln file in the Site Assets folder) 3. Download the wsp file - Ref -  http://technet.microsoft.com/en-us/library/ee662509.aspx 4. Move the wsp file to prod and deploy it - Ref -  http://technet.microsoft.com/en-us/library/ff607872.aspx

Access Denied Host Header Sharepoint 2010 Windows Server 2008 R2

If you are running into a weird issue, where you get prompted for your credentials repeatedly in your local sharepoint server and was denied access to the site, even though you are using an administrator account, and if this happens only when you create a nice host header and on 80 port, then you are here at the right place - Just read the below. Method 1 works for me :  Click  Start , click  Run , type  regedit , and then click  OK . In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 Right-click  MSV1_0 , point to  New , and then click  Multi-String Value . Type  BackConnectionHostNames , and then press ENTER. Right-click  BackConnectionHostNames , and then click  Modify . In the  Value data  box, type the host name or the host names for the sites that are on the local computer, and then click  OK . Quit Registry Editor, and th...

Branding your Search Center in Sharepoint 2010

The OOTB search center doesn't have any navigation and the minimal.master doesn't show any top navigation. You could see the detail description of the issue here and John Ross explained the scenario here However, The best simple solution is posted here  http://shopsharepoint.com/blog/7-branding-your-search-center-in-sharepoint-2010.aspx ' Branding SharePoint 2010 Search Centers '

Add Vs Upload a document in a document library - Sharepoint 2010

Image
The document library provides a small link at the bottom that says "Add document" but it does show an upload pop up when you click that link. It definitely misleads users. So, here is few simple steps you could do to provide a link that can actually open a new document. Normal behavior : Things you could do to get the following output is specified below: 1. Create a Content Editor webpart under your library that can have the following HTML script 2. Now, to remove the original "Add document" link, goto the library webpart and set the Chrome Type to None. The original one will disappear. Working with SharePoint document libraries

Customize your document library view based on the workflow status

Image
If you are looking to customize the doc view based on the workflow status, it's not straight forward to give the filter column with "Approved" status. No, it doesn't work with any Text enetered. You have to follow the following table for the status you want to filter by. Status Value Not Started 0 Failed on Start 1 In Progress 2 Error Occurred 3 Canceled 4 Completed 5 Failed on Start(Retrying) 6 Error Occurred (Retrying) 7 Canceled 15 Approved 16 Rejected 17

Sharepoint 2010 Document Libraries doesn't have item-level privileges

This is a simple cool post for solving the above issue : http://www.endusersharepoint.com/EUSP2010/2010/04/09/configure-item-level-permissions-for-document-libraries-–-part-2-–-sharepoint-2010-edition/

Deploying a custom workinflow from SPD to a Prod environment

If you are creating a custom workflow or a resuable workflow through SPD 2010 for the first time, you'll end up with a question about how to move the same to production. I tried the following : 1. Create the workflow in SPD 2. Save it as Template (Saves a soln file in the Site Assets folder) 3. Download the wsp file - Ref -  http://technet.microsoft.com/en-us/library/ee662509.aspx 4. Move the wsp file to prod and deploy it - Ref -  http://technet.microsoft.com/en-us/library/ff607872.aspx But it didn't deploy the same in my Prod environment. Well, I should say it deployed but wasn't available on my Workflow list Finally, I opened the prod site from SPD and published it directly. It worked without flaw.

Cannot save the property settings for this Web Part. Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))

I personally hate this post...but it did work for my developer : If you are using the "using" statement on the webpart page load , you might end up getting this. Wrong Coding for this scenario : using(SPWeb oWeb  = SPControl.GetContextWeb( Context )) { .... } Correct way of using : SPSite site = new SPSite(SPContext.Current.Site.ID); -- site.Dispose();

Ribbon & Workflow Customization

few nice posts on Ribbon Customization : http://msmvps.com/blogs/cobrien/archive/2010/01/25/adding-ribbon-items-into-existing-tabs-groups-ribbon-customization-part-2.aspx http://www.sharepointnutsandbolts.com/2010/01/customizing-ribbon-part-1-creating-tabs.html http://koenvosters.wordpress.com/2009/11/05/howto-add-a-button-to-the-ribbon-in-sharepoint-2010/ http://patrickboom.wordpress.com/2010/04/19/extending-the-ribbon-with-a-send-unique-link-button/ WF Customization: http://office.microsoft.com/en-us/sharepoint-designer-help/video-create-an-approval-workflow-in-sharepoint-designer-2010-VA101897477.aspx

Looking for a Hyper-V Sharepoint 2010 image??

here you go... http://www.microsoft.com/downloads/details.aspx?FamilyID=751fa0d1-356c-4002-9c60-d539896c66ce&displaylang=en

An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

When you install sharepoint 2010 on Win 7, if you get the above error : Download this chart control and install it 

Disabling UAC in Windows 7

Image
I am sick and tired of the vista feature (UAC) in windows 7 and hence I decided to turn it off. My prev post explains what's UAC, however it doesn't say how you can disable it. Incase if you decided to do so, here's how you could do it (Please understand UAC before you do so). 1. Goto Control panel & Search for UAC in the search box on top 2. Move the slider to never notify.

SPWeb.Groups Vs SPWeb.SiteGroups

SPWeb.Groups returns collection of cross-site groups which has some permission on the site. So if you add group from a site without any permission on the site, then this group wont appear in SPWeb.Groups collection, but it will appear in SPWeb.SiteGroups collection.

Unable to connect to SQL Server session database. The connection string (server='', database='SSP_DB') was returned by an instance of the IPartitionResolver type 'Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=.....

Image
This is one of the wierd error you might get, if your SQL server hard drive is FULL. Clean up the space on your C drive and you should be all set.

NJ DMV Update - Nothing related to Sharepoint 2010

Anyone who lives in NJ & has applied for H1B extension and if the extension is delayed for some reasons by HomeLand Security beyond 90 days (upto which the driver's license would be valid). You still can use the H1B Extension reciept notice original ( I797c - CaseType I129) to extend it to 240 days. A lot of the DMV's in new jersey doesn't know and all they expect is a valid I-94 which is pure dumbness. If you are in the same situation and looking to get this 240 days extension, please goto 45,Killmer Rd,Edison NJ. They do this right..no hazzles. It happened for my collegue, we nearly went to 3 DMV's before we went to Killmer Rd. Hope this helps. Good Luck :)

2010:Shell Script to deploy a solution

1. Open Sharepoint 2010 Management Shell 2. Add the solution with this script - Add-SPSolution -LiteralPath "Path of your solution" 3. Now, you will find the new solution at the Central Admin>System Settings>Farm Management>Farm Solutions 4. Click Deploy to deploy the solution. 5. Do a IISReset Note : You have to get used to Visual Studio 2010