Asp.net 2.0 cannot connect to sqlserver2000.

Source: Internet
Author: User

Databases andProgramIt is divided into two computers (both of which are xp_sp2). When connecting to the database, an error occurs.
The error message is as follows:
An error occurred while establishing a connection with the server. When you connect to SQL Server 2005, the default setting does not allow remote connection to SQL Server may cause this failure. (Provider: named pipeline provider, error: 40-unable to open the connection to SQL Server)

Solution:
1. Find the information on the Internet and try debugging.
See: http://soso.cnblogs.com/archive/2006/05/23/406937.html
After debugging, you still cannot connect to the database.
Open IIS properties-virtual directory properties-select Asp.net 2.0-click 'edit configuration'-delete all items connected to sqlexpress
Of course, it is best to delete the global configuration,
Open IIS properties-site properties-select Asp.net 2.0-click 'edit global configuration'
-Delete All sqlexpress connection items 
Connection Failed!
2. Open the firewall port (use the default firewall xp_sp2 ). Connection successful!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.