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()] 

存在。

4

1 回答 1

1

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

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

尚未配置备用访问映射。用户或服务正在使用URL http://dev.corp.company.com访问站点http://dev。这可能会导致不正确的链接被存储或返回给用户。如果这是预期的,请将 URL http://dev.corp.company.com添加为 AAM 响应 URL。有关详细信息,请参阅: http: //go.microsoft.com/fwlink/ ?LinkId=114854 "

还:

找不到位于http://skynet.redmond.corp.microsoft.com/的 Web 应用程序。验证您是否正确键入了 URL。如果 URL 应该服务于现有内容,系统管理员可能需要将新的请求 URL 映射添加到预期的应用程序。在 Microsoft.SharePoint.SPSite..ctor(SPFarm 场,Uri requestUri,布尔上下文站点,SPUserToken userToken)在 Microsoft.SharePoint.SPSite..ctor(字符串 requestUrl)在 Microsoft.SharePoint.SPSite_SubsetProxy.SPSite__Factory(字符串 requestUrl)

于 2011-11-30T23:26:03.340 回答