473,396 Members | 2,011 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,396 software developers and data experts.

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

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
Feb 15 '08 #1
2 4200
On Feb 18, 10:35 am, SpaceMarine <spacemar...@mailinator.comwrote:
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.
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
Feb 20 '08 #2
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/con...s/vwd_09cs.htm
Lars
"SpaceMarine" <sp*********@mailinator.comskrev i meddelandet
news:c6**********************************@z17g2000 hsg.googlegroups.com...
On Feb 18, 10:35 am, SpaceMarine <spacemar...@mailinator.comwrote:
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.

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

Feb 20 '08 #3

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

Similar topics

8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
13
by: Edward Mitchell | last post by:
I have a problem that involves the error I receive when attempting to complete the asp.net web application example (Walkthrough: Creating a Web Application Using a Third-Party Business Object). ...
10
by: John Bunch | last post by:
I have installed Visual Studio 2005 Team Suite Beta 2, including SQL Server 2005 Express Edition April CTP, on Windows XP Professional SP2, including IIS 5.1. The SQL Server (SQLEXRPESS) service...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
4
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
3
by: Arpan | last post by:
I recently installed SQL Server 2005 (Management Studio Express) along with SQL Server 2005 Express (Configuration Manager) in my Win2K Pro m/c & use IIS 5.0 to run ASPX projects. I could add my...
5
by: =?Utf-8?B?TWljaGFlbCBNaWxsZXI=?= | last post by:
I created a walkthrough and couldn't connect to my sql server. I looked up the problem and MSDN told me to create an ASPNET "User" in SQL Svr. It worked, but is that right? Do I have to do that...
10
by: BLUE | last post by:
I'm using SQL Server 2005 Developer Edition on Windows XP SP2 with this setting: <add name="SqlServerTrustedConn" providerName="System.Data.SqlClient" connectionString="Data...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.