The calling thread must be STA, because many UI components require this in WPF

Normally, the entry point method for threads for WPF have the [STAThreadAttribute] set for the ThreadMethod, or have the apartment state set to STA when creating the thread using Thread.SetApartmentState(). However, this can only be set before the thread is started. If you cannot apply this attribute to the entry point of the application of thread you are performing … Read more

MSHTML DLL on Windows 10

I just created a blog post on this issue. The problem is that the Microsoft.mshtml.dll assembly in the Global Assembly Cache becomes unregistered from ActiveX during the upgrade process. To fix this issue, it is necessary to run “regasm” on the assembly: Open an instance of “Developer Command Prompt for VS2013” (or whatever version of Visual Studio … Read more

MSHTML DLL on Windows 10

I just created a blog post on this issue. The problem is that the Microsoft.mshtml.dll assembly in the Global Assembly Cache becomes unregistered from ActiveX during the upgrade process. To fix this issue, it is necessary to run “regasm” on the assembly: Open an instance of “Developer Command Prompt for VS2013” (or whatever version of Visual Studio … Read more

How to resolve this System.IO.FileNotFoundException

I hate to point out the obvious, but System.IO.FileNotFoundException means the program did not find the file you specified. So what you need to do is check what file your code is looking for in production. To see what file your program is looking for in production (look at the FileName property of the exception), try these … Read more

How to resolve this System.IO.FileNotFoundException

I hate to point out the obvious, but System.IO.FileNotFoundException means the program did not find the file you specified. So what you need to do is check what file your code is looking for in production. To see what file your program is looking for in production (look at the FileName property of the exception), try these … 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

XAML Binding Groups

Try specifying you binding group as DataGrid.ItemBindingGroup instead of DataGrid.BindingGroup: And in this case you actually can omit specifying the name for your binding group. It will automatically be used for all bindings in a row.

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