The type initializer for '.' threw an exception

I'm trying to add obfuscastion to an MsBuild task.
The project builds and obfuscates successfully when being built using visual studio. However, when using our TFS server, I receive the following: "error : The type initializer for '.' threw an exception"
Is this an issue that has been encountered and resolved previously?
I am using SmartAssembly v 6.8.0.121 & TFS 2013.
Thanks
The project builds and obfuscates successfully when being built using visual studio. However, when using our TFS server, I receive the following: "error : The type initializer for '.' threw an exception"
Is this an issue that has been encountered and resolved previously?
I am using SmartAssembly v 6.8.0.121 & TFS 2013.
Thanks
Answers
Thanks for your post! I suspect that the user running the TFS build may not have access to the SQL Server that SmartAssembly uses (Tools>Options>Database options). Could you first check if that might be the case?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?