• Domingo 5 de Mayo de 2024, 21:45

Autor Tema:  No Encuentro El Configuration Manager  (Leído 1333 veces)

M.Zuñiga

  • Nuevo Miembro
  • *
  • Mensajes: 1
    • Ver Perfil
No Encuentro El Configuration Manager
« en: Sábado 8 de Septiembre de 2007, 18:05 »
0
Hola, necesito hacer la capa de conexión en mi web application.
Tengo en el Web.config:

<connectionStrings>
   <add name="cs"
            providername="sistem.data.sqlclient"
            conectionstring="server=zero;database=BD_SPW;"/>
</connectionStrings>

Se supone que en la clase de acceso a datos debo tener:

Dim connexion As New SqlConnection(fConStr)
Private Function fConStr() As String
   Dim strCS As String = ""
  strCS = System.Configuration.ConfigurationManager.ConnectionStrings("cs").ConnectionString
   Return strCS
End Function

Sin embargo, no me reconoce el ConfigurationManager. ¿Porque? ¿Que debo hacer?