What is and how to fix System.TypeInitializationException error?

Whenever a TypeInitializationException is thrown, check all initialization logic of the type you are referring to for the first time in the statement where the exception is thrown – in your case: Logger. Initialization logic includes: the type’s static constructor (which – if I didn’t miss it – you do not have for Logger) and field initialization. Field initialization is pretty … Read more

Metadata file ‘.dll’ could not be found

Written Instructions: Right click on the solution and click Properties. Click Configuration on the left. Make sure the check box under “Build” for the project it can’t find is checked. If it is already checked, uncheck, hit apply and check the boxes again. (Optional) You had to do it for both Release and Debug modes … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)