FW: Exception from HRESULT: 0x81070201 when create list in MOSS
2010-04-21 18:03
567 查看
I'm creating a custom list template as a feature. The problem is that SharePoint can't seem to find my schema.xml for the list. In all examples I have found, the schema.xml file is always placed in a folder directly below the feature folder, with a name identical to the name of the list (as specified in the ListTemplate element). That won't work for me, however. The schema.xml for my list can be found at [featurename]\ListTemplates\[listname]\schema.xml. I have several list templates in my feature and want to organize them in a ListTemplate folder in my feature directory. But that means that SharePoint can't find the files, it seems. Everything works if I place the folder containing my list template schema.xml directly in my feature folder, however. Is it possible to solve this problem? The SDK mentions a Path attribute in the ListTemplate element which can be used to specify an alternative path to the schema.xml, but doesn't really mention what the path should look like...
The error I get looks like this, by the way:
Problem:
Exception from HRESULT: 0x81070201 at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
Solution:
In my case, I had to name the folder that contained Schema.xml with the same name I used for "Name" attribute in element manifest xml file.
set your Path attribute to be the folder paths containing the folder that has the list name and that contains schema.xml. Almost all of the feature element XML elements have context from the root of the Feature folder under the 12 hive.
So if your list schema is situated like this:
CoolestFeatureEver\ListTemplates\listone\schema.xml
Your path attribute in your ListTemplate that is in the CoolestFeatureEver Feature is Path="ListTemplates".
The error I get looks like this, by the way:
Problem:
Exception from HRESULT: 0x81070201 at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
Solution:
In my case, I had to name the folder that contained Schema.xml with the same name I used for "Name" attribute in element manifest xml file.
set your Path attribute to be the folder paths containing the folder that has the list name and that contains schema.xml. Almost all of the feature element XML elements have context from the root of the Feature folder under the 12 hive.
So if your list schema is situated like this:
CoolestFeatureEver\ListTemplates\listone\schema.xml
Your path attribute in your ListTemplate that is in the CoolestFeatureEver Feature is Path="ListTemplates".
相关文章推荐
- MOSS 增加一个List的Items报,异常来自 HRESULT:0x80040E14(Exception from HRESULT: 0x80040E14)
- Exception from HRESULT: 0x80004004 (E_ABORT) 的错误
- WPF 后台Render线程崩溃, Exception from HRESULT: 0x88980406
- NullPointerException When create Project from scource
- Class not registered(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
- 格式太旧或是类型库无效。 (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
- 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
- Exce报表生成时出现“Workbook Add(System.Object) Message:Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_
- C#:操作 Excel 异常:Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))
- 没有注册类 (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
- [PowerShell Utils] Create a list of virtual machines based on configuration read from a CSV file in Hyper-V
- ASP.NET - Exception from HRESULT: 0x80070057 (E_INVALIDARG)
- C#:操作 Excel 异常:Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))
- Populate A List Item With Record Group In Oracle Forms Using Populate_List And Create_Group_From_Query Command
- SharePoint 2010 WebService system cannot find the file specified. (Exception from HRESULT: 0x80070002
- C#操作IIS创建应用程序池出现异常:无效索引(Exception from HRESULT:0x80070585)
- ASP.NET - Exception from HRESULT: 0x80070057 (E_INVALIDARG)
- ASP.NET - Exception from HRESULT: 0x80070057 (E_INVALIDARG)
- Forefront Security and MOSS ( Exception from HRESULT: 0x80041050)
- Unable to create the store directory. (Exception from HRESULT: 0x80131468)