PDA

View Full Version : Form Authentication - from sqlexpress to sql 2005 connection string


gspy
07-19-2006, 11:05 AM
I am using Form authentication with sql express with the default settings in web.config with success.</o:p>
I am trying to convert it to use sql server 2005 with out success after hours of googling it.</o:p>
</o:p>
Can anybody suggest a solution?</o:p>
</o:p>
My working web config with sql express is:</o:p>
</o:p>
</o:p>
<configuration></o:p>
<appSettings></o:p>
</appSettings></o:p>
</o:p>
<system.web></o:p>
<compilation debug="true" /></o:p>
<authorization></o:p>
<deny users="?"/></o:p>
</authorization></o:p>
<authentication mode="Forms" /></o:p>
<roleManager enabled="true"/></o:p>
</system.web></o:p>
</o:p>
<system.net></o:p>
<mailSettings></o:p>
<smtp></o:p>
<network host="mail.myname.com"/></o:p>
</smtp></o:p>
</mailSettings></o:p>
</system.net></o:p>
</configuration></o:p>
</o:p>
</o:p>
What I suppose to write to support the same functionality with a sql 2005 DB?</o:p>
</o:p>
Thanks in advanced.</o:p>
</o:p>
GSpY</o:p>

gspy
07-19-2006, 11:32 AM
....i mean something similar and simply like the above,
with out running command line utilities or other strange actions,
and with something applicable to discountasp hosting accounts.
With sqlexpress is so easy.
You do nothing and you have an authentication db from nothing.
Is this applicable to sql 2005? (with or without existing db)?

Thanks again.

bruce
07-19-2006, 11:37 AM
i am slightly lost!

Do you mean you want to use the membership / role provider with ASP.NET 2.0?

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

bruce
07-20-2006, 06:55 AM
gspy said...

I don?t want to implement custom providers or run utilities to create the schema.</o:p>
I just want to change the connection string so I can get the same functionality as with sql express.</o:p>
</o:p>
Is this possible?</o:p>This is not possible. The ASPNET_DB contains all your member role information, it will need to be stored somewhere (be it SQL 2k5 or SQL express). Since we do not support SQL Express, you'll have to install the ASPNETDB schema on your SQL 2k5 DB.

See http://kb.discountasp.net/article.aspx?id=10413for details on how to get this setup.


Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

gspy
07-20-2006, 08:09 AM
Sorry for my English.</o:p>
</o:p>
Yes you are correct.</o:p>
</o:p>
I use it locally with the above config and works ok.</o:p>
If I have already a database it adds users, if I haven?t one it creates the schema and continues.</o:p>
But it uses sqlexpress.</o:p>
I want the same functionality but with sql 2005 so I can upload my application to my account in discountasp.</o:p>
</o:p>
I don?t want to implement custom providers or run utilities to create the schema.</o:p>
I just want to change the connection string so I can get the same functionality as with sql express.</o:p>
</o:p>
Is this possible?</o:p>
</o:p>
Thanks.</o:p>

gspy
07-20-2006, 08:44 AM
Ok.


Thanks again for your support.