I use a C# application (it uses stsadm.exe) to deploy a content type, and in the same program, I try to get the content type by using SPWeb.ContentTypes[name] right after the content type is deployed, it returns null. if i exist the
c# application and re-run the application, I can get the added content type. I don't know why I cannot get the content type the first time after the content type is deployed. Any thoughts?
View Complete Post