473,386 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Membership Control

Hi,

How to configure and user asp.net membership controls? I have all the
required defaults in the database tables.

I get the connection not found error..

Below is my web.config

<?xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<connectionStrings>

<add name="MyConnection"

connectionString="Data Source=CHATUR-MS\CHATUR_SQL;Initial
Catalog=SQLDotNet;Persist Security Info=True;User ID=sql;Password=sql"

providerName="System.Data.SqlClient" />

</connectionStrings>

<appSettings>

<add key="SProvider" value="SQLServer"/>

<add key="SCS" value="|92.168.1.90###[XY###!&quot;'`gf#,,):# -"/>

<add key="SMTPServer" value="192.168.1.100"/>

</appSettings>

<system.web>

<roleManager enabled="true" />

<authentication mode="Forms" />

<membership defaultProvider="SqlMembershipProvider">

<roleManager enabled="true"/>

<providers>

<add connectionStringName="MyConnection"
applicationName="MembershipProvider"

enablePasswordRetrieval="false" enablePasswordReset="false"

requiresQuestionAndAnswer="false" requiresUniqueEmail="true"

passwordFormat="Hashed" name="SqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider" />

</providers>

</membership>
<pages buffer="true" enableSessionState="true" enableViewState="false"
enableViewStateMac="false" autoEventWireup="true" validateRequest="false"
enableEventValidation="false"/>

<sessionState mode="InProc" cookieless="true" timeout="20"/>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

-->

<compilation debug="true"/>

<!--

The <customErrorssection enables configuration

of what to do if/when an unhandled error occurs

during the execution of a request. Specifically,

it enables developers to configure html error pages

to be displayed in place of a error stack trace.-->

<customErrors mode="Off"/>

</system.web>

</configuration>

Rahul
May 2 '07 #1
1 1442
The best place for all this kind of "learn the basics" stuff is the ASP.NET
QUICKSTARTS:

http://quickstarts.asp.net/QuickStar...t/Default.aspx

This can also be installed locally either with Visual Studio or the .NET
Framework SDK.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Rahul" wrote:
Hi,

How to configure and user asp.net membership controls? I have all the
required defaults in the database tables.

I get the connection not found error..

Below is my web.config

<?xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

<connectionStrings>

<add name="MyConnection"

connectionString="Data Source=CHATUR-MS\CHATUR_SQL;Initial
Catalog=SQLDotNet;Persist Security Info=True;User ID=sql;Password=sql"

providerName="System.Data.SqlClient" />

</connectionStrings>

<appSettings>

<add key="SProvider" value="SQLServer"/>

<add key="SCS" value="|92.168.1.90###[XY###!"'`gf#,,):# -"/>

<add key="SMTPServer" value="192.168.1.100"/>

</appSettings>

<system.web>

<roleManager enabled="true" />

<authentication mode="Forms" />

<membership defaultProvider="SqlMembershipProvider">

<roleManager enabled="true"/>

<providers>

<add connectionStringName="MyConnection"
applicationName="MembershipProvider"

enablePasswordRetrieval="false" enablePasswordReset="false"

requiresQuestionAndAnswer="false" requiresUniqueEmail="true"

passwordFormat="Hashed" name="SqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider" />

</providers>

</membership>
<pages buffer="true" enableSessionState="true" enableViewState="false"
enableViewStateMac="false" autoEventWireup="true" validateRequest="false"
enableEventValidation="false"/>

<sessionState mode="InProc" cookieless="true" timeout="20"/>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

-->

<compilation debug="true"/>

<!--

The <customErrorssection enables configuration

of what to do if/when an unhandled error occurs

during the execution of a request. Specifically,

it enables developers to configure html error pages

to be displayed in place of a error stack trace.-->

<customErrors mode="Off"/>

</system.web>

</configuration>

Rahul
May 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: artificer | last post by:
I want to create an Internet application that will be accessed by several pre-registered companies. All of those companies will be accessing the same database and the same application but each one...
0
by: Portman | last post by:
I've used the Membership classes in an ASP.NET 2.0 application to create an application that interfaces with an older SQL Server 2000 database. Everything is working except the following... Like...
3
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom...
0
by: Jay Pondy | last post by:
I added a Company field to the aspNet_Users table and then followed along with the MSDN docs on How to Implement a Custom Membership User by creating my inherited class from the...
4
by: stj911 | last post by:
http://counterpunch.org/rahni04072007.html Test Tube Zealots: The American Chemical Society Terminates the Membership of Chemists from Iran By DAVID N. RAHNI The American Chemical Society...
1
by: Ben | last post by:
Hi, When an anonymous user has created an new account (with the CreateUserWizard control), i want to let asp.net generate a password and to send it to the address of the email provided by the...
4
by: Ben | last post by:
Hi, i have already posted a more or less similar thread but it's gone unsolved with the flow of the other threads .. When an anonymous user has created an new account (with the...
1
by: Rusty Hill | last post by:
I am creating a web app to be shared amongst companies. Each user's credentials will be in the common ASP.NET membership database. Each company will have their own data base. I need to be able...
0
by: asnowfall | last post by:
I am using 'System.Web.Security.Membership' & 'System.Web.UI.WebControls.Login' control to implement Forms based authentication. Can I call Membership.ValidateUser() from Login.OnAuthenticate()?...
5
by: Rory Becker | last post by:
Hi All I have a database which has it's own set of tables for users etc I already successfully use the Login control by handling the Authenticate event and checking the suitable values against...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.