22 messaggi dal 11 settembre 2011
Salve, ho un problema.
Ho creato un file default.aspx per il mio sito web in asp.net.
Ho fatto l'update del file e andando su www.nomesito.eu tutto funzionava a meraviglia.
Ho poi fatto una modifica, inserendo un template per avere pagine con struttura simile.
Ho associato default.aspx al template e poi ho fatto l'update della pagina default.aspx e del template.
Il sistema questa volta va in errore, non trovando la pagina.
Come mai?
Devo fare qualche modifica al web.config?
Grazie
174 messaggi dal 09 ottobre 2006
Ciao Manu,
in che modo hai associato il template?
Per template intendi una MasterPage?
22 messaggi dal 11 settembre 2011
Sì intendo una Master Page, l'ho associata con Visual Studio.

<%@ Page Title="" Language="VB" MasterPageFile="~/gdl-connect.eu/www/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphCorpoMaster" Runat="Server">
</asp:Content>

caricato il tutto dentro la directory, 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>

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