asp user roles

C++, C#, Java, PHP, ect...
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

asp user roles

Post by hallsofvallhalla »

When building a new site is it custom to use the new user logins and the aspnetdb.mdf as the main database? I was basically going to use it as my database and use all the controls for log in. Finally figured out how to import that into the server explorer. Now I am trying to customize the new user wizard but i cannot find where the actual DB stuff goes on to add the new fields I have added.
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: asp user roles

Post by Xaleph »

If you have the server exlorer, there should be an option to access it, if you access it, you can open a new program SQL server, where you can manage your db, VS also has a built-in explorer, but I reckon no one uses that hehe. SQL Server Management Studio is it. In there you can manage the databases, tables et cetera.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: asp user roles

Post by hallsofvallhalla »

ah and that will stop the db error I get because having it open in the explorer and trying to access it? As in if I try to view the page then create new user I get a access error. Supposedly it is because I have it open twice...

In other words I am accessing the mdf file through server explorer and you cant do that and test the site without a hack.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: asp user roles

Post by hallsofvallhalla »

downloading the management studio. Not sure how else to view the server. Could have swore it could all be done through VS properly.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: asp user roles

Post by hallsofvallhalla »

yep, as soon as I deleted the connection my new user and login started working. So what is the standard for this?
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: asp user roles

Post by Xaleph »

There is no real "standard", mostly because Windows based OS` have no real user management, but my second-to-best guess is that it VS only allows one instance of a connection for each database. Then again, it could be that your config.xml only allows one connection to be open at any given time. But the server explorer is not that great of a tool to begin with, it can do rudimentary operations, but for the real SQL, I`d use the management studio. It`s something like an offline phpMyAdmin lol, but much, much bigger ( and better ).

The idea behind is that VS is more for actual development, the studio is more for management. I can`t tell you why VS would kill any and all following connections though. I never encountered the problem before. Then again, last time I actually did anything in VS was 2 years ago.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: asp user roles

Post by hallsofvallhalla »

awesome thanks for the help. Man VS and asp is like an entirely different world on how to do things. Sometimes it is easier others it is way over complicated.
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: asp user roles

Post by Xaleph »

There`s a lot more to .NET then php for example, that`s why i`m digging PHP at the moment :) But on the other hand, you can do a lot more with .NET then PHP can. The only downside is that you have to do much more househoulding before you can begin doing some actual development for your app. But once you get to the cool part, I`ll bet you anything you`ll enjoy working with it. I also recommend to not just script your application, go OO all the way, in fact, try ASP.NET MVC as well.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: asp user roles

Post by hallsofvallhalla »

edit: nevermind...this MS stuff is just whacky at times.
Post Reply

Return to “Coding”