Skip to main content

Posts

Showing posts from July, 2012

Sharepoint 2010 Code Samples

Sharepoint 2010 Code Samples from Microsoft SharePoint 2010: Leveraging HTML5 Objects in SharePoint SharePoint 2010: Creating Document Sets Programmatically SharePoint 2010: Programmatically Finding Tagged Items SharePoint 2010: Developing AJAX-Enabled Web Parts SharePoint 2010: Using JavaScript to Enable Notifications SharePoint 2010: Creating Taxonomies Programmatically SharePoint 2010: Developing List Definitions SharePoint 2010: Managing Document Sets Programmatically SharePoint 2010: Using JavaScript and CAML to Query Lists SharePoint 2010: Developing JQuery-Enabled Web Parts SharePoint 2010: Creating Content Types Programmatically SharePoint 2010: Using JavaScript to Create Lists SharePoint 2010: Developing Styled Master Pages SharePoint 2010: Developing Delegate Controls SharePoint 2010: Performing Cross-List Queries SharePoint 2010: Using JavaScript to Edit and Save Values in Items   SharePoint 2010: Using JavaScript to Get Detai...

Error occurred in deployment step ‘Activate Features’: Cannot start service SPUserCodeV4 on computer ‘servername’.

Error while deploying your Project/Application: Error occurred in deployment step ‘Activate Features’: Cannot start service SPUserCodeV4 on computer ‘servername’. Solution: By default SharePoint Services UserCode Host Services is disabled. Just you need to enable it. Below are the steps to fix the error : Step 1. Start “ SPUserCodeV4 ″ service on the server. Start “ Server Manager ” on windows server 2008. Go to Server manager> Configuration >Services . Start “ SharePoint 2010 User Code Host ”      (SPUserCodeV4)  service if it is not running. After solve this issue you will get one more error(maybe) Error occurred in deployment step ‘Activate Features’: This feature cannot be activated at this time. The contents of the feature’s solution requires the Solution Sandbox service to be running. Step 2: Start “ Microsoft SharePoint Foundation Sandboxed Code Service ” from Sharepoint 2010 Central Administration. Go to Central A...

Visual Studio 2012 Download

Visual Studio 2012RC Compatibility When upgrading from Microsoft Visual Studio 2010 to the next release of Visual Studio you will take advantage of a refreshed and simplified environment with enhanced performance without any additional hardware requirements. Some of these core enhancements make use of capabilities that are only present in the latest versions of Windows and might require you to upgrade to a supported operating system. For product-specific, minimum system requirements. System Requirements The system requirements for most of the products in the next release of Visual Studio are:   Hardware Requirements  •1 GB of RAM (1.5 GB if running on a virtual machine)  •10 GB (NTFS) of available hard disk space  •5400 RPM hard drive  •DirectX 9-capable video card running at 1024 x 768 or higher display resolution    •1.6 GHz or faster processor   Supported Architectures •32-bit (x86) •64-bit (...

Code blocks are not allowed in this file in Sharepoint 2010

The SharePoint is based on ASP.Net Application, so all possible ASP.Net errors may easily become apparent in a SharePoint application. The ‘ Code blocks are not allowed in this file ‘ issue isn’t an exception. To get rid of it we need to enable server side scripts by modifying the web.config file. Specifically we need to locate <PageParserPaths> within web.config and add a proper <PageParserPath> node to it. The following example demonstrates how to allow server side scripts for all pages , which contain the apps virtual folder in their relative paths: <PageParserPaths>      <PageParserPath VirtualPath="/apps/*" CompilationMode="Always"              AllowServerSideScript="true" IncludeSubFolders="true" />  </PageParserPaths> After the modification, server side scripts will work for such pages as e.g. http://myServer/apps/default.aspx http://mySe...