TypeInitializationException error
And i tried to execute the my source code (in C Sharp) which calls up the dll file file.
Now i tried to execute without debugging and encountered with the following error :
"Unit Test Adapter threw exception: System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ConsoleOutputRedirector' threw an exception. > System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.diagnostics: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Config\machine.config line 28) > System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)"
Can someone explain what could be the actual reason for the occurrence of the error?

