2. Execute the following: "dumpbin /headers mydll.dll" (of course replacing 'mydll.dll' with your assembly filename
3. Check the FILE HEADER VALUES and look for the value behind machine (x64 = 64-bit and x86 = 32-bit)
// Solves the "The specified type was not recognized: name='##', namespace='##', at ..." // Came across this when trying to serialize an object of a custom type // It is caused due to a missing namespace reference (for some reason, the LookupNamespace method in the reader // does not return a string from the NameTable) public class XmlNodeReader2 : XmlNodeReader { public XmlNodeReader2(XmlNode node) : base(node) { } public override string LookupNamespace(string prefix) { return NameTable.Add(base.LookupNamespace(prefix)); } }
protected Type ResourceType { get { return typeof(MyResources); // replace 'MyResources' with your own resources file } }
protected string GetResourceString(Type resourceType, string resourceKey) { return SPUtility.GetLocalizedString(string.Format("$Resources:{0}, {1}", resourceType.Name, resourceKey), resourceType.FullName, getLanguage); }
protected void Page_Load(object sender, EventArgs e) { lblMyLabel.Text = GetSourceString(ResourceType, "MyLabelText"); }
SELECT ct.ContentTypeId [ContentType ID] , Definition [ContentType Definition] , ct.DeleteTransactionId [ContentType DeleteTransaction] , ctu.ListId [List GUID using CT] , l.tp_Created [List Creation Date] , tp_DeleteTransactionId [List DeleteTransaction] , tp_FeatureId [Feature GUID] FROM ContentTypeUsage ctu INNER JOIN dbo.Webs w ON ctu.WebId = w.Id INNER JOIN dbo.AllLists l ON ctu.ListId = l.tp_ID INNER JOIN dbo.ContentTypes ct ON ct.ContentTypeId = ctu.ContentTypeId WHERE ct.Definition LIKE '%your column%'