SSIS package throwing "the type initializer for 'System.Data.SqlClient.SqlConnection'

SSIS package throwing "the type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception"

I'm running SSIS package which references an assembly which calls a WCF web service. Everytime i run it, i get this weird
"the type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception".

So i decided to check on app.config setting in the following files located in C:\Program Files\Microsoft SQL Server\90\DTS\Binn folder.

a) DTExec.exe.config

b) DtsDebugHost.exe.config

c) dtshost.exe.config

It has nothing to do with these configurations.

Solution

Try installing Microsoft .Net Framework 3.0 (in my case) and it solve my issue.




Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

OpenCover code coverage for .Net Core

Using Custom DLL with IronPython / Scripts