A Sandbox Solution,what is and what is not

A Sandbox Solution,what is and what is not

 
We all know the limitations of a sandbox solution in SharePoint. A sandbox solution is deployed to a particular site collection's solution gallery rather than to farms's solution gallery as in case of Farm solution. There are also some more limitation in the sandbox solution.

Here I am going to list some of major  limitations:-

1) You can not use any SharePoint control in sandbox solution.e.g spgrid, sharepoint datetime control, people picker etc. You have to rely on the asp.net controls.

2) You do not have access to the layouts folder.

3) You can not use Visual web parts in this rather you can use  Visual Studio 2010 SharePoint Power Tools to use visual web parts in sandbox solution.

3) You can not use run with elevated privileges function to override current user's privileges.

4) You can use asp.net file upload control to upload files to SharePoint document library rather you can use silver light client context to upload files.

5) To debug the code you have to attach to the process SPUCWoker process and not to the w3p process as in farm solution.

6) You cannot use SPUtility.SendEmail method to send emails in sandbox solutions

To send email you can follow this useful link

There is SharePoint User Code service that is responsible for the sandbox solution executions.
A sandboxed solution is also not allowed to access anything outside the site collection to which it is deployed. An implication of this is that Features deployed in sandboxed solutions can only be scoped to a site collection or website

转载于:https://www.cnblogs.com/ahghy/archive/2012/07/02/2572720.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值