Sharepoint错误:[COMException(0x80004005):无法完成此操作

时间:2010-05-20 08:41:03

标签: sharepoint

我创建了一个使用不同主页和默认页面的网站基本定义。一切都很顺利,除非我根据定义创建新网站时,我在浏览新网站时收到以下错误:

[COMException (0x80004005): Cannot complete this action. Please try again.]
Please try again.]  
   Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, 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) +0
   Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, 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) +219

[SPException: Cannot complete this action.

Please try again.]

我可以通过检查新的母版页并再次检查它来解决这个问题,这样做之后就没有其他问题了。

任何可能导致这种情况的想法?

ONET.XML模块部分:

  <Modules>
    <Module Name="CustomMasterPage" List="116" Url="_catalogs/masterpage" RootWebOnly="FALSE">
      <File Url="Shoes.master" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" /> 
    </Module>
    <Module Name="Default" List="116" Url="">
      <File Url="default.aspx" Name="default.aspx" NavBarHome="True" IgnoreIfAlreadyExists="FALSE">
        <AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
          &lt;webParts&gt;&lt;webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt;&lt;metaData&gt;&lt;type name="BCM.SharePoint.Shoes.ShoesComponents.FooterLinks, BCM.SharePoint.Shoes.ShoesComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2881713f39360b71" /&gt;&lt;importErrorMessage&gt;Cannot import this Web Part.&lt;/importErrorMessage&gt;&lt;/metaData&gt;&lt;data&gt;&lt;properties&gt;&lt;property name="AllowClose" type="bool"&gt;True&lt;/property&gt;&lt;property name="Width" type="string" /&gt;&lt;property name="MyProperty" type="string"&gt;Hello SharePoint&lt;/property&gt;&lt;property name="AllowMinimize" type="bool"&gt;True&lt;/property&gt;&lt;property name="AllowConnect" type="bool"&gt;True&lt;/property&gt;&lt;property name="ChromeType" type="chrometype"&gt;None&lt;/property&gt;&lt;property name="TitleIconImageUrl" type="string"&gt;/_layouts/images/BCM_SharePoint_Shoes/wp_FooterLinks.gif&lt;/property&gt;&lt;property name="Description" type="string"&gt;FooterLinks Description&lt;/property&gt;&lt;property name="Hidden" type="bool"&gt;False&lt;/property&gt;&lt;property name="TitleUrl" type="string" /&gt;&lt;property name="AllowEdit" type="bool"&gt;True&lt;/property&gt;&lt;property name="Height" type="string" /&gt;&lt;property name="MissingAssembly" type="string"&gt;Cannot import this Web Part.&lt;/property&gt;&lt;property name="HelpUrl" type="string" /&gt;&lt;property name="Title" type="string" /&gt;&lt;property name="CatalogIconImageUrl" type="string"&gt;/_layouts/images/BCM_SharePoint_Shoes/wp_FooterLinks.gif&lt;/property&gt;&lt;property name="Direction" type="direction"&gt;NotSet&lt;/property&gt;&lt;property name="ChromeState" type="chromestate"&gt;Normal&lt;/property&gt;&lt;property name="AllowZoneChange" type="bool"&gt;True&lt;/property&gt;&lt;property name="AllowHide" type="bool"&gt;True&lt;/property&gt;&lt;property name="HelpMode" type="helpmode"&gt;Modeless&lt;/property&gt;&lt;property name="ExportMode" type="exportmode"&gt;All&lt;/property&gt;&lt;/properties&gt;&lt;/data&gt;&lt;/webPart&gt;&lt;/webParts&gt;
        </AllUsersWebPart>
        <AllUsersWebPart WebPartZoneID="Left" WebPartOrder="0">
          &lt;webParts&gt;&lt;webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt;&lt;metaData&gt;&lt;type name="BCM.SharePoint.Shoes.ShoesComponents.SubFooterLinks, BCM.SharePoint.Shoes.ShoesComponents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2881713f39360b71" /&gt;&lt;importErrorMessage&gt;Cannot import this Web Part.&lt;/importErrorMessage&gt;&lt;/metaData&gt;&lt;data&gt;&lt;properties&gt;&lt;property name="AllowClose" type="bool"&gt;True&lt;/property&gt;&lt;property name="Width" type="string" /&gt;&lt;property name="MyProperty" type="string"&gt;Hello SharePoint&lt;/property&gt;&lt;property name="AllowMinimize" type="bool"&gt;True&lt;/property&gt;&lt;property name="AllowConnect" type="bool"&gt;True&lt;/property&gt;&lt;property name="ChromeType" type="chrometype"&gt;None&lt;/property&gt;&lt;property name="TitleIconImageUrl" type="string"&gt;/_layouts/images/BCM_SharePoint_Shoes/wp_SubFooterLinks.gif&lt;/property&gt;&lt;property name="Description" type="string"&gt;Shoes home page links (under the hero image)&lt;/property&gt;&lt;property name="Hidden" type="bool"&gt;False&lt;/property&gt;&lt;property name="TitleUrl" type="string" /&gt;&lt;property name="AllowEdit" type="bool"&gt;True&lt;/property&gt;&lt;property name="Height" type="string" /&gt;&lt;property name="MissingAssembly" type="string"&gt;Cannot import this Web Part.&lt;/property&gt;&lt;property name="HelpUrl" type="string" /&gt;&lt;property name="Title" type="string" /&gt;&lt;property name="CatalogIconImageUrl" type="string"&gt;/_layouts/images/BCM_SharePoint_Shoes/wp_SubFooterLinks.gif&lt;/property&gt;&lt;property name="Direction" type="direction"&gt;NotSet&lt;/property&gt;&lt;property name="ChromeState" type="chromestate"&gt;Normal&lt;/property&gt;&lt;property name="AllowZoneChange" type="bool"&gt;True&lt;/property&gt;&lt;property name="AllowHide" type="bool"&gt;True&lt;/property&gt;&lt;property name="HelpMode" type="helpmode"&gt;Modeless&lt;/property&gt;&lt;property name="ExportMode" type="exportmode"&gt;All&lt;/property&gt;&lt;/properties&gt;&lt;/data&gt;&lt;/webPart&gt;&lt;/webParts&gt;
        </AllUsersWebPart>
        <NavBarPage Name="$Resources:core,nav_Home;" ID="1002" Position="Start" />
        <NavBarPage Name="$Resources:core,nav_Home;" ID="0" Position="Start" />
      </File>
    </Module>
  </Modules>

日志输出:

05/21/2010 12:22:55.11  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72nz    Medium      Videntityinfo::isFreshToken reported failure.    
05/21/2010 12:22:55.19  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88yv    Medium      Creating default lists   
05/21/2010 12:22:55.19  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72lp    Medium      Creating directory Lists     
05/21/2010 12:22:55.26  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88yf    Medium      Creating list "Master Page Gallery" in web "http://mmm-dev-ll/sites/Shoes/test" at URL "_catalogs/masterpage", (setuppath: "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\global\lists\mplib")    
05/21/2010 12:22:55.28  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88y1    Medium      No document templates uploaded for list "Master Page Gallery" -- none found for list template "100".     
05/21/2010 12:22:55.28  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72kc    Medium      Failed to find generic XML file at "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\xml\onet.xml", falling back to global site definition.  
05/21/2010 12:22:56.22  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88yz    Medium      Creating default modules at URL "http://mmm-dev-ll/sites/Shoes/test"     
05/21/2010 12:22:56.22  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8e27    Medium      Ensuring module folder _catalogs/masterpage  
05/21/2010 12:22:56.89  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72h7    Medium      Applying template "SubSite#1" to web at URL "http://mmm-dev-ll/sites/Shoes/test".    
05/21/2010 12:22:57.09  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88yy    Medium      Activating web-scoped features for template "SubSite#1" at URL "http://mmm-dev-ll/sites/Shoes/test"  
05/21/2010 12:22:57.12  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8l1c    Medium      Preparing 20 features for activation     
05/21/2010 12:22:57.14  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8l1d    Medium      Feature Activation: Batch Activating Features at URL http://mmm-dev-ll/sites/Shoes/test 'AnnouncementsList' (ID: '00bfea71-d1ce-42de-9c63-a44004ce0104'), 'ContactsList' (ID: '00bfea71-7e6d-4186-9ba8-c047ac750105'), 'CustomList' (ID: '00bfea71-de22-43b2-a848-c05709900100'), 'DataSourceLibrary' (ID: '00bfea71-f381-423d-b9d1-da7a54c50110'), 'DiscussionsList' (ID: '00bfea71-6a49-43fa-b535-d15c05500108'), 'DocumentLibrary' (ID: '00bfea71-e717-4e80-aa17-d0c71b360101'), 'EventsList' (ID: '00bfea71-ec85-4903-972d-ebe475780106'), 'GanttTasksList' (ID: '00bfea71-513d-4ca0-96c2-6a47775c0119'), 'GridList' (ID: '00bfea71-3a1d-41d3-a0ee-651d11570120'), 'IssuesList' (ID: '00bfea71-5932-4f9c-ad71-1557e5751100'), 'LinksList' (ID: '00bfea71-2062-426c-90bf-714c59600103'), 'NoCodeWorkflowLibrary' (ID: '00bfe...   
05/21/2010 12:22:57.14* w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8l1d    Medium      ...a71-f600-43f6-a895-40c0de7b0117'), 'PictureLibrary' (ID: '00bfea71-52d4-45b3-b544-b1c71b620109'), 'SurveysList' (ID: '00bfea71-eb8a-40b1-80c7-506be7590102'), 'TasksList' (ID: '00bfea71-a83e-497e-9ba0-7a5c597d0107'), 'WebPageLibrary' (ID: '00bfea71-c796-4402-9f2f-0eb9a6e71b18'), 'workflowProcessList' (ID: '00bfea71-2d77-4a75-9fca-76516689e21a'), 'WorkflowHistoryList' (ID: '00bfea71-4ea5-48d4-a4ad-305cf7030140'), 'XmlFormLibrary' (ID: '00bfea71-1e1d-4562-b56a-f05371bb0115'), 'TeamCollab' (ID: '00bfea71-4ea5-48d4-a4ad-7ea5c011abe5'), .    
05/21/2010 12:22:57.15  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8l1f    Medium      Feature Activation: Batch Activated Features at URL http://mmm-dev-ll/sites/Shoes/test 'AnnouncementsList' (ID: '00bfea71-d1ce-42de-9c63-a44004ce0104'), 'ContactsList' (ID: '00bfea71-7e6d-4186-9ba8-c047ac750105'), 'CustomList' (ID: '00bfea71-de22-43b2-a848-c05709900100'), 'DataSourceLibrary' (ID: '00bfea71-f381-423d-b9d1-da7a54c50110'), 'DiscussionsList' (ID: '00bfea71-6a49-43fa-b535-d15c05500108'), 'DocumentLibrary' (ID: '00bfea71-e717-4e80-aa17-d0c71b360101'), 'EventsList' (ID: '00bfea71-ec85-4903-972d-ebe475780106'), 'GanttTasksList' (ID: '00bfea71-513d-4ca0-96c2-6a47775c0119'), 'GridList' (ID: '00bfea71-3a1d-41d3-a0ee-651d11570120'), 'IssuesList' (ID: '00bfea71-5932-4f9c-ad71-1557e5751100'), 'LinksList' (ID: '00bfea71-2062-426c-90bf-714c59600103'), 'NoCodeWorkflowLibrary' (ID: '00bfea...   
05/21/2010 12:22:57.15* w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8l1f    Medium      ...71-f600-43f6-a895-40c0de7b0117'), 'PictureLibrary' (ID: '00bfea71-52d4-45b3-b544-b1c71b620109'), 'SurveysList' (ID: '00bfea71-eb8a-40b1-80c7-506be7590102'), 'TasksList' (ID: '00bfea71-a83e-497e-9ba0-7a5c597d0107'), 'WebPageLibrary' (ID: '00bfea71-c796-4402-9f2f-0eb9a6e71b18'), 'workflowProcessList' (ID: '00bfea71-2d77-4a75-9fca-76516689e21a'), 'WorkflowHistoryList' (ID: '00bfea71-4ea5-48d4-a4ad-305cf7030140'), 'XmlFormLibrary' (ID: '00bfea71-1e1d-4562-b56a-f05371bb0115'), 'TeamCollab' (ID: '00bfea71-4ea5-48d4-a4ad-7ea5c011abe5'), .     
05/21/2010 12:22:57.15  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         88jb    Medium      Feature Activation: Activating Feature 'RadEditorFeatureRichText' (ID: '747755cd-d060-4663-961c-9b0cc43724e9') at URL http://mmm-dev-ll/sites/Shoes/test.    
05/21/2010 12:22:57.15  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         75fb    Medium      Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'RadEditorFeatureRichText' (ID: '747755cd-d060-4663-961c-9b0cc43724e9').  
05/21/2010 12:22:57.20  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         75f8    Medium      Feature Activation: Feature 'RadEditorFeatureRichText' (ID: '747755cd-d060-4663-961c-9b0cc43724e9') was activated at URL http://mmm-dev-ll/sites/Shoes/test.     
05/21/2010 12:22:57.51  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88yv    Medium      Creating default lists   
05/21/2010 12:22:57.51  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72lp    Medium      Creating directory Lists     
05/21/2010 12:22:57.51  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     Fields                          88yz    Medium      Creating default modules at URL "http://mmm-dev-ll/sites/Shoes/test"     
05/21/2010 12:22:57.51  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         8e27    Medium      Ensuring module folder _catalogs/masterpage  
05/21/2010 12:22:57.56  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72ix    Medium      Not enough information to determine a list for module "Default". Assuming no list for this module.   
05/21/2010 12:22:57.87  w3wp.exe (0x1E40)                           0x18A4  Windows SharePoint Services     General                         72h8    Medium      Successfully applied template "SubSite#1" to web at URL "http://mmm-dev-ll/sites/Shoes/test".    
05/21/2010 12:22:59.48  w3wp.exe (0x1E40)                           0x0980  Windows SharePoint Services     General                         8e2s    Medium      Unknown SPRequest error occurred. More information: 0x80070057   
05/21/2010 12:23:07.06  OWSTIMER.EXE (0x0884)                       0x106C  Office Server                   Setup and Upgrade               8u3j    High        Registry key value {SearchThrottled} was not found under registry hive {Software\Microsoft\Office Server\12.0}. Assuming search sku is not throttled.    
05/21/2010 12:23:07.08  OWSTIMER.EXE (0x0884)                       0x106C  Search Server Common            MS Search Administration        90gf    Medium      SQL: dbo.proc_MSS_PropagationGetQueryServers     
05/21/2010 12:23:07.09  OWSTIMER.EXE (0x0884)                       0x106C  Search Server Common            MS Search Administration        8wni    High        Resuming default catalog with reason 'GPR_PROPAGATION' for application 'SharedServices1'...  
05/21/2010 12:23:07.11  OWSTIMER.EXE (0x0884)                       0x106C  Search Server Common            MS Search Administration        8wnj    High        Resuming anchor text catalog with reason GPR_PROPAGATION' for application 'SharedServices1'...   
05/21/2010 12:23:07.14  OWSTIMER.EXE (0x0884)                       0x106C  Search Server Common            MS Search Administration        8dvl    Medium      Search application '3c6751cc-37b0-470a-bfa2-bfd0b5635fe1': Provision start addresses in default content source.  
05/21/2010 12:23:07.15  OWSTIMER.EXE (0x0884)                       0x106C  Search Server Common            MS Search Administration        7hmh    High        exception in SearchUpgradeProvisioner Keyword Config System.InvalidOperationException: jobServerSearchServiceInstance is null     at Microsoft.Office.Server.Search.Administration.SearchUpgradeProvisioner..ctor(SearchServiceInstance searchServiceInstance)     at Microsoft.Office.Server.Search.Administration.OSSPrimaryGathererProject.ProvisionContentSources()  
05/21/2010 12:23:29.19  OWSTIMER.EXE (0x0884)                       0x0FFC  SharePoint Portal Server        Business Data                   79bv    High        Initiating BDC Cache Invalidation Check in AppDomain 'DefaultDomain'     
05/21/2010 12:23:29.19  OWSTIMER.EXE (0x0884)                       0x0FFC  SharePoint Portal Server        Business Data                   79bx    High        Completed BDC Cache Invalidation Check in AppDomain 'DefaultDomain'  
05/21/2010 12:23:45.84  OWSTIMER.EXE (0x0884)                       0x08A8  SharePoint Portal Server        SSO                             8inc    Medium      In SSOService::Synch(), sso database conn string:    
05/21/2010 12:23:50.80  OWSTIMER.EXE (0x0884)                       0x0F14  Excel Services                  Excel Services Administration   8tqi    Medium      ExcelServerSharedWebApplication.Synchronize: Starting synchronize for instance of Excel Services in SSP 'SharedServices1'.   
05/21/2010 12:23:50.80  OWSTIMER.EXE (0x0884)                       0x0F14  Excel Services                  Excel Services Administration   8tqj    Medium      ExcelServerSharedWebApplication.Synchronize: Successfully synchronized instance of Excel Services in SSP 'SharedServices1'.  
05/21/2010 12:23:52.31  w3wp.exe (0x1E40)                           0x0980  SharePoint Portal Server        Runtime                         8gp7    Medium      Topology cache updated. (AppDomain: /LM/W3SVC/1963195510/Root-1-129188762904047141)  

EVENT LOG:

Event Type: Warning
Event Source:   ASP.NET 2.0.50727.0
Event Category: Web Event 
Event ID:   1310
Date:       21/05/2010
Time:       12:24:51
User:       N/A
Computer:   mmm-DEV-ll
Description:
Event code: 3006 
Event message: A parser error has occurred. 
Event time: 5/21/2010 12:24:51 PM 
Event time (UTC): 5/21/2010 11:24:51 AM 
Event ID: 2661db3360d54081bb0f643b4c4a1d38 
Event sequence: 3549 
Event occurrence: 330 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/1963195510/Root-1-129188762904047141 
    Trust level: WSS_Minimal 
    Application Virtual Path: / 
    Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\80\ 
    Machine name: mmm-DEV-ll 

Process information: 
    Process ID: 7744 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
    Exception type: HttpParseException 
    Exception message: http://server//sites/Shoes/test/_catalogs/masterpage/Shoes.master(104): error CS0030: Cannot convert type 'Microsoft.SharePoint.WebControls.DelegateControl' to 'System.Web.UI.IAttributeAccessor' 

Request information: 
    Request URL: http://mmm-dev-ll/sites/Shoes/test/default.aspx 
    Request path: /sites/Shoes/test/default.aspx 
    User host address: 10.3.3.51 
    User: MAPLE\svc-shp-ll 
    Is authenticated: True 
    Authentication Type: NTLM 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 

Thread information: 
    Thread ID: 5 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: True 
    Stack trace:    at System.Web.UI.TemplateParser.ProcessException(Exception ex)
   at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
   at System.Web.UI.TemplateParser.ParseInternal()
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
   at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
   at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Custom event details: 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

2 个答案:

答案 0 :(得分:2)

我知道这已经很晚了,但是为了以防万一它可能仍然可以帮助某些人,我发现这个奇怪的异常可能是由于CAML查询中的错误格式被发送来询问列表。

就我而言,我忘记在/>代码的末尾添加FieldRef代码。

这是我的堆栈跟踪:

[COMException (0x80004005): Cannot complete this action.

Please try again.]
   Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +0
   Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +349

[SPException: Cannot complete this action.

Please try again.]
   Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +40346562
   Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +40195455
   Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData() +4292
   Microsoft.SharePoint.SPListItemCollection.GetEnumerator() +124

答案 1 :(得分:0)

首先,您需要在“默认”模块中为default.aspx定义Url。这就是ULS中出现错误的原因,也可能是该SPRequest错误的原因。

其次,一旦您将母版页应用到网站(我假设,我手动转到/_layouts/settings.aspx然后选择母版页),它是否有效? EventLog错误指向代理控件,但是它已经崩溃。

接下来,您的ULS日志提到它无法在永远不存在的位置找到onet.xml - 总是在12 {或14} \ TEMPLATE \ SiteTemplates {您的模板名称}中找到onet.xml \ XML

接下来,在评论中提到了14个日志文件夹(SharePoint 2010),但我上面提到的错误指向12个hive(SharePoint 2007 / WSS3)。

排序后,您可能会发现它突然开始工作。