Web.config

giovedì 02 agosto 2012 - 11.08
Tag Elenco Tags  C#  |  Visual Studio 2010  |  Access (.mdb)

paolo973 Profilo | Senior Member

in locale mi spunta la pagina di errore come questa:

Il codice sorgente non è stato renderizzato qui
perchè non c'è sufficiente spazio.
Clicca qui per visualizzarlo in una nuova finestra

quando invece pubblico sul web ottengo questa pagina che non mi fa capire dove stà l'errore:

Il codice sorgente non è stato renderizzato qui
perchè non c'è sufficiente spazio.
Clicca qui per visualizzarlo in una nuova finestra

Come scrivere il web.config per poter leggere un errore anche quando la pagina web è pubblicata sul web?

alx_81 Profilo | Guru

>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".

>Come scrivere il web.config per poter leggere un errore anche
>quando la pagina web è pubblicata sul web?
segui le indicazioni del messaggio e riprova. Ricorda anche di pubblicare le informazioni di debug.

--
Alessandro Alpi | SQL Server MVP
MCP|MCITP|MCTS|MCT

http://www.alessandroalpi.net
http://blogs.dotnethell.it/suxstellino
http://mvp.microsoft.com/profiles/Alessandro.Alpi
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