Global Settings problem
Hi,
I was hoping that I would not need to post here, but I'm unable to see the problem. The side is mostly built on this book and the problem is the following:
If I run the following command:
Article objArticle = Article.GetArticleByID(nArticleID);
I get the following error:
Unable to cast object of type 'CSO.UI.SectionName' to type 'CSO.UI.SectionName'.
from some unknown reason the Settings variable is empty
public readonly static SectionName Settings = (SectionName)WebConfigurationManager.GetSection("c ustomSection");
Break point on ArticleProvider Instance,
m_frpInstance = (ArticleProvider)Activator.CreateInstance(
Type.GetType(Globals.Settings.Article.ProviderType ));
Globals.Settings The type 'CSO.UI.Globals' exists in both '{7A3711C9-C948-4DF0-A2FC-47D933E5F87C}' and '{A7A93000-C512-49F8-8EDD-16749DB05919}'
Any ideas would be great ? Thanks.
|