Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

SQL Server 2005 - how do i create the ASPNET user?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SpaceMarine - 15 Feb 2008 23:46 GMT
ok im new to SQL Server 2005, from 2000.

my webapps use integrated security, and run under:

   \\MYMACHINE\ASPNET

...in 2000 it was a pretty simple thing to create a new db user for
this user. took 10 seconds to click thru and do it.

but in SQL 2005, i just cant seem to figure it out. in the Management
Studio i go to the Security->User folder and try to add a new user..
but when i browse around for \\MYMACHINE\ASPNET, i just cant find it
anywhere.

am i going about this incorrectly?

thanks!
sm
SpaceMarine - 15 Feb 2008 23:51 GMT
btw i should add...

i can create a db user called "ASPNET", but i cant associate it to the
MYMACHINE\ASPNET login.

sm
SpaceMarine - 15 Feb 2008 23:57 GMT
> i can create a db user called "ASPNET", but i cant associate it to the
> MYMACHINE\ASPNET login.

well, running this sql sorta worked:

  CREATE USER [ASPNET] FOR LOGIN [MYMACHINE\ASPNET]

...but my app still returns the beloved "Login failed for user
'MYMACHINE\ASPNET'" error when i run it via IIS. (if i run it via
VS.NET 2005's internal web server, it works).

still trying to figure it out.

sm
SpaceMarine - 18 Feb 2008 16:35 GMT
> > i can create a db user called "ASPNET", but i cant associate it to the
> > MYMACHINE\ASPNET login.
[quoted text clipped - 8 lines]
>
> still trying to figure it out.

...any clues on this? havent been able to figure it out.

thanks,
sm
SpaceMarine - 20 Feb 2008 03:51 GMT
> > well, running this sql sorta worked:
>
[quoted text clipped - 5 lines]
>
> > still trying to figure it out.

got it -- i had to create the *login* in the database's Security
section, and then i could create a *user* based on that login.

no mo' error.

sm
Lars - 20 Feb 2008 22:10 GMT
Hi

You do it from the Visual Studio environment.

For Visual Studio 2008/2005
Simply you open a page on the site you are creating and from that page you
can add, manage and delete users and roles. I don't know how you reach this
site from outside the IDE. But I think you have to edit the database
ASPNETDB.MDF to add users and roles (I guess).

Check out the free instruction video from www.LearnVisualStudio.net . It's
awesome.

http://www.learnvisualstudio.net/content/Samples/vwd_09cs.htm

Lars

>> > well, running this sql sorta worked:
>>
[quoted text clipped - 12 lines]
>
> sm
SpaceMarine - 21 Feb 2008 23:39 GMT
> You do it from the Visual Studio environment.
>
[quoted text clipped - 3 lines]
> site from outside the IDE. But I think you have to edit the database
> ASPNETDB.MDF to add users and roles (I guess).

i believe you are referring to the ASP.NET site's usernames & roles,
which are not related to SQL Server instance's login & users.

sm

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.