Foros del Web » Programación para mayores de 30 ;) » .NET »

Login en aspx con VS 2005

Estas en el tema de Login en aspx con VS 2005 en el foro de .NET en Foros del Web. Hola, acabo de pasar de Dreamweaver a Visual Estudio 2005, y bueno, vienen los problemas. Utilizo en una página de incio un control login, que ...
  #1 (permalink)  
Antiguo 25/09/2008, 15:57
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Login en aspx con VS 2005

Hola, acabo de pasar de Dreamweaver a Visual Estudio 2005, y bueno, vienen los problemas.

Utilizo en una página de incio un control login, que lleva asociada una base de datos SLQ Server llamada aspnetdb, y ubicada en la carpeta app_data

Bien, en mi equipo de desarrollo me va de cine, me logeo y me responde perfectamente, pero cuando la subo al servidor web, nada de nada.
He leido por ahi algo de cadenas de conexión, pero no veo ninguna cadena por ningún lado, y en mi equipo funciona.

Alguien me puede echar un capote y ayudarme a salir de este agujero? (hasta entrar en otro, claro!, pero esto es asi)

Gracias anticipadas y un saludo
  #2 (permalink)  
Antiguo 25/09/2008, 16:01
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: Login en aspx con VS 2005

Q error te da?

tu cadena de conexion deberia estar en el archivo web.config
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5
  #3 (permalink)  
Antiguo 25/09/2008, 16:04
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Ya, pero no está. Y funciona, al menos en mi equipo.

El problema está en el servidor, no sé que error es, pero yo creo que no puede conectar con la base de datos.
  #4 (permalink)  
Antiguo 25/09/2008, 16:15
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Sospecho que este tipo de controles llevan ya implícita la ruta completa de la base de datos.

No encuentro documentación referente a esto.
  #5 (permalink)  
Antiguo 25/09/2008, 16:28
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: Login en aspx con VS 2005

sin el error es complicado saber q es lo qte pasa. debe haber algun error, aunq la descripcion sea minima o si esta controlado con try catch pues ver donde los guardas.
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5
  #6 (permalink)  
Antiguo 25/09/2008, 16:35
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Esto es lo que da. Muuuuuuuucho para mi.


Código:
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>
  #7 (permalink)  
Antiguo 25/09/2008, 16:39
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: Login en aspx con VS 2005

ok solo pon la linea del "custom errors" de tu webconfig por <customErrors mode="Off"/> y una vez q hagas eso nos dices q error te muestra.
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5
  #8 (permalink)  
Antiguo 25/09/2008, 16:50
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Pues tal que todo esto.
Código:
Server Error in '/' Application.
--------------------------------------------------------------------------------

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[SqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800131
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +737554
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +114
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +421
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +181
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +173
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +133
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +30
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +494
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
   System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
   System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +1121
   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +105
   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42
   System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +83
   System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +160
   System.Web.UI.WebControls.Login.AttemptLogin() +105
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +99
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
  #9 (permalink)  
Antiguo 25/09/2008, 16:57
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: Login en aspx con VS 2005

tienes acceso al escritorio remoto o a la pc q es tu servidor es problema de configuraciond e tu SQL server que puedes solucionar entrando a Programas -> Microsoft SqlSErver-> Herramienta Red Servidor o Sql Configuration Manager en Configuracion de Red y despues Habilitas TCPIP que seguramente esta como disabled.
__________________
Curso WF4
http://cursos.gurudotnet.com/ DF
Aprende HTML5
  #10 (permalink)  
Antiguo 25/09/2008, 17:04
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Entiendo que eso debo hacerlo en el servidor Web. Bueno, es un proveedor y yo no tengo acceso a su servidor.
Hablaré con ellos mañana.
Muchas gracias por todo. Resulte lo que resulte, lo comentaré aquí.
Buenas noches
  #11 (permalink)  
Antiguo 25/09/2008, 18:29
Avatar de robertgustavo  
Fecha de Ingreso: marzo-2008
Ubicación: Camaná - Arequipa
Mensajes: 213
Antigüedad: 16 años, 1 mes
Puntos: 4
Respuesta: Login en aspx con VS 2005

Dreamweaver es de diseño, mejor trabajalo en el Visual Studio
__________________
Soluciones basadas en .NET Framework y SQL Server
  #12 (permalink)  
Antiguo 26/09/2008, 00:06
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Por eso me he pasado a Visual Studio, pero esos cambios siempre tienen un precio en dificultades iniciales añadidas.

Gracias
  #13 (permalink)  
Antiguo 29/09/2008, 12:47
 
Fecha de Ingreso: febrero-2007
Mensajes: 32
Antigüedad: 17 años, 2 meses
Puntos: 0
Respuesta: Login en aspx con VS 2005

Por que no me pegas tu web.Config para darle una revisada??
  #14 (permalink)  
Antiguo 29/09/2008, 13:53
 
Fecha de Ingreso: octubre-2000
Mensajes: 1.692
Antigüedad: 23 años, 6 meses
Puntos: 19
Respuesta: Login en aspx con VS 2005

Si pegas el webconfig aca por seguridad no te conviene pegar el nombre de usuario y clave.
__________________
PD: Con amor, fe, amor a Dios y amistad podemos hacer un mundo mejor!!!!
  #15 (permalink)  
Antiguo 01/10/2008, 05:27
 
Fecha de Ingreso: marzo-2008
Mensajes: 127
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Login en aspx con VS 2005

Mi web.config es este:
Código:
<?xml version="1.0"?>
<configuration>
	<appSettings>
  </appSettings>
	<system.web>
    <globalization culture="es-MX" />
    <customErrors mode="Off"/>
    <roleManager enabled="true" />
  <trace pageOutput="true" />
  <authentication mode="Forms" />
		<compilation debug="true"/></system.web>
	<system.net>
		<mailSettings>
			<smtp from="xxxxxxxxxx">
    <network host="xxxxxxxx" password="xxxxxxxxxxx" userName="xxxxxxxxxx" />
   </smtp>
		</mailSettings>
	</system.net>
</configuration>
Se sigue sin resolver el problema, por eso no había contestado aún

Bueno, a ver que se ve aquí

Saludos
  #16 (permalink)  
Antiguo 21/05/2010, 14:25
 
Fecha de Ingreso: enero-2010
Mensajes: 13
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Login en aspx con VS 2005

tengo el mismo problema y no e podido resolverlo cuando copio mi proyecto por ftp al preevedor de hosting no me funciona el sistema de loging y me da el mismo error

si se pudiera corregur o como le puedo hacer para que funcione

de antemano se los agradesco y saludos
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 02:36.