6 messaggi dal 28 novembre 2011
Ciao a tutti, ho un problema nel pubblicare un sito asp.net.
Ho un sito asp.net fatto con visual web developer, con un database sql server. Sto provando a pubblicarlo su un sito di hosting gratuito che supporta asp.net con sql server (www.somee.com).
Ho caricato la cartella contenente il sito e ho provato ad aprire il sito. La pagina di login si apre correttamente ma una volta fatto il login quando mi reinderizza alla pagina di default mi esce questo errore:

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

Ho già cercato in altre discussioni ma non sono riuscito a trovare una soluzione, potete aiutarmi? Grazie!
Ciao! Come viene indicato anche dall'errore, per vederne i dettagli devi disabilitare (almeno temporaneamente) i customErrors, cioè nel web.config devi cercare il nodo customErrors ed impostare mode a Off:
<customErrors mode="Off"/>

Fatto questo e aggiornato il web.config sul tuo hosting, replica l'errore: stavolta però otterrai informazioni molto più dettagliate e saprai dove intervenire.

Gianluca
http://www.gianlucaesposito.it
6 messaggi dal 28 novembre 2011
Mi da questo errore:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Sapete spiegarmi cosa vuol dire?
49 messaggi dal 24 agosto 2006
"ste902" <ste902> ha scritto nel messaggio news:385776@...
Mi da questo errore:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 -
Error Locating Server/Instance Specified)
Sapete spiegarmi cosa vuol dire?

Ciao. Dall'errore è evidente che la tua applicazione, nel sistema in hosting, non raggiunge il DB SQLServer.
Controlla che nella stringa di connessione vi siano i parametri che ti ha fornito l'hoster, IP del server, il nome del database, e le giuste credenziali.

Fai, inolte, attenzione al fatto che se nel tuo codice hai fatto riferimento a risorse del db anteponendo il prefisso dbo., ruolo db_owner (dbo), l'hoster potrebbe averti assegnato un ruolo diverso (come fa ARUBA).
Se non riesci a risolvere fai prima a mandare una mail al servizio di assistenza che ti risponderà a dovere.

Ciao

Pino Saffioti

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.
Community
Ultimi messaggi
UTENTI ONLINE
In primo piano

I più letti di oggi

Media
In evidenza
MISC