Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/04/2010, 16:11
MaxMental
 
Fecha de Ingreso: septiembre-2009
Mensajes: 58
Antigüedad: 14 años, 8 meses
Puntos: 1
Primera Pagina

Hola que tal estoy empezando a desarrollar en ASP.NET pero he creado mi primera pagina y corre perfecta con el visual Studio 2010 y el 2008 pero al subirlaas a mi servidor me arroja un error que dice que le cambien al web.config el error en "off" ya lo he realizado pero cuando hago esto manda a llamar a otra pagina como si hubiese ocurrido un error, no tengo idea de por que;Compre un libro para aprender ASP.NET pero este trae su disco con codigo ya he subido unas pruebas que tiene el disco y funcionan bn pero no tienen web.config, a mi aplicacion he intentado incluso eliminarle el web.config pero me sigue marcando lo mismo es este error:
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>


y cuando modifico lo ultimo me arroja esta url

http://iubix.net/asp/site/mycustompa...e/default.aspx

la verdad no tengo idea de que ocurre pero los ejemplos de mi libro estan alamcenados aqui:
http://iubix.net/asp/registro/registro.aspx

esta minimo se ve
de igual manera les dejo mi codigo de mi pagina
aqui esta el default.aspx:
Código ASP:
Ver original
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head runat="server">
  7.     <title></title>
  8. </head>
  9. <body>
  10.     <form id="form1" runat="server">
  11.     <div>
  12.     <center>
  13.     <%for (int i = 1; i < 7; i++)
  14.       { %>
  15.       <h<%=i %>>Bienvenido a ASP.NET</h<%=i %>>
  16.       <%}
  17.            %>
  18.     </center>
  19.     </div>
  20.     </form>
  21. </body>
  22. </html>

del default.aspx.cs:
Código ASP:
Ver original
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7.  
  8. public partial class _Default : System.Web.UI.Page
  9. {
  10.     protected void Page_Load(object sender, EventArgs e)
  11.     {
  12.         this.Response.Write("<center>");
  13.         for (int a = 1; a < 7; a++)
  14.         {
  15.             this.Response.Write("<h" + a + ">Bienvenido a mi " + " pagina ASP.NET</h" + a + ">");
  16.         }
  17.         this.Response.Write("</center>");
  18.     }
  19. }
y este es el web.config generado por VS
Código XML:
Ver original
  1. <?xml version="1.0"?>
  2. <!--
  3.    Note: As an alternative to hand editing this file you can use the
  4.    web admin tool to configure settings for your application. Use
  5.    the Website->Asp.Net Configuration option in Visual Studio.
  6.    A full list of settings and comments can be found in
  7.    machine.config.comments usually located in
  8.    \Windows\Microsoft.Net\Framework\vx.x\Config
  9. -->
  10. <configuration>
  11.     <configSections>
  12.         <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  13.             <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  14.                 <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  15.                 <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  16.                     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
  17.                     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  18.                     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  19.                     <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  20.                 </sectionGroup>
  21.             </sectionGroup>
  22.         </sectionGroup>
  23.     </configSections>
  24.     <appSettings/>
  25.     <connectionStrings/>
  26.     <system.web>
  27.         <!--
  28.            Set compilation debug="true" to insert debugging
  29.            symbols into the compiled page. Because this
  30.            affects performance, set this value to true only
  31.            during development.
  32.        -->
  33.         <compilation debug="true">
  34.             <assemblies>
  35.                 <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  36.                 <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  37.                 <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  38.                 <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  39.             </assemblies>
  40.         </compilation>
  41.         <!--
  42.          The <authentication> section enables configuration
  43.          of the security authentication mode used by
  44.          ASP.NET to identify an incoming user.
  45.        -->
  46.         <authentication mode="Windows"/>
  47.         <!--
  48.           The <customErrors> section enables configuration
  49.           of what to do if/when an unhandled error occurs
  50.           during the execution of a request. Specifically,
  51.           it enables developers to configure html error pages
  52.           to be displayed in place of a error stack trace.
  53.  
  54.           <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  55.             <error statusCode="403" redirect="NoAccess.htm" />
  56.             <error statusCode="404" redirect="FileNotFound.htm" />
  57.           </customErrors>
  58.        -->
  59. .
  60. .
  61. .
  62. .
  63. .AUNQUE FALTA UN POCO mas del XML no se ha que se deve el problema espero me puedan ayudar!!!
Aunque este lo he editado y le he borrado casi todo solo he dejado lo del error me manda a la primer url que les deje espero me puedan ayudar a entender a que se deve esto grax
__________________
Explotemos la Web 2.0 !!! Proximamente Google Evoluciona