Showing posts with label displayed. Show all posts
Showing posts with label displayed. Show all posts

Tuesday, March 27, 2012

error plz help

when i run my application using web parts on sql 2000 an error displayed (

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) can any one tell me why that error

)

Hi,

Please try this article on support.microsoft.com.

Article ID is 926929.

OR.

Make sure that the SQL Browser Service is started and make sure the password is correct, Because in my case customer had changed his passwords and we made sure that he changes his passwords from SSCM rather than
Services and then he was able to connect with no problems.

If you have any further issues please let me know on my e-mail ID.

Subject sould be Error code.

Thanks and Best Regards.

Farhat Nishat.

|||

i am sure that the SQL Browser Service is started and the password is correct i think that there steps done before running the web parts

because i think that web parts runs only on sql 2005 so do you know what to do to run web parts on sql2000 ?plz reply

|||

Can you check this blog? http://blogs.msdn.com/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx

If you still have problem, please copy/paste your connection string here?

Sunday, February 19, 2012

Error message about SQL Server is displayed

I have a website that works OK on my local machine when I test it within Microsoft Visual Studio's debugging mode. However now that I have copied it over to a remote server it is failing with an error message of:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

As far as I'm aware I have never used SQL Server with my webpage. All connections to databases are to Oracle with connection strings and providers set up in the webconfig file. The website does however use a login control to recognise authorised users. Does this mean I've unknowingly been using SQL Server (to support the login control) and I therefore need to install this on the remote machine? Or is it something simpler? Wondered if anybody had seen this error message before?

Hi,

The website does however use a login control to recognize authorized users.

As you mentioned in your post, you are using login controls to recognize authorized users. In ASP.NET, such controls like logins, createuserwizard and etc are parts of .Net Membership provider mechanism.

In your local side, I think the SQLExpress has been shipped in your Visual Studio, so it can support the membership to work. But after you deployed your application to your server, the membership still tries to find the database to support. Unfortunately, the database does exist on your server, so the error occurs.

Thanks.

|||

Hi Nai-Dong, thanks for replying. I agree with your suggestion that the membership is tying and failing to read the database. The database MDF file is present and in the correct location. The permissions are set on this file as according to other forum posts I've read. I also installed SQLServer Express on the remote machine. I suspect that the membership is not picking up the SQLServerExpress install but I am not sure how to fix this. It's such a shame because the ASP.NET login controls and .Net membership provider are really neat and simple to use. Due to time restraints it's looking like I'm going to have to use my Oracle database to contain the login information and write code myself to enable authentication.

|||

Hi,

Well, i just want to provide you some materials on membership which maybe helpful to you when you are going to use Membership in your next project.

About Membership Providershttp://msdn2.microsoft.com/en-us/library/aa478949.aspx

Membership introductionhttp://msdn2.microsoft.com/en-us/library/yh26yfzy.aspx

Settings on using Membershiphttp://msdn2.microsoft.com/en-us/library/ms731049.aspx

Besides, you can export all the datatables with schemas in ASPNETDB into your Oracle database, and change the membership provider, you also can use membership with a Oracle back-end database.

Hope that helps. Thanks.

|||

Thanks Michael - greatly appreciated. I will certainly read through them. I like the idea of Oracle providing membership since I can connect to me Oracle db without any problems.