Pubblicare un sito web asp.net con Db

martedì 03 giugno 2008 - 11.07

Alexi Profilo | Newbie

Salve devo pubblicare il mio sito creato in asp.net su un server web.
Fino ad ora avevo usato un computer di casa come server configurato con IIS ma adesso ho deciso di trasferirlo su aruba.
Il sito è collegato a un mio db interno(App_Data).. devo modificare qualcosa? La stringa di connessione? Dove in che modo?
Il codice in una pagina che si connette al db per prendere le informazioni è scritta in modalità connessa. (sqlconnection..datareader..ecc)
Ho visto che dovevo settare il webconfig a <customErrors mode="Off"/>
Adesso cosa faccio?
Ho letto questo articolo:
http://peppepa.wordpress.com/2007/03/05/utilizzare-sqlroleprovider-sqlmembershipprovider-e-sqlprofileprovider-su-hosting-aruba/

però io non sono abbonato al servizio DB(MsSql), per intendere quello offerto da aruba dopo aver preso un hosting windows.
Grazie

Alexi Profilo | Newbie

quindi? Come posso fare? Perchè ho messo tutto sull'ftp ma la pagina che agisce con il mio db, non la carica e vengono fuori strani errori..
Cosa devo fare( è la prima volta che faccio uso di asp.net per un sitoweb).
Cambio la stringa di connessione al db e cosa ci metto? ( miosito.it/...)???

Alexi Profilo | Newbie

ho comprato il db in hosting..non c'è un modo per importare tutta la struttura delle tabelle, da visual studio sul db di aruba? Compreso i dati contenuti nelle tabelle le eventuali relazioni ecc.. o devo copiare i dati manualmente..

Alexi Profilo | Newbie

come faccio a generare lo script? e sopratutto come lo lancio?

Alexi Profilo | Newbie

ho portato il db su quello di aruba...potresti indicarmi i vari passaggi nella pubblicazione del sito? Cosa c'è da correggere del webconfig e devo modificare qualcosa in particolare?

Alexi Profilo | Newbie

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.SqlException: 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.DbConnectionPool.GetConnection(DbConnection owningObject) +437
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1770
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
System.Web.UI.WebControls.GridView.DataBind() +4
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


cosa significa?

Alexi Profilo | Newbie

ho modificato la stringa di connessione, ma come faccio per modificare le gridview legate al sqldatasource in visual studio...
per aruba intendo
La stringa è questa: "Data Source=00.000.000.00;Network Library=;Connection Timeout=15;Packet Size=4096;Integrated Security=no;User ID=xxxxxxx;Encrypt=no;Initial Catalog=;" Cioè quella che ho letto dalle informazioni di connessione di aruba.
La password dove la metto??

Alexi Profilo | Newbie

Ho risolto tutto! Grazie :) sbagliavo la sintassi della stringa di connessione :)
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5