Solved

Exception trying to open a sql connection

Posted on 2013-02-05
5
202 Views
Last Modified: 2013-02-05
I have a vb.net application (vs2010) running in several computers, about 70. Two of them are reporting this error when I try to open the connection:
"The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.
These computers are running windows 7 professional. I reinstalled the framework 4 but the problem persists.
Any idea?
0
Comment
Question by:BemboX
  • 3
5 Comments
 
LVL 21

Accepted Solution

by:
oleggold earned 500 total points
ID: 38855546
0
 
LVL 21

Expert Comment

by:oleggold
ID: 38855548
0
 
LVL 21

Expert Comment

by:oleggold
ID: 38855553
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38855622
do you have the details of the exception?
0
 

Author Closing Comment

by:BemboX
ID: 38856201
Solved repalcing machine.config
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how the fundamental information of how to create a table.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question