Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 2.0 / 3.5 / 4.0
Errore sul server
martedì 23 maggio 2006 - 13.14
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
Mauro01971
Profilo
| Newbie
22
messaggi | Data Invio:
mar 23 mag 2006 - 13:14
Ciao, stò facendo le prime prove di programmazione in ASPx, ma ad una pagina con connessione al DB che risiede sul server internet, mi restituisce un 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>
Non ho la + pallida idea di cosa stia succedendo, potete aiutarmi?
Altre info. nella pagina:
<asp:TextBox ID="user" Text="Username" runat="server"></asp:TextBox>
<asp:CompareValidator ControlToValidate="user" Text="User non valido" runat="server"></asp:CompareValidator>
<br />
<asp:TextBox ID="password" Text="Password" runat="server"></asp:TextBox>
<asp:CompareValidator ControlToValidate="password" Text="Password non valida" runat="server"></asp:CompareValidator>
<% conn=aruba() 'cè un <!-- #include file="inc/aruba.inc" -->'
strSQL="SELECT * FROM Anagrafica WHERE ID_Persona = "&Session("id")&""
conn.execute(strSQL)
%>
Nel file "check_login.asp" setto le variabili di sessione.
Grazie.
Mauro01971
Profilo
| Newbie
22
messaggi | Data Invio:
mar 23 mag 2006 - 14:03
Effettivamente stò partendo da zero.
Non sono + accettati gli Include? E come faccio allora, scusa se faccio queste domande da pivello ma sono veramente alle prime armi dopo un corso FSE che ho seguito.....
Mauro01971
Profilo
| Newbie
22
messaggi | Data Invio:
mar 23 mag 2006 - 14:27
Non, no non hanno parlato degli include, è che siccome era tutto basato sulla piattaforma dotnet, compreso VisualStudio, entrare nell'ottica della programmazione ad oggetti è un pochettino complesso per mè.
Il fatto è che abbiamo lavorato molto sui Panel per avere + pagine nella stessa pagina, sulle validazioni e sul passaggio dei ViewState.
Anche se è passato un pò di tempo, qualcosa mi rocordo ancora
Ora provo a vedere come si usano gli usercontrol.
Grazie e ti faccio sapere
Torna su
Stanze Forum
Elenco Threads
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 !