Solved

Microsoft SQL Server connection issue in debug

Posted on 2014-03-14
4
335 Views
Last Modified: 2014-03-19
Hi Experts,

I have a strange anomoly that is occuring. My published site accesses my data no problem but when I try and run it in debug I get a connection failure which is:

A network-related or instance-specific error occurred while establishing a
connection to SQL Server. The server was not found or was not accessible. Verify
that the instance name is correct and that SQL Server is configured to allow
remote connections. (provider: Named Pipes Provider, error: 40 - Could not open
a connection to SQL Server

Now like I said, if I publish the website it works fine so the above error is only occuring when I run this in development. Also any attempt to create an ODBC connecting using ODBC Administrator return the same error.

The database lives on a Windows 2008 virtual server and the only thing that recently changed here was that they increased my allocated memory and disk storage space

Any ideas?
0
Comment
Question by:GYMM8
  • 2
  • 2
4 Comments
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
ID: 39928603
For the very first step, are you able to ping the SQL sever in the dev environment?
0
 

Accepted Solution

by:
GYMM8 earned 0 total points
ID: 39928736
Hi,

I've figured this out it was a firewall issue, an over enthusiastic admin had tweaked the firewall so that it would not allow remote connections on MS SQL

Thanks for taking the time to respond

Steve
0
 

Author Closing Comment

by:GYMM8
ID: 39939107
Always check the firewall. If something stops working that used to work and you've done nothing different on sql server or vs .net side then it's usually the middle man!
0
 
LVL 37

Expert Comment

by:Bing CISM / CISSP
ID: 39940972
as i mentioned, always first ping, that would quickly tell you if firewall could be an issue. :-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now