Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can not connect to sql server 1

Status
Not open for further replies.

tek1ket

MIS
Jan 25, 2009
70
IR
i have programmed an application. it can connect to sql server when i am testing it on my own computer, but when i install it on other computers. and want to connect to sql server it says:

"An error has occureed while establishing a connection to the server. when connecting too SQL server 2005. This Failure may be caused by the fact under the default Setting server does not allow remote connections."

*)but my sql server is 2000, and other application can connect to it remotely. so it could not be the configuration of sql server. which i checked it and it let the remote connection

*) Firewall is Off

what could be the problem?
does visual studio 2008 has any problem with sql server 2000?
 
try clearing the connection strings in the config
Code:
<connectionStrings>
   <clear />
   <add name="..." connectionString="..." prodiverName="..." />
</connectionStrings>
It may fix the problem, or it could throw another exception because the component requiring the sql 2005 database is missing. you could then try removing the AspNetSqlRoleProvider, assuming this is a web app.
Code:
<system.web>
   <roleManager>
      <providers defaultProvider="the one you use">
         <remove name="AspNetSqlRoleProvider" />
      </providers>
   </roleManager>
</system.web>
If this doesn't fix the problem you will need to provide more information.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top