SharePoint 沙箱解决方案因使用的网址而失败

发布于 2024-12-18 18:34:00 字数 559 浏览 4 评论 0原文

如果我将页面查看为:http://dev/page.aspx,则我的 SharePoint 2010 沙盒解决方案可以在我的开发计算机上完美运行 效果很好。

但是,如果我将页面查看为 http://dev.corp.company.com/page.aspx 我收到以下错误:

Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: File Not Found.

即使查看没有后面代码的空白 Web 部件,也会引发错误。

[assembly: AllowPartiallyTrustedCallers()] 

存在。

I have a SharePoint 2010 Sandbox Solution working perfectly on my dev machine if I view the page as: http://dev/page.aspx it works great.

However, if I view the page as http://dev.corp.company.com/page.aspx I get the following error:

Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: File Not Found.

Error throws even when viewing a blank web part with no code behind.

[assembly: AllowPartiallyTrustedCallers()] 

is present.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

檐上三寸雪 2024-12-25 18:34:00

看起来我需要配置备用访问映射:

http://technet.microsoft.com/en -us/library/cc288609(office.12).aspx

尚未配置备用访问映射。用户或服务
正在使用 URL 访问网站 http://dev
http://dev.corp.company.com。这可能会导致错误的链接
存储或返回给用户。如果这是预期的情况,请添加 URL
http://dev.corp.company.com 作为 AAM 响应 URL。了解更多
信息,请参阅:http://go.microsoft.com/fwlink/?LinkId=114854“​​

另外:

Web 应用程序位于 http://skynet.redmond.corp.microsoft.com/ 可以
找不到。验证您输入的 URL 是否正确。如果网址
应提供现有内容,系统管理员可能需要
添加新的请求 URL 映射到目标应用程序。在
Microsoft.SharePoint.SPSite..ctor(SPFarm farm、Uri requestUri、布尔值
contextSite、SPUserToken userToken)位于
Microsoft.SharePoint.SPSite..ctor(String requestUrl) 位于
Microsoft.SharePoint.SPSite_SubsetProxy.SPSite__Factory(字符串
请求网址)

It looks like I need to configure alternate access mappings:

http://technet.microsoft.com/en-us/library/cc288609(office.12).aspx

Alternate access mappings have not been configured. Users or services
are accessing the site http://dev with the URL
http://dev.corp.company.com. This may cause incorrect links to be
stored or returned to users. If this is expected, add the URL
http://dev.corp.company.com as an AAM response URL. For more
information, see: http://go.microsoft.com/fwlink/?LinkId=114854"

ALSO:

The Web application at http://skynet.redmond.corp.microsoft.com/ could
not be found. Verify that you have typed the URL correctly. If the URL
should be serving existing content, the system administrator may need
to add a new request URL mapping to the intended application. at
Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean
contextSite, SPUserToken userToken) at
Microsoft.SharePoint.SPSite..ctor(String requestUrl) at
Microsoft.SharePoint.SPSite_SubsetProxy.SPSite__Factory(String
requestUrl)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文