Configuration issue - File not Found (There is no Web named "/sites/content-typehub".)

May 16, 2012 at 9:51 AM

I've hit some issues straight away trying to configure this.

After trying a number of configurations with the definehub.ps1 (discovered that it didn't require a trailing slash after the template URL & didn't like using the FQDN)

I can reach the screen where you choose the library......

Once I tick a library and click next, I get an ERROR: FILE NOT FOUND SharePoint error in the dialogue window. ULS shows;

System.IO.FileNotFoundException: There is no Web named "/sites/content-typehub"

My Content Type Hub = http://sitename/sites/content-typehub

I want to use the root site in the above site collection as the template hub. I tried creating a subsite http://sitename/sites/content-typehub/templatehub but this wouldn't work when I tried.

I've tried with all number of combinations of using the FQDN, trailing slashes...I have a library called Templates with a view including the Title column.

I have a word document in the library

May 17, 2012 at 12:02 PM

Is anyone monitoring this area?

May 18, 2012 at 7:29 AM

Yes, but I have been away on vacation. I will try and look into this tonight.

May 18, 2012 at 8:37 AM

Ok brilliant, hope you had a good holiday!

May 18, 2012 at 2:44 PM

A quick update for you: My laptop went bust the day before I started my vacation, and Dell was supposed to fix it while I was away. They tried to fix it for 4 consecutive days (final attempt was today), pretty much replacing all of the components in it without any success. They now want to take it with them since they still can't figure out why it's not booting up. That means I have no testing environment, I guess for at least the entire next week :(
(I wonder why I bother paying for NextBusinessDay support...)

I will try to check out your problems and see if there is something obvious that is wrong, but as long as my computer is missing it's hard to debug... :)
(Right now I'm on my customer's computer, but this pretty much can't be used for troubleshooting, as the TemplateHub is working without any problems here, and I probably need a clean environment to try to reproduce your problem).

If you have a little bit of patience, I will get back on your case as soon as Dell shows up with my laptop again, unless I can spot the obvious bug without testing... I will update as soon as I have some info for you :)

May 22, 2012 at 3:39 PM

Hi, no worries - hope you get the laptop sorted!

I'm going to also try and install in another environment, will post back my findings.


May 22, 2012 at 4:57 PM
Edited May 22, 2012 at 5:26 PM

Update: I created a new web application with the TemplateHub at the root; http://server:8888/

and another site collection on; http://server:8888/sites/testing

I ran the following;

.\DefineHub.ps1 "http://servername:8888/" "http://servername:8888"

****Note no trailing slash after the Template Hub URL ^ ****

and I then got to the next screen (ie: choosing templates) - however when I tried to reload that screen, it errored again.

May 23, 2012 at 8:58 AM

Update: I can get the first stage (Choosing the library the templates live in) everytime time now for a new doc lib, if the Template Hub lives on the root of the web application ie: http://sitename/

However, once it's configured it will give a SharePoint An Unexpected Error has occurred error. ULS logs show;

 System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.Library.SPRequestInternalClass.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder) at Microsoft.SharePoint.Library.SPRequest.GetMetadataForUrl(String bstrUrl, Int32 METADATAFLAGS, Guid& pgListId, Int32& plItemId, Int32& plType, Object& pvarFileOrFolder) at Microsoft.SharePoint.SPWeb.GetListItem(String strUrl, Boolean bFields, String[] fields at TemplateLibraryConnector.UI.TemplateHubController.GetFileVersion(String fileName) at TemplateLibraryConnector.Selector.OnItemDoubleClick(DataRowView item) at TemplateLibraryConnector.Selector.DataListItemDataBound(Object sender, DataListItemEventArgs e) at System.Web.UI.WebControls.DataList.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) at TemplateLibraryConnector.Selector.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal()

May 23, 2012 at 10:20 AM

Update: The above error seems to occur if the Template Hub is on a Publishing Page (so don't use a publishing site template!)

I am now able to select templates *however clicking the "Favourites" link gives an Unexpected Error has occurred and logs in ULS;

System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List`1[Microsoft.Office.Server.SocialData.SocialUrl]' to type 'System.Collections.Generic.IEnumerable`1[Microsoft.Office.Server.SocialData.SocialTag]'. at TemplateLibraryConnector.Data.FavoriteTemplates.GetFavorites(UserProfile loginName) at TemplateLibraryConnector.Data.FavoriteTemplates.<>c__DisplayClass3.<GetFavoriteTemplates>b__0() at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at TemplateLibraryConnector.Data.FavoriteTemplates.GetFavoriteTemplates(String libraryAddress) at TemplateLibraryConnector.Data.FavoriteTemplates.Items() at TemplateLibraryConnector.Data.BaseTemplates.GetItems(Guid viewId) at TemplateLibraryConnector.UI.TemplateHubController.PopulateDataSource(TemplateViewType type, Object datagrid, String strSearch, Guid selectedViewId, PagedDataSource pagedDataSource) at TemplateLibraryConnector.Selector.PopulateViewAndDataSource() at TemplateLibraryConnector.Selector.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal()