Sharepoint 无法加载接收器程序集激活wsp文件时发生异常

Sharepoint 无法加载接收器程序集激活wsp文件时发生异常,sharepoint,sharepoint-2010,sandbox,sharepoint-2013,wsp,Sharepoint,Sharepoint 2010,Sandbox,Sharepoint 2013,Wsp,我有一个沙盒解决方案,它是从VS2010创建的。沙盒实际上是为SharePoint 2010创建的。沙盒解决方案在Office 365(即SharePoint 2013 Online)中也能顺利运行。当它被激活时,它将添加一个库,并在该库中添加一个web部件页面。但是,当我尝试在SharePoint 2013服务器(本地版本,安装在我们的服务器机器中)中激活相同的沙盒解决方案时,我从FUSLOGVW中看到了以下错误 *** Assembly Binder Log Entry (6/16/201

我有一个沙盒解决方案,它是从VS2010创建的。沙盒实际上是为SharePoint 2010创建的。沙盒解决方案在Office 365(即SharePoint 2013 Online)中也能顺利运行。当它被激活时,它将添加一个库,并在该库中添加一个web部件页面。但是,当我尝试在SharePoint 2013服务器(本地版本,安装在我们的服务器机器中)中激活相同的沙盒解决方案时,我从FUSLOGVW中看到了以下错误

*** Assembly Binder Log Entry  (6/16/2013 @ 2:55:20 PM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\usercode\SPUCWorkerProcess.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = ELV1\spadmin
LOG: DisplayName = SolTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fd92f09fdeeefafe
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = Sandboxed Code Execution Partially Trusted AppDomain
Calling assembly : Microsoft.SharePoint, Version=15.900.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.


LOG: This bind starts in default load context.

LOG: Using application configuration file: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\usercode\SPUCWorkerProcess.exe.Config

LOG: Using host configuration file: 

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.

WRN: Application configuration file safe mode disallowed.

LOG: Post-policy reference: SolTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fd92f09fdeeefafe
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/SolTest.DLL.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/SolTest/SolTest.DLL.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/assemblies/SolTest.DLL.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/assemblies/SolTest/SolTest.DLL.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/SolTest.EXE.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/SolTest/SolTest.EXE.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/assemblies/SolTest.EXE.

LOG: Attempting download of new URL file:///C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/15/usercode/assemblies/SolTest/SolTest.EXE.

LOG: All probing URLs attempted and failed.
..
ULS日志显示以下异常情况

>UserAgent not available, file operations may not be optimized.    at .....dd(Int32 >solutionGalleryItemId)     at Microsoft.SharePoint.WebControls.SolutionItemButton.ActivateItem()     ...
>Solution Deployment : Looking for 'ReceiverAssembly' attribute in manifest root node for solution >'Company Office 365 Sandbox Package.wsp'.    
>Solution Deployment : Looking for 'ReceiverClass' attribute in manifest root node for solution 'Company Office 365 Sandbox Package.wsp'     
Solution Deployment  Missing one or more of the following attributes from the root node in solution Company Office 365 Sandbox Package.wsp: assembly , type.     
功能安装: 正在将功能“SolTest_Company Office 365沙箱功能”(ID:“44613a8d-0406-4dea-ac63-09db6aba469a”)安装到服务器场中

无法为功能“SolTest_Company Office 365沙盒功能”(ID:44613a8d-0406-4dea-ac63-09db6aba469a)加载接收器程序集“SolTest,版本=1.0.0.0,区域性=中立,PublicKeyToken=FD92F09FDEEEFAE”。:System.IO.FileNotFoundException:无法加载文件

............
............
所以我想知道为什么沙盒解决方案在SharePoint 2013的云版本中有效,但在内部部署版本中不起作用。有人能解释一下吗?我已尝试使用浏览器激活沙盒解决方案。我没有试过使用电源外壳。这会有什么不同吗

Thanks,
Prakash

我也是这样;通过Nappa开发的应用程序,在sharePoint Online(与Office 365帐户捆绑的应用程序)上部署和工作

当我想在我们的SP 2013本地服务器(通过PowerShell)上安装它时,它会在“安装”状态下退出,在日志中我得到了著名的消息:“在解决方案_NAME.wsp中的根节点缺少以下一个或多个属性:程序集“”,键入“”。”

此错误含义广泛,因为它可能来自SP版本、使用的变量类型、错误的清单文件、网络配置

就我而言,我还没有找到它的来源。我的应用程序非常简单,它只加载一个列表内容,并使用纯web(HTML/JS/CSS)以特定的方式显示它,所以我不认为它可能来自奇怪的依赖关系