Posts

Showing posts from 2010

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 then restart the IISAdmin service. Reference :  http://support.microso

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

SharePoint 2010 Document Library won't open PDFs

Image
I just discovered, by default Sharepoint 2010 document library doesn't open PDF files or any other file types that MS doesn't trust anymore. The library will force you to download the PDF file since it's not trusted. You can do the following to resolve this : 1. Goto Central Administartor>Application Management>Manage Web Application>Select the Web App>Click General Settings 2. Change the 'Browser File Handling' from 'Strict' to 'Permissive'.

Glassy Buttons

This website is awesome for designing your own buttons -  http://www.glassybuttons.com/buttonmill/glassy.php?button_text=&color=dc143c&grcolor=b0171f&width=130&height=75&radius=15&theight=45&tcolor=000000&bkcolor=clear&fname=Helmet+bold-ital&rcolor=ff3030&rgrcolor=b0171f&rtcolor=000000&imglocate=none&imgheight=12&imgname=&imgfore=auto&imgforecolor=000000&imgtran=auto&imgtrancolor=ffffff&quality=3&fromhere=1

SharePoint 2010 – Top 10 Resources to get you started…

With the official launch of SharePoint 2010 last week, we thought now would be a perfect time for us to share some resources to help you to get started evaluating and learning about the new release.  This post contains links to download evaluation software, guides, demo virtual machines and lots more, for both Developers and IT Professionals. 1. Check out the Office 2010 & SharePoint 2010 Launch  Keynote and on-demand sessions , and the  SharePoint 2010 Product Site  on Microsoft.com 2. Download the  SharePoint 2010 Overview Evaluation Guide , the  SharePoint 2010 Professional Developer Evaluation Guide  and the  SharePoint 2010 IT Professionals Evaluation Guide  to quickly ramp up on platform updates and additions. 3. Check out the learning plans for  IT Professionals ,  Developers  and  End Users  and get started on your SharePoint 2010 learning plan. 4. Download the pre-configured Hyper-V  SharePoint 2010 Evaluation and Demo Virtual Machine (~1.8GB) along with the  SharePoint

Exporting Excel Data to Sharepoint 2010 List

One of my customer send me a lot of data in excel 2010 and wanted me to upload it onto a sharepoint list and it wasn't that bad to do that. I refered this post and it made my life easier.

The list cannot be displayed in Datasheet view...

If you get this message, The list cannot be displayed in Datasheet view for one or more of the following reasons: - A datasheet component compatible with Microsoft SharePoint Foundation is not installed. - Your Web browser does not support ActiveX controls. - A component is not properly configured for 32-bit or 64-bit support. when you try to open the Sharepoint 2010 List in the DataSheet view, do the following : install the 2007 Office System Driver: Data Connectivity Components after you install Office 2010 64-bit on the machine. Hope this helps

Sharepoint 2010 Release version Installation on Win Server 2003 R2

My earlier post of installing Sharepoint 2010 is for the Beta 2 release. We got the release version last month. A trial download which is valid for 180 days is published on May 12th. A link for that is here . Don't forget to install the  WCF fix for R2 and Win7 is  here  prior to installing sharepoint . Release version is so smooth and I had everything done without any error. I configured the search and created a new user profile synchronization connection to import all the users from AD. It went so smooth and took me couple of hours today-sunday :(  to complete the entire installation. Am excited with the release version. They fixed a lot of issues (including the crazy user profile import issue) Good Luck

Register for the Sharepoint 2010 launch event

Image

Sharepoint 2010 Installation Beta on Windows Server 2003 R2

I find this link as the best resource for installing Sharepoint 2010 Beta on Win Server 2003. http://mosshowto.blogspot.com/2009/11/installing-sharepoint-2010-windows-2008.html I followed everything as it is but I encountered this error : "An error has occurred while validating the configuration settings.  An exception of type System.ArgumentNullException was thrown.  Additional exception information: The errorData argument cannot be null or zero length.  Parameter name: errorData" I browsed the net for nearly 4-5 hours to see different solutions but eneded up here. http://linium.us/ism/microsoft-solutions/sharepoint-2010-beta-here-we-go/ It didn't solve the problem yet until  I turned-off the firewall. I thought it's something to do with the Sql Server Firewall, but it's both the firewall's (Sharepoint + Sql) that has to be turned-off.   My prev post defines the Issues encountered in Sharepoint 2010 Beta installed on Win 7