SandBox vs Farm Solution

Hi I am new to SharePoint..

Can anyone help to know the difference between Sanboxed and Farm solution in SharePoint 2010?

Thanks.
LVL 6
Abirami RajendranAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

missjenniferdayCommented:
Hi, A Sandboxed solution only allows the code limited access to resources - for example, you can't access the file system using a sandboxed solution; also a sandboxed solution can be deployed easily by a site collection administrator - as it doesn't have to be installed on the server via central admin. Sandbxed solutions also run in a different process.

Farm solutions however do have full access to the SharePoint resources, so therefore can cause all sorts of issues if the code is not quite right.  

Certain types of solution can only be deployed as farm solutions because they add files into the _layouts folder, so the option to deploy as a sandboxed solution is not available in Visual Studio.

Generally, try to write your solutions as sandboxed ones :)

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Abirami RajendranAuthor Commented:
Need more explanation
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.