Unit Test Adapter threw exception:The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047).

I was happily running my SpecFlow tests today and suddenly they all stopped working, and with an unhelpful error message;

Unit Test Adapter threw exception:The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047).

Obviously I hadn’t changed anything to cause it right? Well, actually I had added a simple configuration section to my App.Config. I commented that out and it all sprang to life. So if you see that error, read, “I cannot read the config file, please fix it”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s