Solved

Exception trying to open a sql connection

Posted on 2013-02-05
5
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

751 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