asp.net config...why doesn't it create membership provider?

  • Thread starter Thread starter Darrel
  • Start date Start date
D

Darrel

So I'm reading/watching tutorials showing me how to set up roles and users
via the Web Configuration Wizard.

However, I constantly run into issues with it just not working.

It appears that to enable all of this, it's supposed to be adding
information to my web.config file for me:

http://msdn2.microsoft.com/en-us/library/ms731049.aspx

At this point, I can create roles, but not users using the Web Configuration
wizard. When I go to 'create user' I just get an "An error was encountered.
Please return to the previous page and try again."

Is something wrong with my web configuration wizard? Am I doing something
wrong? Does it just not work?

-Darrel
 
Is something wrong with my web configuration wizard? Am I doing something
wrong? Does it just not work?

As a follow-up, I can drag the CreateUserWizard control on to a page, build
the project, and then add users via the web interface. I can then see these
users in the Web Configuration Wizard. I just can't create new ones.

-Darrel
 
Is something wrong with my web configuration wizard?

Maybe
Am I doing something wrong?
Maybe

Does it just not work?

It works fine for me.

If you want better answers than this you're going to need to post more
information such as your Web.Config file.
 
If you want better answers than this you're going to need to post more
information such as your Web.Config file.

It's the default 'web site' config file.

Maybe I need to step back a minute. My understanding is that VS 2007 along
with ASP.net 2.0 should enable the whole concept of 'drag n drop' Rapid
development more palatable. Previously, I avoided it, as I loathed the code
and the markup that 1.0 used, so tended to write a lot of back end code.

I'm trying to get out of the habit, but I'm struggling to even get my
web.config file set up.

In VS.2005, if I create a SQL Express DB, how should the connection string
be added to web.config? Do I still go in there and type it myself, or should
I be using some sort of GUI interface widget within VS.net to handle that?

I'm fine typing it all, I just feel that it's counter to all I hear about
VS.net 2005.

-Darrel
 
For the default database (SQL Express in the data directory) it should just
work without adding anything to Web.Config so I'm not sure why it's not
working for you. However, for anything other than the default you'll need
to add the entries to the web.config file. Unfortunately, I don't know of
any mechanism other than manually entering it. Maybe someone else will know
of a better method.
I'm fine typing it all, I just feel that it's counter to all I hear about
VS.net 2005.

Asp.Net certainly gets rid of a lot of code you would have to write
manually compared to web development languages (like PHP) that I've used.
However, it can't get rid of all of it.
 
Back
Top