tengo la siguiente duda. Toy trabajando con asp.net 2.0, en visual basic y con sql express 2005. Bien tengo mi base de datos creada, con todas sus tablas y todo eso. Lo que quiero hacer ahora es que mi pagina web utilice esa base de datos. ¿cómo seria eso?
En el web.config he puesto lo siguiente dentro de la etiqueta <appSetings/>:
"
<connectionStrings>
<add
name="connectionstringbdagenda"
connectionString="Data Source=UTHER\SQLEXPRESS;Initial Catalog=BDAGENDA;Persist Security Info=True;User"
providerName="System.Data.SqlClient"
/>
"
Mi duda es si tengo q indicarlo en algun sitio mas para que mi web lo utilice, me refiero si en alguna pagina .aspx o en alguna otra tengo que poner algo mas para que funcione.
Otra duda. Para la gestion de usuarios del sitio me he creado otro provider para almacenar los datos de usuarios, y no usar el provider por defecto que viene con el asp.net 2.0. Para indicarselo a mi pagina, he añadido en el web.config lo siguiente:
"
<add
name="connectionstringusuarios"
connectionString="Data Source=UTHER\SQLEXPRESS;Initial Catalog=usuariosprueba;Persist Security Info=True;User"
providerName="System.Data.SqlClient"
/>
"
(esto dentro de <appSetings/>
y tambien he añadido lo siguiente:
"
<membership defaultProvider="usuariosprueba">
<providers>
<add connectionStringName="connectionstringusuarios" enablePasswordRetrieval="false"
requiresQuestionAndAnswer="False" enablePasswordReset="True"
requiresUniqueEmail="true" passwordFormat="Hashed" name="usuariosprueba"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
"
dentro del <system.web>, pero resulta que cuando voy a probar si funciona (pruebo mi login.aspx) me da el siguiente error:
"
Format of the initialization string does not conform to specification starting at index 87.
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.ArgumentException: Format of the initialization string does not conform to specification starting at index 87.
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.
"
Alguien sabe donde estoy metiendo la pataza????
Gracias por la ayudaaa a todosss¡¡¡¡¡¡
