how do I remove asp.net web configuration?

C

Coaster

I added security using the asp.net web site configuration tool and now I
want to remove it. I tried removing default provider via the asp.net
settings but it won't let me. It gives an error stating the provider name
must be at least 1 character long.

I want to use authentication but the simplified version of storing user
names and passwords in the web.config.

thanks
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Coaster said:
I added security using the asp.net web site configuration tool and now I
want to remove it. I tried removing default provider via the asp.net
settings but it won't let me. It gives an error stating the provider name
must be at least 1 character long.

I want to use authentication but the simplified version of storing user
names and passwords in the web.config.

You should post this kind of questions in the ASP.net NG.
 
C

Coaster

I removed add security related settings from the web.config and it worked as
expected . Then I added the forms authentication and credentials directing
it to a login.aspx page that should direct it to a default.aspx but instead
I get an error message stating
Default Membership Provider must be specified

Its like it thinks its using the old provider. I'm don't know where its
getting this from

This is what I have in web.config
<authorization>

<deny users="?"/>

</authorization>

<authentication mode="Forms">

<forms loginUrl="Login.aspx">

<credentials>

<user name="joe" password="Smith" />

<user name="azam" password="hello" />

</credentials>

</forms>

</authentication>
 
C

Coaster

I got it, the login control is looking for the provider. I removed that and
replaced with some text boxes and forms auth.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top