I am using Logging Application block in silverlight by making use of the Silverlight Integration Pack and EntLib 5.
I have resolved the LogWriter object through the EntLib container and the line at which I resolve it I am getting the following error:
The type 'ValidationBlockExtension' was not found because 'clr-namespace:Microsoft.Practices.EnterpriseLibrary.Validation.Configuration.Unity;assembly=Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight' is an unknown namespace.
Here is the code:
public class MessageLog
string strNamespace, strClass;
public MessageLog(string strNamespaceName, string strClassName)
strNamespace = strNamespaceName;
strClass = strClassName;
entry = new LogEntry();
//GETTING ERROR AT BELOW LINE
writer = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();
. . .
I have not made use of the Validation Block at all. So I dont know why I am getting that error. In any case I tried adding the reference Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight but it still gave the error.
The same code works fine on other machines. I am using Microsoft Windows XP professional version2 Service pack3.
Can anyone help with this please. Any idea why this error occurs?
Thanks in advance.