SharePoint debug - Unhandled exception was thrown by the sandboxed code ...
2014-11-12 01:39
696 查看
今天打算使用Microsoft Dynamics CRM list component for Microsoft SharePoint Server 2013,这是一个sandbox solution。于是下载之后上传到SharePoint的sandbox solution中,激活之后会添加一个webpart:“Microsoft
Dynamic CRM List Component”,当我把这个webpart添加到页面中的的时候,出现了下面的错误信息:
可能的原因:
1. 到CA中检查sandbox服务“Microsoft SharePoint Foundation Sandboxed Code Service”是否停掉了
2. 到资源管理器中查看SPUC进程账户,至少应该有site collection管理员的权限:
3. 代码中使用了不被SandBox支持的类,例如SPControl等等。
Dynamic CRM List Component”,当我把这个webpart添加到页面中的的时候,出现了下面的错误信息:
Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred. Correlation ID: 4e43c99c-34bf-2048-631f-a9d8d0bb5902. Hide Error Details [SPUserCodeSolutionExecutionFailedException: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.] Server stack trace: at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext, Boolean shouldUsageLog, Int32 currentProcessId) at Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext, Boolean shouldUsageLog, Int32 currentProcessId) at Microsoft.SharePoint.UserCode.SPUserCodeAppDomain.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext, Boolean shouldUsageLog, Int32 currentProcessId) at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcessProxyForShim.ExecuteInternal(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext) at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcessProxy.Execute(Type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, Byte[] binaryUserCodeToken, Byte[] proxyOperationToken, SPUserCodeExecutionContext executionContext) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg) ... ...
可能的原因:
1. 到CA中检查sandbox服务“Microsoft SharePoint Foundation Sandboxed Code Service”是否停掉了
2. 到资源管理器中查看SPUC进程账户,至少应该有site collection管理员的权限:
3. 代码中使用了不被SandBox支持的类,例如SPControl等等。
相关文章推荐
- sharepoint config : System.Security.Principal.IdentityNotMappedException was thrown
- 【Wpf】【debug】Exception has been thrown by the target of an invocation.
- WPF:UnauthorizedAccessException was unhandled by user code.
- InvalidOperationException was unhandled by user code
- SharePoint Debug - The file xxx has been modified by xxx on...
- Get the SharePoint groups in Infopath 2010 and SharePoint 2010 by current user without any code
- Exception : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server
- SharePoint Error : System.ArgumentException. Value does not fall within the expected range
- myEclipse 打不开struts-config.xml 报Could not open the editor: An unexpected exception was thrown 错误(转载)
- org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance:
- How to move the databases that are used by SharePoint Portal Server 2003 to a computer that is running SQL Server
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- Could not create the view: An unexpected exception was thrown. myeclipse非正常关闭,出现错误
- Access denied error by access to a txt file on the sharepoint server
- Could not open the editor: An unexpected exception was thrown 错误
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
- WCF:The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.
- Debugger:: An unhandled non-continuable exception was thrown during process load
- **********method.Invoke Exception has been thrown by the target
- Step By Step Guide to configure the “Replicating directory changes” for SharePoint 2010 and 2013