Posts

Showing posts from July, 2011

Should not use DateTime Type Descriptor for BCS Entity

Hi All, I wana share another finding of BCS SharePoint 2010. I had few DateTime type fields for my External Content Type, I was developing through VS 2010 to bring the sql data using a sql view. All was working well but when i saw data in external list for these fields the time was coming 5:30 mins more than the actual time (:0 Strange right ! ) like if my actual date is : 2010-12-30 17:31:53.000 DateTime in External List was coming as : 12/30/2010 11:01 PM After googling for some time I found one article which says BCS WebPart does not understand DateTime. (BCS WebParts are used to show external list data) So, its alternative I found was to bring the DateTime field data as string into the External List. Which worked well for me. Ref: Check out 'Joran Markx' answer in this Post Cheers! Happy SharePointing :)

Custom Search Tabs

Image
Hi Experts, Few more interesting point to share with you guys about custom search: 1) Configure custom tabs : You can add custom tab to search page just like OOB Tabs "All Sites" and "People". Please follow given steps: Point to  Site Actions , and then click  View All Site Content . Click the  Tabs in Search Pages  list and click  New  and then  Add New Item  to add a new item that represents your new tab. Provide a name and associate it with the custom search page that you created earlier. Click the  Tabs in Search Results  list and and click  New  and then  Add New Item  to add a new item that represents your new tab. Provide a name and associate it with the custom search page that you created earlier. Or Edit the search page and add new tabs. see the screen shot below: After creating new tab we have to associate custom scope to new search core results webpart: Click the  Search  tab to go to the  Search Center . Go to the search result page. Poin

Common problem with SharePoint 2010: System.Security.Cryptography.CryptographicException - Keyset does not exist

Image
Hi All, A very general issue when working Sharepoint 2010 ​along with visual studio 2010 is getting this unhandled security exception. Though this error prompt will not affect much but still its anoying. Uninstalling Visual Studio will not resolve this issue. To configure the server to no longer show a dialog when an unhandled exception occurs, use the registry editor to delete the following registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger On a 64-bit operating system also delete the following registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger Hope you will get rid of this message after doing thid configuration. Thanks and Regards Mohit

Sharepoint Logs not working with Error: Usage log retention limit reached.

Hi All, SharePoint generates multiple log types. Logs in SharePoint require three basic steps like all other logs: Logging, Processing and  Reporting. To diagnose any unexpected error one must have to open those logging files to know exact error root. Below are the locations where logs are stored: SharePoint 2007 log files : " c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS " SharePoint 2010 log files: " c:\Program Files\Common Files\Microsoft Shared\web server extensions\14\LOGS " Some tools are available on codeplex which works well as a log viewer tools. I generally use SharePoint Log Viewer 2010 and SharePoint ULS Log Viewer . From last few weeks suddenly logs stopped working. When I open the last updated log file, I found an error saying: "Usage log retention limit reached.  Some old usage log files have been deleted." I have changed the Retention policy from central admin in order to make it work but no luck. These sett

Ribbon Customization

Image
Hi, I have got chance to research on SharePoint Ribbon. I found few basics about the ribbon and implemented some of basic customization demos. For a beginner I think below demos are very helpful. I will first start explaining some basics of ribbon control. The Out-of-Box ribbon is rendered by a single Xml file resides in 14 hive at location ...\14\template\global\xml\cmdui.xml. Now in order to customize this we have to override the functionality of cmdui.xml file or extend it the way we want. There are the several ways VS 2010 development tool provides us to create/deploy a xml file but I think creating a module is quite simple and professional way to implement. Ribbon Components: Tab: Tabs are the root of the Server ribbon. They contain one or more groups, and contain similar functions. For example, in Figure 2, the Page tab that is currently selected contains functions that pertain to working with the current page. Group:Every tab in the ribbon contains a series of one or more g

Custom Site definition with custom masterpage

Image
Site definition can be considered as a  blueprint of a SharePoint site. When developing business solutions on WSS platform sometimes we will have to create our own site definitions to incorporate functional business modules. Site Definitions gives you lots of flexibility in terms of maintaining and upgrading your solutions compared to Site Templates . Its also gives us the flexibility of choosing custom layouts and the ability to pre program the sequence of the feature activation order when  you create a new site based on the definition. To create a site definition follow given steps: 1)  Open Visual Studio 2010, click New on the File menu, and then click Project . In the Templates pane, select the Site Definition project template under SharePoint 2010 templates folder. In the Name box, provide a name for your solution. In the Name box, input DemoSiteDefs and then click OK (See below Figure). 2) At this point, the SharePoint Customization Wizard will appear (See below screenshot).