238 messaggi dal 23 aprile 2008
Ciao a tutti
programmo in vb.net e quando trascino un chart control per fare dei grafici nella pagina aspx mi va a scrivere anche un codice nel webconfig, però evidentemente quel codice non è corretto perchè poi mi da errore quando carico l'homepage del sitoweb.
Come posso fare ?
Modificato da Fapic il 18 marzo 2010 09.29 -
Questo l'hai letto? http://www.aspitalia.com/articoli/asp.net3.5/asp-net-charting-controls.aspx
Ad ogni modo senza sapere che errore ricevi è difficile aiutarti...

Matteo Casati
GURU4.net
238 messaggi dal 23 aprile 2008
come posso fare a dirti quale è l'errore ?
Incollando qui il contenuto della pagina di errore di asp.net

Matteo Casati
GURU4.net
238 messaggi dal 23 aprile 2008
L'errore che mi da è questo:

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>
2.841 messaggi dal 28 gennaio 2003
nel mio web.config ho questa riga

<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;"/>

la directory c:\TempImageFiles deve concedere i permessi di scrittura all'utente asp.net (sono con Windows Xp)

Pietro
238 messaggi dal 23 aprile 2008
fra quali tag hai questa scritta ?
Servono i dettagli dell'errore e la pagina generica ti dice come fare ad abilitarli:
Fapic ha scritto:
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".

Matteo Casati
GURU4.net

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.
In primo piano

I più letti di oggi

Media
In evidenza
MISC