在激活SP 2013工作流程功能时,“UserAgent不可用文件操作可能不会被优化”错误 -- 2013 领域 和 workflow 领域 和 sharepoint-server 领域 和 error 领域 和 feature-activation 领域 sharepoint 相关 的问题

'useragent not available file operations may not be optimized' error when activating SP 2013 workflow feature


简体版||繁體版
2
vote

问题

中文

我有一个临时环境,我还原了生产备份文件。该网站正常工作。但是,当我部署我的自定义SP 2013工作流并激活工作流程功能时,我会在我的ULS日志中获得下面提到的错误。

  UserAgent not available, file operations may not be optimized.     at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb)      at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult)      at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocumentRowset(Guid databaseId, SqlSession session, SPFileStreamManager spfstm, Object[] metadataRow, SPRowset contentRowset, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)      at Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)      at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)      at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)      at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)      at Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId)      at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& isAppWeb, Boolean& fGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes)      at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound)      at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath)      at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)      at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)      at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)      at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)      at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)      at System.Web.UI.Page.ApplyMasterPage()      at System.Web.UI.Page.PerformPreInit()      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      at System.Web.UI.Page.ProcessRequest()      at System.Web.UI.Page.ProcessRequest(HttpContext context)      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)      at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)      at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)      at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)      at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)      at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   

更新1(一个越来越日志):

  [Forced due to logging gap, cached @ 04/20/2015 14:48:30.90, Original Level: Verbose] SQL connection time: 0.0665452078676962 for Data Source=servernamestaging;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80]   

更新2(在重新创建启动服务应用程序后收到此错误)

  Feature receiver assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.WorkflowServices.SPWorkflowPackageFeatureReceiver', method 'FeatureActivated' for feature 'dba7e829-5e2b-40c5-8105-68746b33ef93' threw an exception: System.InvalidOperationException: Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'LookupSPListItem.ItemId'. HTTP headers received from the server - ActivityId: 056f7427-f724-4628-b61a-cdef4e3bc731. NodeId: S-SHP-SHK-01. Scope: /SharePoint/default/7eabb605-2300-4b23-b758-fbd88b3ab02c/e8e06602-c471-4fe8-b076-79d86bbca942. Client ActivityId : f464fa9c-5ed3-3022-9eb2-3b00a6271e36. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()     at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)     at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)      at Microsoft.SharePoint.WorkflowServices.SPWorkflowPackageFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties)      at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)   

更新3(我使登录的帐户为content db的db_owner)

  Application error when access /_layouts/15/ManageFeatures.aspx, Error=Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'LookupSPListItem.ItemId'. HTTP headers received from the server - ActivityId: 056f7427-f724-4628-b61a-cdef4e3bc731. NodeId: S-SHP-SHK-01. Scope: /SharePoint/default/7eabb605-2300-4b23-b758-fbd88b3ab02c/e8e06602-c471-4fe8-b076-79d86bbca942. Client ActivityId : f464fa9c-5ed3-3022-9eb2-3b00a6271e36. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()     at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)     at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)   at Microsoft.SharePoint.WorkflowServices.SPWorkflowPackageFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties)      at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)      at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)      at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)      at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, Boolean fIgnoreMissing, SPFeatureDefinitionScope featdefScope)      at Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, Int32 compatibilityLevel, SPFeatureDefinitionScope featdefScope)      at Microsoft.SharePoint.WebControls.FeatureActivatorItem.ToggleFeatureActivation()      at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   

更新4(运行stsadm -o activatefeature并再次获得以下错误

  Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'LookupSPListItem.ItemId'. HTTP headers received from the server - ActivityId: 056f7427-f724-4 628-b61a-cdef4e3bc731. NodeId: S-SHP-SHK-01. Scope: /SharePoint/default/7eabb605-2300-4b23-b758-fbd88b3ab02c/e8e06602-c4 71-4fe8-b076-79d86bbca942. Client ActivityId : f464fa9c-5ed3-3022-9eb2-3b00a6271e36. ---> System.Net.WebException: The r emote server returned an error: (400) Bad Request.    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)    at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)    at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    --- End of inner exception stack trace ---    at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)    at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Bo olean terminateDependentInstances)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, Acti vityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementCli ent client, ActivityDescription activityDefinition, String serviceGroupName)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4( )    at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesCo ntext context, EcosystemRequiredMethod method)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workfl owDefinition)    at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperti es properties)   

如何解决错误的建议? 我应该在哪里开始?

英文原文

I have a staging environment where I restored a Production backup file. The site works fine. However when I deploy my custom SP 2013 workflow and activate the workflow feature, I get the below mentioned error in my ULS logs.

UserAgent not available, file operations may not be optimized.     at Microsoft.SharePoint.SPFileStreamManager.CreateCobaltStreamContainer(SPFileStreamStore spfs, ILockBytes ilb, Boolean copyOnFirstWrite, Boolean disposeIlb)      at Microsoft.SharePoint.SPFileStreamManager.SetInputLockBytes(SPFileInfo& fileInfo, SqlSession session, PrefetchResult prefetchResult)      at Microsoft.SharePoint.CoordinatedStreamBuffer.SPCoordinatedStreamBufferFactory.CreateFromDocumentRowset(Guid databaseId, SqlSession session, SPFileStreamManager spfstm, Object[] metadataRow, SPRowset contentRowset, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)      at Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)      at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)      at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)      at Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Byte bMainFileRequest, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder, Guid& pgDocScopeId)      at Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId)      at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& isAppWeb, Boolean& fGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes)      at Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.GetWebPartPageData(HttpContext context, String path, Boolean throwIfFileNotFound)      at Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetCacheKey(String virtualPath)      at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate)      at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)      at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)      at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)      at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)      at System.Web.UI.Page.ApplyMasterPage()      at System.Web.UI.Page.PerformPreInit()      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)      at System.Web.UI.Page.ProcessRequest()      at System.Web.UI.Page.ProcessRequest(HttpContext context)      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)      at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)      at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)      at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)      at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)      at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)      at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 

Update 1 (one more log):

[Forced due to logging gap, cached @ 04/20/2015 14:48:30.90, Original Level: Verbose] SQL connection time: 0.0665452078676962 for Data Source=servername\staging;Initial Catalog=WSS_Content_80;Integrated Security=True;Enlist=False;Pooling=True;Min Pool Size=0;Max Pool Size=100;Connect Timeout=15;Application Name=SharePoint[w3wp][2][WSS_Content_80] 

Update 2 (Got this error after recreating the Start Service Application)

Feature receiver assembly 'Microsoft.SharePoint.WorkflowServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.WorkflowServices.SPWorkflowPackageFeatureReceiver', method 'FeatureActivated' for feature 'dba7e829-5e2b-40c5-8105-68746b33ef93' threw an exception: System.InvalidOperationException: Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'LookupSPListItem.ItemId'. HTTP headers received from the server - ActivityId: 056f7427-f724-4628-b61a-cdef4e3bc731. NodeId: S-SHP-SHK-01. Scope: /SharePoint/default/7eabb605-2300-4b23-b758-fbd88b3ab02c/e8e06602-c471-4fe8-b076-79d86bbca942. Client ActivityId : f464fa9c-5ed3-3022-9eb2-3b00a6271e36. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()     at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)     at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)      at Microsoft.SharePoint.WorkflowServices.SPWorkflowPackageFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties)      at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce) 

Update 3 (I made the logged in account as db_owner of the content DB)

Application error when access /_layouts/15/ManageFeatures.aspx, Error=Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'LookupSPListItem.ItemId'. HTTP headers received from the server - ActivityId: 056f7427-f724-4628-b61a-cdef4e3bc731. NodeId: S-SHP-SHK-01. Scope: /SharePoint/default/7eabb605-2300-4b23-b758-fbd88b3ab02c/e8e06602-c471-4fe8-b076-79d86bbca942. Client ActivityId : f464fa9c-5ed3-3022-9eb2-3b00a6271e36. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.     at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)     at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    --- End of inner exception stack trace ---     at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)     at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, ActivityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementClient client, ActivityDescription activityDefinition, String serviceGroupName)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4()     at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesContext context, EcosystemRequiredMethod method)     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workflowDefinition)     at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties properties)   at Microsoft.SharePoint.WorkflowServices.SPWorkflowPackageFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties properties)      at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)      at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)      at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)      at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, Boolean fIgnoreMissing, SPFeatureDefinitionScope featdefScope)      at Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, Int32 compatibilityLevel, SPFeatureDefinitionScope featdefScope)      at Microsoft.SharePoint.WebControls.FeatureActivatorItem.ToggleFeatureActivation()      at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

Update 4 (Ran the stsadm -o activatefeature and got the below mentioned error again

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot set unknown member 'LookupSPListItem.ItemId'. HTTP headers received from the server - ActivityId: 056f7427-f724-4 628-b61a-cdef4e3bc731. NodeId: S-SHP-SHK-01. Scope: /SharePoint/default/7eabb605-2300-4b23-b758-fbd88b3ab02c/e8e06602-c4 71-4fe8-b076-79d86bbca942. Client ActivityId : f464fa9c-5ed3-3022-9eb2-3b00a6271e36. ---> System.Net.WebException: The r emote server returned an error: (400) Bad Request.    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)    at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)    at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    --- End of inner exception stack trace ---    at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)    at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)    at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Bo olean terminateDependentInstances)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.PublishActivity(String serviceGroupName, Acti vityDescription activity, Boolean overwriteXClass, Nullable`1 terminateInstances)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishActivity(FabricWorkflowManagementCli ent client, ActivityDescription activityDefinition, String serviceGroupName)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.<>c__DisplayClass5.<PublishDefinition>b__4( )    at Microsoft.SharePoint.WorkflowServices.WorkflowServiceContextExtensions.InvokeWithEcosystemRetry(WorkflowServicesCo ntext context, EcosystemRequiredMethod method)    at Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition workfl owDefinition)    at Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperti es properties) 

Any suggestions to fix the error? Where should I start?

              
         
         

回答列表

1
 
vote

通过执行以下脚本来尝试重新创建状态服务应用程序:

  $serviceApp = New-SPStateServiceApplication -Name "State Service"  New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp  New-SPStateServiceApplicationProxy -Name "State Service Proxy" -ServiceApplication $serviceApp -DefaultProxyGroup   
 

Try recreating State Service Application by executing following script:

$serviceApp = New-SPStateServiceApplication -Name "State Service"  New-SPStateServiceDatabase -Name "StateServiceDatabase" -ServiceApplication $serviceApp  New-SPStateServiceApplicationProxy -Name "State Service Proxy" -ServiceApplication $serviceApp -DefaultProxyGroup 
 
 
 
 
1
 
vote
vote
最佳答案
 

我确实找到了一个解决方案..但是我不知道它有多实际。这就是我所做的:

  1. 在我的舞台上安装了Visual Studio 2012。用'更新更新 4'。
  2. 为vs 2012安装了办公工具。
  3. 获取工作流程代码并通过Visual Studio部署它。 (和该 部署工作)。
  4. 通过Visual Studio缩回了解决方案。
  5. 通过stsadm命令手动添加.wsp文件并激活 功能成功。

由于它是暂存环境,我有很多次重新启动服务器的自由。

更新 我猜Visual Studio熨烫了我们所面临的配置扭结。根本不是一个漂亮的解决方案。但嘿,这是工作!

 

I did find a solution.. However I don't know how practical it is. This is what I did:

  1. Installed Visual Studio 2012 on my Staging. Updated it with 'Update 4'.
  2. Installed office tool for VS 2012.
  3. Got the work flow code and deployed it via Visual Studio. (And the deployment worked).
  4. Retracted the solution via Visual Studio.
  5. Added the .wsp files manually via STSADM command and activated the features successfully.

Since it was the staging environment, I had the liberty of rebooting the server many times.

Update I guess Visual Studio irons out the configuration kinks that we face. Not a pretty solution at all. But hey it does the job!

 
 
 
 
0
 
vote

尝试刷新blob缓存。

  $webApp = Get-SPWebApplication "<WebApplicationURL>" [Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp) Write-Host "Flushed the BLOB cache for:" $webApp   

刷新blob cache

 

Try to Flush the BLOB cache.

$webApp = Get-SPWebApplication "<WebApplicationURL>" [Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp) Write-Host "Flushed the BLOB cache for:" $webApp 

Flush the BLOB cache

 
 
       
       

相关问题

2  尝试使用附加功能接收器进行编程方式激活沙箱功能时,“服务过于繁忙”异常  ( Service too busy exception occurrs when trying to programmatically activate a ) 
标题说明这一切......我正在尝试以编程方式激活一些沙箱特征(来自也是一个也是沙箱解决方案的一部分的功能regiver)。而且在没有接收器的功能中,所有都激活精细,那么带接收器的特征失败了以下异常: 拒绝沙箱代码执行请求是因为沙箱 代码主机服务太忙,无法处理请求。 重新标准,这种只有发生的自定义沙箱功能,它...

0  功能激活错误(不能将DLL添加到GAC)  ( Feature activation errorcannot add dll to gac ) 
我们创建了一个功能,其中有2个应用程序页面。一个是激活用户控件,另一个是用于数据库配置。对于数据库配置,用户必须提供.mdf和.ldf文件以还原数据库。 要恢复数据库,我们使用了microsoft.sqlserver.replication.dll。该功能正常工作,但是当我们在任何其他计算机上部署它时,在激活时,它...

0  即使功能已停用,也会应用自定义委托  ( Custom delegate is applied even if the feature is deactivated ) 
我对一个问题有一个问题。 情况: 我有一个农场范围的功能,使用此功能我部署了委托控制(XML文件),此文件是指CS代码。 所以我已经将该文件添加到我部署解决方案的解决方案中,我设置了不自动激活的解决方案。因此,当我部署解决方案时,它被取消激活,但我确实看到我的自定义委托控制使用。 是奇怪的,无论是激活的功能是否激活,...

0  仅在生产中部署时出错  ( Error deploying in production only ) 
我有一个SharePoint解决方案,包括2个功能。第一个功能由5个SharePoint 2010工作流程和某些网页组成。第二个是空的,并且具有用于部署SharePoint定时器作业的功能事件接收器。这两种功能都有范围设置到网站,SharePoint项目被强烈签名,而且,通常,解决方案包由那些2个功能组成,可以部署到...

4  Microsoft .NET运行时的第4.0.30319.225版本不支持Microsoft SharePoint  ( Microsoft sharepoint is not supported with version 4 0 30319 225 of the microsof ) 
所以,故事如下: 我刚加入了一个现有的SharePoint项目的团队,SharePoint在所有环境中安装RTM,从Dev到生产。 但由于它的2家公司为同一项目工作,我作为第二家公司的成员,我的VM已经安装了.NET Framework 4.0。 所以我负责制作一些更改,添加字段,功能等。 ,当我打算使用enable...

3  使用.wsp将.dll部署到Web应用程序bin文件夹使用.wsp失败功能recevier  ( Deploying dlls to the web application bin folder using wsp fails with feature ) 
使用.wsp将.dll部署到bin目录时,我的功能接收器似乎在部署阶段吹来,因为它们无法找到我的功能接收器的相关代码。 如何处理这个? ...

0  使用特征接收器将目录添加到Web应用程序文件夹  ( Using a feature receiver to add a directory to the web applications folder ) 
想知道有人是否知道如何使用特征事件接收器(FeatureaCivated)在IIS中将目录/文件夹添加到Web应用程序文件夹中。 任何帮助感谢。 ...

2  激活功能错误  ( Error activating feature ) 
我已经为SharePoint 2007创建了一个解决方案包,并已在开发服务器上安装和部署它。但是,当我通过站点功能激活它时,我会获得一个可爱的错误堆栈页面: Cannot insert the value NULL into column 'Assembly', table 'wss_content_rginfo...

0  无法部署自定义内容类型  ( Cant deploy custom content type ) 
我在我的功能中有内容类型,当我尝试调试我的功能时,我收到以下错误: Error occurred in deployment step 'Activate Features': The content type with Id 0x01005B614C2D37A841DE8D1739C2A6ECDF82 def...

1  站点功能激活  ( Site feature activation ) 
我有一个sharepoint列表,它一旦批准创建子部分。我需要通过工作流程休息呼叫激活功能。我已经建立了以下词典 标题: 接受:应用程序/ json; odata = verbose content-type:application / json; odata = verbose 元数据: 类型:sp....

1  Spsite.Features.Add(...)和SpWeb.features.add(...)之间的区别  ( Difference betweeen spsite features add and spweb features add ) 
我已创建一个名为feature1的功能。 Feature1在SharePoint站点中激活。我创建一个包含以下代码的Web部件。 SPSite site = new SPSite("http://intranet/site1"); SPWeb web = site.OpenWeb(); SPFeatureD...

1  创建网站模板 - 升级后未处理母版页  ( Creating site templates master page not being handled right after upgrade ) 
在我们的旧MOSS 2007农场中,我们有一个品牌特征部署,为我们的网站交换了CSS文件,硕士页面等,以在我们的网站集中保持一致的品牌。我们目前正在迁移到2010年,所以在做完之后,我们注意到我们的风格表和硕士页面看起来相当难看,因此我们在稍后将所有集合中进行了停用它们。 但是,当我们创建一个新的网站模板.cab文件...

3  供应没有成功。无法创建页面库  ( Provisioning did not succeed failed to create pages library ) 
我有一个尝试在网站集中创建新子站点的客户。如果他们使用发布站点模板或创建团队站点并尝试激活发布功能,它将始终使用以下错误消息(从ULS抓取): 对于异常system.web.httpunhandledException来获取错误消息 (0x80004005):类型'system.web.httpunhandle...

0  激活2007年的“Office SharePoint Server发布”  ( Activate office sharepoint server publishing in 2007 ) 
当我尝试激活根级别站点的Office SharePoint Server发布时,我继续获得 必须转动一个或多个功能 在此功能之前可以 激活。 我试图做 stsadm -o activatefeature -name PublishingPrerequisites -url http://website...

1  您如何为PowerShell中的-Url参数表示Web应用程序对网站集合?  ( How do you indicate a web application vs site collection in for the url paramet ) 
当我运行以下代码脚本时: enable-spfeature "MyFeature" â€"url "http://myportal:5555" 我收到错误: 此功能不是服务场所功能,并找不到网站 由URL http://myportal.com:5555 技术上这是正确的,但我想在Web应用程...

0  如何使用代码配置摘要链接Web部件的样式和布局?  ( How do i configure styles and layout of a summary link web part using code ) 
我已成功添加了摘要链接Web部件作为一个功能,并希望配置它的样式和布局,包括: 新链接的默认样式 集团标题样式 组的列数 我还想向Web部件添加两个新组。 在部署期间将Web部件作为功能安装Web部件时,我需要执行此操作。 任何引线都会真正有所帮助。 ...

2  将所有列表表单中的jslink属性设置为Featureagentated  ( Set the jslink property for all list forms in featureactivated ) 
是可以更新 spform.jslink属性在功能激活时,现有列表的表单(显示,新,编辑)? 我已经尝试了下面的代码,但似乎没有应用更改(即 99887660 属性在后续功能激活时为空): public override void FeatureActivated(SPFeatureReceiverProperti...

0  SharePoint 2010错误添加功能事件接收器  ( Sharepoint 2010 error adding a feature event receiver ) 
我想添加一个功能事件接收器,将WebPart添加到页面, 我遵循这个 link 但是当我尝试部署它时,我会仔细阅读以下错误: 部署步骤中发生错误"激活功能" :程序集 实现ASP.NET Web部件,并安装到部分受信任的内容中 必须使用诸如bin目录等位置 allarpartialetrustedc...

0  激活实现SpFeaturereceiver的功能时访问拒绝?  ( Access denied when activating features implementing spfeaturereceiver ) 
我们开发了几种实现SpFeatureCeiver接口的功能。当在开发环境中尝试它时,首先失败,直到我找到来自msdn 的脚本: function Set-RemoteAdministratorAccessDenied-False() { [System.Reflection.Assembly]::L...

2  “...”的内容类型“文档收集文件夹”是密封的  ( The content type document collection folder at is sealed ) 
它是大约2天,自己作为完全控制和我的用户尝试将文档上传到SharePoint 2013资产库此错误弹出它们 "..." 的内容类型"文档收集文件夹" 是密封的。 我搜索,我在网站集合级别激活了"视频和富媒体" 功能,但它没有改变。 这是非常重要的,很重要,所以我很欣赏,如果有人可以帮助这个问题。 ...

1  featureactivated()不绑定两个植入性receiverdefinitions  ( Featureactivated not binding two speventreceiverdefinitions ) 
我有一个我在oneet.xml中放置的功能,以便在创建网站集时使其活动。该功能包含两个权限组的事件接收器定义。一个是用户添加的,另一个是用户删除。我的问题是,当我创建新的网站时,我发现激活的功能,但只有Exvery Receiver定义为用户添加绑定,要绑定我必须手动重新激活该功能的其他定义。 我的代码是: pu...

2  创建站点列(查找类型)  ( Create site column lookup type ) 
是有没有创建网站列(查找)的任何实体(已验证的)方法,其中列表GUID未知? 我认为这是一个功能激活踢的地方;通过其名称获取查找列表,然后使用GUID创建查找。 ...

1  功能未激活  ( Feature not activating ) 
我有一个空的SharePoint解决方案,其中我添加了一个事件receiver,它尝试在SharePoint Farm创建新的诊断类别。要测试我在FeatureActivated方法和F5调试中设置一个断点,但它不会被命中。我是使用错误的方法还是错过了一个概念? ...

3  启用 - spfeature不起作用  ( Enable spfeature not working ) 
我正在使用powershell脚本来部署和激活相同脚本中的功能。一切正常工作,我可以在SharePoint根文件夹中看到我的功能(14个Hive)。 我使用farm admin运行它。 我的功能是网站集级别,当我运行以下行进行root collection级别。 Enable-SPFeature -Identit...

4  列出未在初始部署的功能激活上创建的实例  ( List instances not created on feature activation for initial deployment ) 
我有两个功能,一个包含内容类型和列表定义的内容类型功能,以及从列表定义创建列表实例的列表功能。两个功能在Central Admin上自动激活。 当我部署我的解决方案时,两个功能都被激活,创建了内容类型/定义,但列表实例不是。如果我停用我的列表功能并重新激活它,则在该点创建列表实例。 任何想法如何在解决方案部署时创建它...

相关问题

2  尝试使用附加功能接收器进行编程方式激活沙箱功能时,“服务过于繁忙”异常 
0  功能激活错误(不能将DLL添加到GAC) 
0  即使功能已停用,也会应用自定义委托 
0  仅在生产中部署时出错 
4  Microsoft .NET运行时的第4.0.30319.225版本不支持Microsoft SharePoint 
3  使用.wsp将.dll部署到Web应用程序bin文件夹使用.wsp失败功能recevier 
0  使用特征接收器将目录添加到Web应用程序文件夹 
2  激活功能错误 
0  无法部署自定义内容类型 
1  站点功能激活 
1  Spsite.Features.Add(...)和SpWeb.features.add(...)之间的区别 
1  创建网站模板 - 升级后未处理母版页 
3  供应没有成功。无法创建页面库 
0  激活2007年的“Office SharePoint Server发布” 
1  您如何为PowerShell中的-Url参数表示Web应用程序对网站集合? 
0  如何使用代码配置摘要链接Web部件的样式和布局? 
2  将所有列表表单中的jslink属性设置为Featureagentated 
0  SharePoint 2010错误添加功能事件接收器 
0  激活实现SpFeaturereceiver的功能时访问拒绝? 
2  “...”的内容类型“文档收集文件夹”是密封的 
1  featureactivated()不绑定两个植入性receiverdefinitions 
2  创建站点列(查找类型) 
1  功能未激活 
3  启用 - spfeature不起作用 
4  列出未在初始部署的功能激活上创建的实例 



© 2021 it.wenda123.org All Rights Reserved. 问答之家 版权所有