Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

Assume that you use a customized PostCategory content-type in Microsoft Windows SharePoint Services 3.0. You create a new blog site that uses the customized PostCategory content-type. In this situation, you cannot create new posts on the blog site.

Resolution

To resolve this issue, apply the following update:

2483218 Description of the Windows SharePoint Services 3.0 hotfix package (Sts-x-none.msp): February 22, 2011

Workaround

For the existing blog site, the following code example can be used to fix this issue:

using (SPSite site = new SPSite("http://localhost/blog"))  //for the Url of the blog web
{
SPWeb web = site.OpenWeb();
Console.WriteLine(web.Title);
SPList postList = web.Lists["Posts"];
SPList categoryList = web.Lists["Categories"];
SPFieldLookup postcategoryLookup = (SPFieldLookup)postList.Fields.GetField("PostCategory");
String lookupList = categoryList.ID.ToString("B").ToUpper();
postcategoryLookup.LookupList = lookupList; //this line will throw exception if the List is already set
postcategoryLookup.LookupField = "Title";
postcategoryLookup.Update();
Console.WriteLine(postcategoryLookup.SchemaXml);
}

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×