I am using VS2012 with entity framework and i am getting this error. Please help me its urgent
I am using VS2012 with entity framework
Hi friends,
I am using VS2012 with entity framework and i am getting this error. Please help me its urgent
I am using VS2012 with entity framework and i am getting this error. Please help me its urgent

Anubhav ChaudharyPosted Jan 28, 2014, 6:52 AM
using System.IO;
using System.Reflection;
try {
//The code that causes the error goes here.
}
catch (ReflectionTypeLoadException ex) {
StringBuilder sb = new StringBuilder();
foreach (Exception exSub in ex.LoaderExceptions)
{
sb.AppendLine(exSub.Message);
if (exSub is FileNotFoundException)
{
FileNotFoundException exFileNotFound = exSub as FileNotFoundException; if(!string.IsNullOrEmpty(exFileNotFound.FusionLog))
{
sb.AppendLine("Fusion Log:"); sb.AppendLine(exFileNotFound.FusionLog);
}
}
sb.AppendLine();
}
string errorMessage = sb.ToString(); //Display or log the error based on your application.
}
This will tell you the exact problem you are facing