Foros del Web » Programando para Internet » ASPX (.net) »

Error web.config...

Estas en el tema de Error web.config... en el foro de ASPX (.net) en Foros del Web. Buenas, resulta que tenia una aplicacion corriendo en mi pc, pero por razones de virus tube que resintalar todo de nuevo. Cuando intento ejecutar la ...
  #1 (permalink)  
Antiguo 04/03/2009, 17:03
 
Fecha de Ingreso: enero-2008
Mensajes: 30
Antigüedad: 16 años, 3 meses
Puntos: 0
Error web.config...

Buenas, resulta que tenia una aplicacion corriendo en mi pc, pero por razones de virus tube que resintalar todo de nuevo.

Cuando intento ejecutar la aplicacion me tira el siguiente error

Server Error in '/AAA' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The configuration section cannot contain a CDATA or text element.

Source Error:


Line 38: "Passport" and "None"
Line 39: -->
Line 40: <authentication mode="Forms"> -->
Line 41: <forms name="CookieSesionIniciada" loginUrl="Login.aspx" timeout="200"/>
Line 42: </authentication>


Source File: C:\aaaa\aaa\aaa\web.config Line: 40


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


Ya probe de todo y busque por toda la web pero no logro dar con lo que estoy haciendo mal, alguien podria orientarme?
Gracias.

Última edición por mnsanchez; 04/03/2009 a las 17:24
  #2 (permalink)  
Antiguo 04/03/2009, 17:18
Avatar de Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Respuesta: Error web.config...

escribe tu web.config completo para ver lo que esta pasando.

aunque el error es claro te dice que la seccion de configuration no permite comentarios asi que cosas como <!-- --> fuera de lugar o mal formadas pueden afectar al interprete.
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5
  #3 (permalink)  
Antiguo 04/03/2009, 17:28
 
Fecha de Ingreso: enero-2008
Mensajes: 30
Antigüedad: 16 años, 3 meses
Puntos: 0
Respuesta: Error web.config...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.web>

<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to enable ASPX debugging. Otherwise, setting this value to
false will improve runtime performance of this application.
Set compilation debug="true" to insert debugging symbols (.pdb information)
into the compiled page. Because this creates a larger file that executes
more slowly, you should set this value to true only when debugging and to
false at all other times. For more information, refer to the documentation about
debugging ASP .NET files.
-->
<compilation
defaultLanguage="c#"
debug="true"
/>

<!-- CUSTOM ERROR MESSAGES
Set customError mode values to control the display of user-friendly
error messages to users instead of error details (including a stack trace):

"On" Always display custom (friendly) messages
"Off" Always display detailed ASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes, so
that you do not display application detail information to remote clients.

-->

<customErrors
mode="Off" />

<!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible modes are "Windows", "Forms",
"Passport" and "None"
-->
<authentication mode="Forms"> -->
<forms name="SesionIniciada" loginUrl="Login.aspx" timeout="200"/>
</authentication>

<authorization>
<deny users="?"/>
</authorization>

<!-- APPLICATION-LEVEL TRACE LOGGING
Application-level tracing enables trace log output for every page within an application.
Set trace enabled="true" to enable application trace logging. If pageOutput="true", the
trace information will be displayed at the bottom of each page. Otherwise, you can view the
application trace log by browsing the "trace.axd" page from your web application
root.
-->
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>

<!-- SESSION STATE SETTINGS
By default ASP .NET uses cookies to identify which requests belong to a particular session.
If cookies are not available, a session can be tracked by adding a session identifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState
mode="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="480"
/>

<!-- GLOBALIZATION
This section sets the globalization settings of the application.
-->
<globalization

requestEncoding="utf-8"

responseEncoding="utf-8"

culture="es-AR"

uiCulture="es-AR"

/>

<!--
<pages validateRequest="false" />
-->
</system.web>


</configuration>
  #4 (permalink)  
Antiguo 04/03/2009, 17:49
Avatar de Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Respuesta: Error web.config...

aqui esta tu problema

Código c#:
Ver original
  1. ....
  2. <!-- AUTHENTICATION
  3. This section sets the authentication policies of the application. Possible modes are "Windows", "Forms",
  4. "Passport" and "None"
  5. -->
  6. <authentication mode="Forms">" -->" este cierre de comentario te sobra.
  7. <forms name="SesionIniciada" loginUrl="Login.aspx" timeout="200"/>
  8. </authentication>
  9. ...
quita eso y funcionara.
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:47.