J'ai une solution sandbox créée à partir de VS2010. Le sandbox a été créé pour SharePoint 2010. La solution sandbox fonctionne également correctement dans Office 365 (c'est-à-dire SharePoint 2013 Online). Quand il est activé, il ajoute une bibliothèque et ajoute une page de partie Web à l'intérieur de cette bibliothèque. Mais lorsque j'ai essayé d'activer la même solution sandbox dans SharePoint 2013 Server (version sur site, installée localement sur notre serveur), j'ai rencontré l'erreur suivante, vue par FUSLOGVW.Impossible de charger l'exception de l'assembly du récepteur lors de l'activation du fichier wsp
*** 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.
..
Et les journaux ULS a montré les exceptoins suivants
>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.
Installation d'entité: Installation Feature 'SolTest_Company Office 365 Sandbox Feature' (ID: « 44613a8d-0406-4dea-ac63-09db6aba469a ') dans la ferme.
Impossible de charger l'ensemble récepteur "SolTest, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = fd92f09fdeeefafe" pour la fonction "SolTest_Company Office 365 Sandbox Feature" (ID: 44613a8d-0406-4dea-ac63-09db6aba469a) .: System.IO.FileNotFoundException: Impossible de charger le fichier.
............
............
Je me demandais pourquoi la solution bac à sable fonctionne dans la version cloud de SharePoint 2013, mais ne fonctionne pas dans la version sur site. Quelqu'un peut-il nous éclairer? J'ai essayé d'activer la solution de bac à sable en utilisant le navigateur. Je n'ai pas essayé d'utiliser le shell de puissance. Cela fera-t-il une différence?
Thanks,
Prakash