- Where Developers Learn, Share, & Build Careers
I am using The web form code is as follows: error 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 example name is correct and SQL Server is configured to allow remote connection. (Provider: SQL Network Interface, Error: 26 - Error specifying server / instance) Due to throwing this problem wrong server name, disabled remote connection and firewall may be blocked. Can you follow the steps given below to solve this problem? Check a server on which SQL Server is running, it can be accessible. You can use the ping command to check it. For example, the ping command can be blocked by the ping ** or the ping firewall, make sure that the ICMP is enabled in the firewall ** Select the appropriate protocol · Configure the Windows Firewall accordingly, depending on the protocol used. For detailed information about how to configure Windows Firewall to allow SQL Server, please One. Enable SQL Server Browser Services < / P> Check to enable SQL Server Browser Services if both of the following are true: 1.SQL server is not listening to the default 1433 port or does not use the default pipe name Does. \ Pipe \ sql \ query; 2. The related TCP port or pipe name is not specified in the connection string (eg Srv1 \ SQL2008, 1500). If you have enabled SQL Server Browser Services, you still need to open the UDP 1434 port which is used by browser services in Windows Firewall. I know that it has been resolved configurationmanager.appsetting and I'm getting an error in
Cn.Open line
Public partial category admin_CheckDocuments: System.Web.UI.Page {SqlConnection cn = New SqlConnection (Configuration Manager. AppSettings ["con" ]); String sql; String str; Secure Zero Page_load (Object Sender, EventEurge E) {cn.Open (); Str = Request.QueryString ["taxid"]; If (! IsPostBack) {filldata (); }}
web.config :
है
Comments
Post a Comment