asp.net - How can resolve Error: "Could not load type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010? -


After creating a web part in the SharePoint 2010 server, the following error occurs.

Web Part Error: unexpected exception was thrown by the execution method of user code cover partial Trust app domain: SystemkWebkHttpUnhandledException: the 'throw exception System.Web.HttpUnhandledException' type ---> System.TypeLoadException: Could not load type 'Microsoft.SharePoint.WebControls.SPGridView' from the assembly. Microsoft.SharePoint, version = 14.900.0.0, culture = neutral, publicKeyToken = 71e9bce111e9429c '. ListMenuSample.ListMenuSample.ListMenuSample.CreateChildControls (on System.Web.UI.Control.EnsureChildControls on System.Web ()) on System.Web.UI.Control.PreRenderRecursiveInternal () () on System.Web.UI.Control.PreRenderRecursiveInternal System.Web.UI.Control.PreRenderRecursiveInternal (on System.Web.UI.Page.ProcessRequestMain) (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) on .UI.Control.PreRenderRecursiveInternal () --- end of inner exception stack trace --- System.Web.UI.Page.HandleError (exception e) on system. In Web.UI.Page.ProcessRequestMain (Systems Incorporated in BooleanStagesBeforeAsyncPoint, Boolean StageAfterAsyncPoint) included in System.Web.UI.Page.ProcessRequest (Boolean include StagesBeforeAsyncPoint, Boolean StageAfterAsyncPoint) systems. Web.UI.Page.ProcessRequest () on System.Web.UI.Page.ProcessRequest (HttpContext context) at Microsoft.SharePoint.UserCode.SPUserCodeWebPartWrapper.ExecuteHttpRequest (SPUserCodeWebPartHttpRequestContext webPartExecutionC ontext, SPUserCodeWebPartHttpResponse httpRequestResponse) Microsoft.SharePoint.UserCode.SPUserCodeApplicationHostAppDomainRef.Execute But what is the version number when you view the SharePoint 2010 server on Microsoft.SharePoint.UserCode.SPXScript (SPUserCodeExecutionContext executionContext) (type userCodeWrapperType, SPUserCodeCachedAssemblyGroup userAssemblyGroup, Guid siteCollectionId, byte [] binaryUserCodeToken, byte [] proxyOperationToken, SPUserCodeExecutionContext ?

In addition to this, Just want to check twice that you are not deploying a copy of your solution with Microsoft.SharePoint DLL, because it will be bad.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -