Monday, July 25, 2011

Http Error : 503. The service is unavailable. SharePoint Central Administration and SharePoint WebApplication


Hi All,
Last Friday , I ran Windows Updates on my Machine. and then ran my SharePoint Site and faced an error "Http Error : 503. The service is unavailable."(See the snapshot below).





I run a headache looking into a solution of this problem, tried restarting all services, sql server and even rebooted my machine serveral times. And after which I found that the Application Pool of all sites was stopped. I started the Application Pool for SharePoint Admin and Other SharePoint WebApplication, and things went fine as usual.

Go to IIS, Application Pools and start the Application Pool one by one of each application.(See the below snapshot)




My Machine Specs: Windows Server 2008 R2, Sql Server 2008 R2, SharePoint Server 2010, Visual Studio 2010

Hope this solution will solve your problem.

Thanks,
Nitin Sharma



Friday, July 22, 2011

Differences Between Sandboxed and Farm Solutions

Hello everybody,
This blog post is for all those guys who are new to Microsoft SharePoint Technologies and want a precise concept of what are Sandboxed solution and Farm Solution.

The MSDN explains it brilliantly......


Below is the content from MSDN :

When you compile a SharePoint solution, it deploys to the SharePoint server and a debugger attaches to debug it. The process used to debug the solution depends on the setting of the Sandboxed Solution property: sandboxed solution or farm solution.


Farm solutions, which are hosted in the IIS worker process (W3WP.exe), run code that can affect the whole farm. When you debug a SharePoint project whose Sandboxed Solution property is set to "farm solution," the system's IIS application pool recycles before SharePoint retracts or deploys the feature so as to release any files locked by the IIS worker process. Only the IIS application pool serving the SharePoint project's site URL is recycled.

Sandboxed solutions, which are hosted in the SharePoint user code solution worker process (SPUCWorkerProcess.exe), run code that can only affect the site collection of the solution. Because sandboxed solutions do not run in the IIS worker process, neither the IIS application pool nor the IIS server must restart. Visual Studio attaches the debugger to the SPUCWorkerProcess process that the SPUserCodeV4 service in SharePoint automatically triggers and controls. It is not necessary for the SPUCWorkerProcess process to recycle to load the latest version of the solution.

With either solution type, Visual Studio also attaches the debugger to the browser to enable client-side script debugging. Visual Studio uses the script debugging engine for this purpose. To enable script debugging, you must change the default browser settings when you are prompted.

Visual Studio attaches the debugger only to the W3WP or SPUCWorkerProcess processes running the current site. Visual Studio also attaches the managed COM Plus and workflow debugging engines.


All about Sanboxed Solution , below is the link from http://technet.microsoft.com

http://technet.microsoft.com/en-us/library/ee721992.aspx

I hope the above links will make you clear differences between Sanboxed and Farm Solution in SharePoint.

Have a great day.!

Thanks,
Nitin Sharma

Tuesday, September 7, 2010

मंगल भवन अमंगल हारी - राम सिया राम सिया राम जय जय राम ,Mangal Bhavan Amangal Haari , Lyrics

मंगल भवन अमंगल हारी
द्रवहु सुदसरथ अचर बिहारी
राम सिया राम सिया राम जय जय राम - २

हो, होइहै वही जो राम रचि राखा
को करे तरफ़ बढ़ाए साखा

हो, धीरज धरम मित्र अरु नारी
आपद काल परखिये चारी

हो, जेहिके जेहि पर सत्य सनेहू
सो तेहि मिलय न कछु सन्देहू

हो, जाकी रही भावना जैसी
रघु मूरति देखी तिन तैसी

रघुकुल रीत सदा चली आई
प्राण जाए पर वचन न जाई
राम सिया राम सिया राम जय जय राम

हो, हरि अनन्त हरि कथा अनन्ता
कहहि सुनहि बहुविधि सब संता

Hare Ram !!
हरे राम ||

Thursday, August 12, 2010

System.Windows.Xps.Packaging - Reach Framework => Add reference DLL

Hello Guys,

If you need to use XpsDocument class in your project, you must add reference to System.Windows.Xps.Packaging namespace. It is defined in the ReachFramework.

In order to add reference to ReachFramework, you right click on Add Reference on the project name in Solution Explorer. On the .NET Framework, select ReachFramework and other assemblies from the list and click OK button




Hope you find it useful.
Thanks,
Nitin Sharma
.


Tuesday, August 10, 2010

Database Back up using SQL Query

Hi All,
Today i came through a problem where in i have to take Back up of the SQL server database .
It is a simple query :

BACKUP DATABASE TestDB TO DISK='D:\MyDatabase.bak' with FORMAT


Where
"TESTDB" => Your Database Name
"D:\" => Any local Hard Drive C,D,E,F or any;
"MyDataBase" => Any name by which you want to take Back up.


Thanks,
Nitin Sharma