Thursday, October 31, 2013

SharePoint common Errors


Following are common errors occurs in SharePoint. Later, I will add the fixes for all these errors

503 - The service is unavailable

An unexpected error has occurred

Error: Access denied

Stuck on starting UPS service

page cannot be found 404

page cannot be displayed error

403 Error

Connection Error - can't not connecton the configuration database

Run time error

Webservice Errors

The workbook cannot be opened

FIMSynchronizationService Error

Error rendering control - Error in sharepoint designer

_spBodyOnLoadFunctionNames javascript error

SecurityTokenServiceApplication Error

Security Error

WorkFlow errors

SharePoint Tools


SharePoint Manager is a SharePoint object model explorer. 

U2U CAML Query Builder- It helps you to build CAML queries rapidly

Fiddler

SPDisposeChecker

SharePoint Designer

ULS Viewer

PowerGUI


Upload a videos to sharepoint


Go to your SharePoint site

Go to settings menu

Add an App

Click on Asset Library App and create it

Click on New Document menu link on Newly created Asset Library. Select Video content type

You can either directly upload the video or provide a link to video

Once you uploaded video, you can watch the video

Wednesday, October 30, 2013

What is AllowUnsafeUpdates in SharePoint?


If your code modifies Windows SharePoint Services data in some way, you may need to allow unsafe updates on the Web site, without requiring a security validation. You can do by setting the AllowUnsafeUpdates property.Otherwise you will get a security exception is follows. It protects the code from cross-site scripting attacks.


System.Exception: Microsoft.SharePoint.SPException: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. —>System.Runtime.InteropServices.COMException (0x8102006D): The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.

Tuesday, October 29, 2013

Setup DNS Record for your SharePoint Web Application


Create a new Web application using CA and mention the Host Header in the parameter.It could be something like mydomain.com

Logon to DNS Server

DNS Server -> DNS -> Forward Lookup Zones -> Select Zone -> Right Click n zone and Click New Host -> Enter Host Name as something like www or portal. Enter IP Address for the Web Application.


www
mydomain.com          


Go to IIS -> Select web app -> Go to site bindings -> Add the IP Address and save

Now you can able to ping the web app

www.mydomain.com



How to convert sandbox solution to farm solution and vice versa



Open the Project in Visual Studio

Click on Project Folder -> Select Project Properties -> Update the Sandboxed Solution property

Convert farm solution to sandbox solution

Update the Sandboxed Solution Property to true

Convert sandbox solution to farm solution

Update the Sandboxed Solution Property to false

Resolve Recycle IIS application pool Error in SharePoint

Solution

User should have DBO(db_owner) permissions on the Config Database and Admin database