Hello,
I just set up a domain on godaddy.com and uploaded all of my files for the website. I have .aspx and .aspx.cs pages and also two folders: App_Data/Mydatabase.mdf and my Dataset and custom sitemap in my App_Code folder.
This is my first time actually trying to set up a site on a live domain...I was just doing everything locally before but I'm getting this error. How do I set up my MDF database file to allow remote connections and will this solve my problems? I used Visual Studio 2008 for all of my coding.
Server Error in '/' Application.
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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlE
xception: 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)
Source Error:
[No relevant source lines]
Source File: App_Code.x5a4cczv.1.cs Line: 1734
Stack Trace:
[SqlException (0x80131904): 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)]
System.Data.SqlClient.SqlI
nternalCon
nection.On
Error(SqlE
xception exception, Boolean breakConnection) +800131
System.Data.SqlClient.TdsP
arser.Thro
wException
AndWarning
(TdsParser
StateObjec
t stateObj) +186
System.Data.SqlClient.TdsP
arser.Conn
ect(Server
Info serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +737554
System.Data.SqlClient.SqlI
nternalCon
nectionTds
.AttemptOn
eLogin(Ser
verInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +114
System.Data.SqlClient.SqlI
nternalCon
nectionTds
.LoginNoFa
ilover(Str
ing host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +421
System.Data.SqlClient.SqlI
nternalCon
nectionTds
.OpenLogin
Enlist(Sql
Connection
owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
System.Data.SqlClient.SqlI
nternalCon
nectionTds
..ctor(DbC
onnectionP
oolIdentit
y identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
System.Data.SqlClient.SqlC
onnectionF
actory.Cre
ateConnect
ion(DbConn
ectionOpti
ons options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +133
System.Data.ProviderBase.D
bConnectio
nFactory.C
reatePoole
dConnectio
n(DbConnec
tion owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
System.Data.ProviderBase.D
bConnectio
nPool.Crea
teObject(D
bConnectio
n owningObject) +424
System.Data.ProviderBase.D
bConnectio
nPool.User
CreateRequ
est(DbConn
ection owningObject) +66
System.Data.ProviderBase.D
bConnectio
nPool.GetC
onnection(
DbConnecti
on owningObject) +494
System.Data.ProviderBase.D
bConnectio
nFactory.G
etConnecti
on(DbConne
ction owningConnection) +82
System.Data.ProviderBase.D
bConnectio
nClosed.Op
enConnecti
on(DbConne
ction outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlC
onnection.
Open() +111
System.Data.Common.DbDataA
dapter.Fil
lInternal(
DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataA
dapter.Fil
l(DataTabl
e[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
System.Data.Common.DbDataA
dapter.Fil
l(DataTabl
e dataTable) +107
MessageBoardTableAdapters.
ForumsTabl
eAdapter.G
etForums()
in App_Code.x5a4cczv.1.cs:173
4
SiteMapProvider.BuildSiteM
ap() in d:\hosting\3097420\html\Ap
p_Code\Sit
eMapProvid
er.cs:54
[ProviderException: There was an exception when building the site map: 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)]
SiteMapProvider.BuildSiteM
ap() in d:\hosting\3097420\html\Ap
p_Code\Sit
eMapProvid
er.cs:78
SiteMapProvider.GetRootNod
eCore() in d:\hosting\3097420\html\Ap
p_Code\Sit
eMapProvid
er.cs:32
System.Web.SiteMapProvider
.get_RootN
ode() +12
System.Web.UI.WebControls.
SiteMapDat
aSource.Ge
tNodes() +219
System.Web.UI.WebControls.
SiteMapDat
aSource.Ge
tTreeView(
String viewPath) +32
System.Web.UI.WebControls.
SiteMapDat
aSource.Ge
tHierarchi
calView(St
ring viewPath) +29
System.Web.UI.Hierarchical
DataSource
Control.Sy
stem.Web.U
I.IHierarc
hicalDataS
ource.GetH
ierarchica
lView(Stri
ng viewPath) +7
System.Web.UI.WebControls.
Hierarchic
alDataBoun
dControl.G
etData(Str
ing viewPath) +22
System.Web.UI.WebControls.
TreeView.D
ataBindNod
e(TreeNode
node) +73
System.Web.UI.WebControls.
TreeView.P
erformData
Binding() +305
System.Web.UI.WebControls.
Hierarchic
alDataBoun
dControl.P
erformSele
ct() +82
System.Web.UI.WebControls.
BaseDataBo
undControl
.DataBind(
) +70
System.Web.UI.WebControls.
TreeView.D
ataBind() +4
System.Web.UI.WebControls.
BaseDataBo
undControl
.EnsureDat
aBound() +82
System.Web.UI.WebControls.
TreeView.O
nPreRender
(EventArgs
e) +43
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +86
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +170
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +2041
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434
Start Free Trial