I am NewBie to asp.net and creating a webserver database. I am using MS Visual web developer and SQl express. I have manage to configure the ASP.net on server to work, meaning if you access throught internet .aspx page will work and simple call time will display time. I have also configured the Sql express to work on the server, meaning you can see pubs database if you work right in the server. I am working directly through ftp on site, not remotely and then uploading. I go to connect to database and add connection and the webserver sqlexpress database does not appear. I do see my local splexpress database, using MS pubs sample. I connect to that database and drop a table on a page and then save it through the ftp at webserver and when i go to pull up page i get the following error.
Question #1 would i see the connection if i am connected through the FTP?
Question #2 is this page actually trying to find my local database connection and not the webserver connection?
Question #3 does it matter whether i am developing locally and then uploading rather than working directly at site throught ftp, as far as database functionality goes?
Question #4 if you are designing locally and testing on the same computer and then uploading is there anything that needs to be addressed code wise?
Please Help.
__________________________
__________
__________
__________
__________
__________
__________
_
Server Error in '/WebSite' 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
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.ProviderBase.D
bConnectio
nPool.GetC
onnection(
DbConnecti
on owningObject) +437
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.ProviderBase.D
bConnectio
nPool.User
CreateRequ
est(DbConn
ection owningObject) +66
System.Data.ProviderBase.D
bConnectio
nPool.GetC
onnection(
DbConnecti
on owningObject) +467
System.Data.SqlClient.SqlC
onnection.
Open() +111
System.Data.ProviderBase.D
bConnectio
nPool.GetC
onnection(
DbConnecti
on owningObject) +496
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(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataA
dapter.Fil
l(DataSet dataSet, String srcTable) +83
System.Data.Common.DbDataA
dapter.Fil
l(DataSet dataSet, String srcTable) +83
System.Web.UI.WebControls.
SqlDataSou
rceView.Ex
ecuteSelec
t(DataSour
ceSelectAr
guments arguments) +1609
System.Web.UI.WebControls.
SqlDataSou
rceView.Ex
ecuteSelec
t(DataSour
ceSelectAr
guments arguments) +1770
System.Web.UI.DataSourceVi
ew.Select(
DataSource
SelectArgu
ments arguments, DataSourceViewSelectCallba
ck callback) +17
System.Web.UI.WebControls.
DataBoundC
ontrol.Per
formSelect
() +149
System.Web.UI.WebControls.
BaseDataBo
undControl
.DataBind(
) +70
System.Web.UI.DataSourceVi
ew.Select(
DataSource
SelectArgu
ments arguments, DataSourceViewSelectCallba
ck callback) +17
System.Web.UI.WebControls.
DataBoundC
ontrol.Per
formSelect
() +149
System.Web.UI.WebControls.
BaseDataBo
undControl
.DataBind(
) +70
System.Web.UI.WebControls.
GridView.D
ataBind() +4
System.Web.UI.WebControls.
GridView.D
ataBind() +4
System.Web.UI.WebControls.
BaseDataBo
undControl
.EnsureDat
aBound() +82
System.Web.UI.WebControls.
BaseDataBo
undControl
.EnsureDat
aBound() +82
System.Web.UI.WebControls.
CompositeD
ataBoundCo
ntrol.Crea
teChildCon
trols() +69
System.Web.UI.WebControls.
CompositeD
ataBoundCo
ntrol.Crea
teChildCon
trols() +69
System.Web.UI.Control.Ensu
reChildCon
trols() +87
System.Web.UI.Control.Ensu
reChildCon
trols() +87
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +41
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +41
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +161
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +161
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +161
System.Web.UI.Control.PreR
enderRecur
siveIntern
al() +161
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +1360
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +1360
--------------------------
----------
----------
----------
----------
----------
----
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Start Free Trial