How to sync a remote ASP site with local copy of the site? - mysql

I copied an entire ASP site from a remote server to my local machine. I can access the homepage, but once I try to login to the rest of the site, I receive the following 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 instance name is correct and that
SQL Server is configured to allow remote connections. (provider: SQL
Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)"
I set things up to allow for remote connections (enabling TCP/IP and Named Pipes), but is the problem because I'm trying to access a remote database? The connection string in Web.Config is:
<connectionStrings>
<add name="ISBEPI_DEV" connectionString="Data Source=ERI-DB-06\DEVELOPMENT;
Database=ISBEPI_DEV; Initial Catalog=ISBEPI_DEV;Persist Security Info=True;
User ID=Pi_usr; Password =J6$h3Qoz#9Yw;" providerName="System.Data.SqlClient"/>
</connectionStrings>
Any help would be very much appreciated! Please let me know if I can provide more info. Thanks!

Looks like you specified incorrect connection string or you are not allowed to connect to that SQL server. Have you tried to connect to that database from SQL Management Studio or Server Explorer in Visual Studio?

Related

MySQL ASP.net Connection string error

I'm trying to connect to MySQL from my asp.net website on a hosted platform. My connection string looks fine, all the login details and server IP are correct but I am still getting an error on the page:
[Win32Exception (0x80004005): The network path was not found]
provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
web.config connection string:
<connectionStrings>
<add name="Conn" connectionString="Server=xxxx;Database=xxxx;Uid=xxxx;Pwd=xxxx;" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
Can you guys give me any more info why this might be the case? Thanks!
Your server is not running or if running, your code cannot access this - firewall, etc. Or you didn't granted privileges for the IP of your app.
Looks like on this occasion there was a random Import that was making my site think it was using MSSQL rather than MySQL. Removed this and it's now working. Thanks for the help!

GoDaddy database connectivity error while connecting to MySql database

I am hosting a website on GoDaddy and getting database connectivity error while connecting to MySql database.
The error is coming as "Connection must be valid and open."
This error is coming while establishing the connection itself.
The language used is C# in MVC3.
Database server : MySql
Following is the connection string that I am using to connect to database.
<connectionStrings>
<add name="Application_Database" connectionString="Server=50.62.209.43;Protocol=TCP;Port=3306;Database=#####;Uid=#####;Pwd=######;" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
Further, I would like to inform that the same connection string (provided above) is working on my local system and other servers also, but it is not working on GoDaddy hosting server.
Please help me out in this issue.

error: 26 - error locating server/instance specified

This is Arun from Chennai. I have developed my first application in WPF (C#) with VS 2008 & SQL Server 2008. It works fine in my system. After deployment, it wont works in other systems. It shows the following error message.
system.data.sqlclient.sqlexception - 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 instance name is correct and sql server is configured to allow remote connections.(provider: sql network interfaces, error: 26 - error locating server/instance specified).
I have gone through the google and done the following steps but no use.
Server Name : ECARE432\SQLEXPRESS
Instance Name : SQLEXPRESS
App.Config have:
<connectionStrings>
<add name="TimeTracker.Properties.Settings.myecareConnectionString" connectionString="Data Source=ECARE432\SQLEXPRESS;Initial Catalog=myecare;Persist Security Info=True;User ID=sa;Password=ecare123#" providerName="System.Data.SqlClient"/>
</connectionStrings>
Visual Studio-->Tools-->Options-->Database Tools-->Data Connections-->
Changed "SQL Server Instance Name" from "sqlexpress" to blank.
Configuration Tools->SQL Server Configuration Manager->SQL Native Client Configration
Aliases->
Alias Name -> ECARE432\SQLEXPRESS,1433
Port Number -> 1433
Protocol -> TCP/IP
Server Name -> ECARE432\SQLEXPRESS
SQL Server Browser is running in my system.
Server Name is correct. No typo mismatch.
Client machine is able to ping my machine.
TCP 1433 and UDP 1434 Exception added to Firewall. Also Turned off the Firewall in both my system and the client system.
Please guide me how to fix this issue.
I have removed the instance name in the connection string. Just I have changed the "Data Source=ECARE432\SQLEXPRESS;" into "Data Source=ECARE432" in the app.config connection string. It works now.

Getting Error when accessing SSRS through browser

I get the error message below when accessing Reporting Services through a browser
URL used: http://<name of server>/ReportServer
Reporting Services Error
The report server cannot open a connection to the report server
database. A connection to the database is required for all requests
and processing. (rsReportServerDatabaseUnavailable) Get Online Help 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)
Have you verified that the configuration is correct? Use "Reporting Service Configuration Manager" which is installed with SSRS. Step through the screens looking for problems; try applying the configuration and make sure databases exist and have correct permissions.
Try running RSConfigTool.exe or Report Services Configuration Manager from Windows and check if the server is accessible

SQL Server Express - Remote Connection continues to fail

I have been unable to configure my SQL Server 2008 Express to allow remote connections. I followed the instructions from this guide: http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/ .
I am still getting the following error:
Cannot connect to 00.00.00.000
Additional information:
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) ( Microsoft SQL Server, Error: 3)
I also configured the firewall as defined in http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/ . As a test I even turned off the firewall, but nothing changed, so it is not the issue.
Update under server name, it only says the IP address. Do I need something more?
In the Server name field of Connect to Server, I had myipaddress. I changed it to myipaddress\SQLEXPRESS and it works.
In addition, once this was working without the firewall I applied settings as defined in http://www.sevenforums.com/system-security/58817-remote-access-sql-server-express-2008-windows-7-a.html to make the connection work with the firewall turned on.
Do you have sysadmin rights in sql express? It may be that your user account doesn't have the necessary permissions. There is a script on codeplex that will add you logged on account as a sysadmin.