沙盒解决方案似乎严重瘫痪 [英] Sandbox solutions seem to be too severely crippled

查看:97
本文介绍了沙盒解决方案似乎严重瘫痪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习SharePoint和可以部署的不同类型的解决方案.从我正在观看的培训中看来,您似乎应该尽可能地使用沙盒解决方案.这是因为农场解决方案"可能会使事情搞得一团糟.

I am learning SharePoint and the different kind of solutions you can deploy. From the training I am watching it seems like you should try your best to use a Sandbox Solution when ever possible. This is because Farm Solutions can mess things up too much.

但是,沙箱解决方案不支持我要使用WebPart进行的两项主要操作.这些是Visual WebPart和WebPart通信. (不允许使用第一个,因为它需要打文件系统,而不允许第二个,因为它使用了反射).

However, two of the main things I would do with WebParts are not supported in Sandbox Solutions. Those are Visual WebParts and WebPart communication. (The first is not allowed because it needs to hit the file system and the second is disallowed because it uses reflection).

在我看来,我的WebParts总是希望至少做这些事情之一. (不进行通信的WebPart并不是真正的模块化吗?)

It seems to me that my WebParts will always want to do at least one of those things. (WebParts that don't communicate are not really that modular are they?)

我是不是要紧要点还是沙盒解决方案是在实际代码中并未真正使用的好主意"?

Am I missing the point or are Sandbox Solutions a "nice idea" that are not really used in actual code?

推荐答案

是的,我同意您的观点,沙盒解决方案的限制性很强.

Yes, I agree with you that Sandbox solutions are very restrictive.

但是,正是这种限制赋予了他们自己的价值.由于种种限制,沙盒解决方案无法关闭服务器场(至少是理论上的结果,有人可能会找到解决方法.)

But, it is that restriction that gives them their value. Due to the restrictions a Sandboxed solution cannot bring down a farm (atleast that is the theory, someone may find a way to do it).

这意味着您可以向更多用户开放,以在服务器场上部署事物.这也是将事物部署到SharePoint Online的要求.

This means that you can open up to many more users to deploy things on the farm. It is also a requirement to deploy things to SharePoint Online.

沙盒解决方案的限制性更强,意味着开发更加繁琐,您必须针对这些限制进行编程.这使解决方案更加昂贵.因此,除非您有充分的理由不使用它,否则默认值应为farm.

That Sandbox solutions are more restrictive, means that development is more cumbersome, you have to program your way around the restrictions. This makes solutions more expensive. Therefore, the default should be farm unless you have a good reason not to use it.

这篇关于沙盒解决方案似乎严重瘫痪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆