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

problema con visual web developer y coneccion a sql server

Estas en el tema de problema con visual web developer y coneccion a sql server en el foro de .NET en Foros del Web. bueno yo tenia instalado el xp hasta hace poco que upgradee y me cambie al windows 7 pero me he visto con una cantidad de ...
  #1 (permalink)  
Antiguo 02/12/2009, 23:22
 
Fecha de Ingreso: julio-2009
Mensajes: 30
Antigüedad: 14 años, 9 meses
Puntos: 0
problema con visual web developer y coneccion a sql server

bueno yo tenia instalado el xp hasta hace poco que upgradee y me cambie al windows 7 pero me he visto con una cantidad de molestias, yo tengo la version x86 y muchas de las cosas que usaba antes ahora son incompatible. Basicamente son cosas si mayor importancia como juegos, programas de utilidad etc, pero ahora q me encuentro con esto si estoy asustado. No puedo conecta visual web developer con sql server lo he intentado todo y no he podido solucionar.

Ojala que aqui me puedan ayudar, aunq he tenido inconvenientes windows 7 me parece mucho mejor que el xp, y no quisiera tener q volver al xp.

Gracias si me pueden ayudar
  #2 (permalink)  
Antiguo 03/12/2009, 08:51
Avatar de eperedo  
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 14 años, 7 meses
Puntos: 16
Respuesta: problema con visual web developer y coneccion a sql server

Pero por qué no puedes conectar???
Puedes describir o poner alguna imagen del error??
Que versión de visual web developer y sql server estás usando???

__________________
Eduardo Peredo
Wigoin
  #3 (permalink)  
Antiguo 03/12/2009, 09:04
 
Fecha de Ingreso: julio-2009
Mensajes: 30
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: problema con visual web developer y coneccion a sql server

hey gracias por responder estoy usando vwd 2008 sql server 2005. cuando le doy al test en provider me sale esto:

Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

Y en la parte de security estoy:

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

Es decir las tablas y demas cosas predeterminadas no estan.






Cita:
Iniciado por eperedo Ver Mensaje
Pero por qué no puedes conectar???
Puedes describir o poner alguna imagen del error??
Que versión de visual web developer y sql server estás usando???

  #4 (permalink)  
Antiguo 03/12/2009, 09:16
Avatar de eperedo  
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 14 años, 7 meses
Puntos: 16
Respuesta: problema con visual web developer y coneccion a sql server

Pero tal y como dice el mensaje debes hacer uso del aspnet_regsql para crear esas tablas que son para autenticación, perfiles, creación, etc de usuarios si no me equivoco.
Puedes hacerlo por la consola o con la sgte ruta:
Código:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 
dentro de esta ruta encontrarás el ejecutable aspnet_regsql.exe lo abres y te saldrá un asistente bastante fácil de completar.

Espero te ayude
__________________
Eduardo Peredo
Wigoin
  #5 (permalink)  
Antiguo 03/12/2009, 09:28
 
Fecha de Ingreso: julio-2009
Mensajes: 30
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: problema con visual web developer y coneccion a sql server

si la cuestion es que sql server te crea carpetas predeterminadas, eso no aparece y no tengo idea de lo q pasa :(, ya intete eso me aparece este error

Setup failed.

Exception:
Unable to connect to SQL Server database.

----------------------------------------
Details of failure
----------------------------------------

System.Web.HttpException: Unable to connect to SQL Server database. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Att emptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.Log inNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Web.Management.SqlServices.GetSqlConnection (String server, String user, String password, Boolean trusted, String connectionString)
--- End of inner exception stack trace ---
at System.Web.Management.SqlServices.GetSqlConnection (String server, String user, String password, Boolean trusted, String connectionString)
at System.Web.Management.SqlServices.SetupApplication Services(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install)
at System.Web.Management.SqlServices.Install(String database, SqlFeatures features, String connectionString)
at System.Web.Management.ConfirmPanel.Execute()
  #6 (permalink)  
Antiguo 03/12/2009, 09:49
 
Fecha de Ingreso: julio-2009
Mensajes: 30
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: problema con visual web developer y coneccion a sql server

supongo q es por el sistema no inicia sql server. me meti en services.msc y parece estar todo normal, pero no se cual es el servicio que lo activa.
  #7 (permalink)  
Antiguo 03/12/2009, 13:35
Avatar de eperedo  
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 14 años, 7 meses
Puntos: 16
Respuesta: problema con visual web developer y coneccion a sql server

pero cuando ingresas por el Management Studio todo funciona bien???
__________________
Eduardo Peredo
Wigoin
  #8 (permalink)  
Antiguo 04/12/2009, 01:21
 
Fecha de Ingreso: julio-2009
Mensajes: 30
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: problema con visual web developer y coneccion a sql server

si el programa funciona perfect, solo es eso que el sql server no establce coneccion, ni me permite crear las tablas predeterminadas que se crean automaticamente.
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 04:03.