473,608 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

login failed for user \aspnet

PA
I am new to MSDE 2000. Installed this yesterday using windows
installer, deafult settings(no change in authentication) .

a. I want to create database and tabels in MSDE. How do I do this? (I
managed to do this through .net web application using server explorer
but is there any other way to do this? Where can I get enterprise
manager? Can I use it after 120 days evalutaion?

b. Once that I have created database and a table with windoes
authentication, I am trying to retrieve data from that table via .net
web application using sqlasoadaper and dataset. but I am getting Login
failed for user computername\as pnet. I have given administrator rights
to aspnat account using computer management. I have also added a line

<identity impersonate="tr ue" />

to my web.config file.
after adding this line I get following error.

login failure for user computername\IU SR_name

Can anyone help me at all?

many thanks in advance.
Nov 17 '05 #1
2 12831
Hey PA :)

It's a real pain to work with MSDE without the enterprise manager to help
you out. I went through the same hassle you are facing right now. I created
the tables through visual interdev, but when i got the login faliure i had
to use command line tools for setting up the right permissions on the
database.

If you're using windows authentication:
osql -E -S \\machinename\\ VSdotNET (if VSdotNET is the instance name you're
using - it's default for .net projets - it can be omitted to use the default
instance)
If you enabled clear text (i think you need that to apply the path that will
stop the slammer dos attack - but you can still continue to use windows
auth)

from there you need to assign the permissions needed with some stored
procedures. I don't remember the names (not too hard to find on msdn though)
You need to do the following (i don't know the syntax from the top of my
head - i'm normally an enterprise manager user ;)
1) GRANT LOGIN to the user.
2) add persmissions to datareader and datawriter if you need that
3) make sure the user does not have denydatareader etc.

Oh yeah remember to "use yourdatabasenam e" first so you're setting
permissions on the right database! (I forgot my first try so it still didn't
work ;)

Good luck!

"PA" <pr*******@jvc. co.uk> wrote in message
news:f7******** *************** **@posting.goog le.com...
I am new to MSDE 2000. Installed this yesterday using windows
installer, deafult settings(no change in authentication) .

a. I want to create database and tabels in MSDE. How do I do this? (I
managed to do this through .net web application using server explorer
but is there any other way to do this? Where can I get enterprise
manager? Can I use it after 120 days evalutaion?

b. Once that I have created database and a table with windoes
authentication, I am trying to retrieve data from that table via .net
web application using sqlasoadaper and dataset. but I am getting Login
failed for user computername\as pnet. I have given administrator rights
to aspnat account using computer management. I have also added a line

<identity impersonate="tr ue" />

to my web.config file.
after adding this line I get following error.

login failure for user computername\IU SR_name

Can anyone help me at all?

many thanks in advance.

Nov 17 '05 #2
I would recommend getting one of the free toolsets available or simply buy
the $49 SQL Server Developer Edition which has the tools built in. See my
website for details on the free tools. (Use at your own risk)
http://www.betav.com/Files/Content/Tools/tools.htm

--
_______________ _______________ ______
Bill Vaughn
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
_______________ _______________ ____

"Per Hornshøj-Schierbeck" <ho***@hotmaill .com> wrote in message
news:u9******** ******@TK2MSFTN GP10.phx.gbl...
Hey PA :)

It's a real pain to work with MSDE without the enterprise manager to help
you out. I went through the same hassle you are facing right now. I created the tables through visual interdev, but when i got the login faliure i had
to use command line tools for setting up the right permissions on the
database.

If you're using windows authentication:
osql -E -S \\machinename\\ VSdotNET (if VSdotNET is the instance name you're using - it's default for .net projets - it can be omitted to use the default instance)
If you enabled clear text (i think you need that to apply the path that will stop the slammer dos attack - but you can still continue to use windows
auth)

from there you need to assign the permissions needed with some stored
procedures. I don't remember the names (not too hard to find on msdn though) You need to do the following (i don't know the syntax from the top of my
head - i'm normally an enterprise manager user ;)
1) GRANT LOGIN to the user.
2) add persmissions to datareader and datawriter if you need that
3) make sure the user does not have denydatareader etc.

Oh yeah remember to "use yourdatabasenam e" first so you're setting
permissions on the right database! (I forgot my first try so it still didn't work ;)

Good luck!

"PA" <pr*******@jvc. co.uk> wrote in message
news:f7******** *************** **@posting.goog le.com...
I am new to MSDE 2000. Installed this yesterday using windows
installer, deafult settings(no change in authentication) .

a. I want to create database and tabels in MSDE. How do I do this? (I
managed to do this through .net web application using server explorer
but is there any other way to do this? Where can I get enterprise
manager? Can I use it after 120 days evalutaion?

b. Once that I have created database and a table with windoes
authentication, I am trying to retrieve data from that table via .net
web application using sqlasoadaper and dataset. but I am getting Login
failed for user computername\as pnet. I have given administrator rights
to aspnat account using computer management. I have also added a line

<identity impersonate="tr ue" />

to my web.config file.
after adding this line I get following error.

login failure for user computername\IU SR_name

Can anyone help me at all?

many thanks in advance.


Nov 17 '05 #3

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

Similar topics

5
2384
by: Matthew Louden | last post by:
I wrote ASP.NET application that access SQL Server database. When I run the application, it yields "Login failed for user '<COMPUTER_NAME>\ASPNET'" error message. I then did the following, but still didn't work. Any ideas?? 1. In IIS console, right click the virtual directory 2. click directory security tab 3. click edit button on anonymous access 4. click browse button
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet user account (with same password as aspnet user on IIS (Devweb01)) 2) edited local machine.config file <ProcessModel> Password attribute to same password (both on IIS and SQL Machine) 3) SQL Server security is Sql Server and Windows
3
4904
by: Mr.KisS | last post by:
Hello all, I'm working with Windows XP PRO SP1, ASP.NET v2 (with Visual Web Dev) and, MS SQL 2005 with a database with Windows Authentication mode. I've an aspx page which must send a query to the database. But i have this exception : Login failed for user 'KLEO\ASPNET'. Description: An unhandled exception occurred during the execution of the current web request. Please review the
3
2401
by: Kim | last post by:
After installing MSDE2000 on my WIN XP machine, I created the database from Access using the upsizing wizard. Although the tables can be seen from the server explorer, I keep on encountering problem in building my web application. The error message is "Login failed for user\ASPNET". I've tried to supply/not supply a username and password at the SQL server login but both methods could not work. I did not create a username and password...
4
1822
by: Chuck Bowling | last post by:
I'm having a problem that i really don't understand. I'm new to ASP.NET and to SQL Server (MSDE). I'm trying to get a VS walkthru in the C# to work. I think the problem is permissions but I'm not sure. I've tried adding the ZEUS\ASPNET user to the server using osql with the command "EXEC sp_grantlogin 'ZEUS\ASPNET'" but it had no apparent effect. Below is the error page that was generated when I tried to build and run the site: ...
4
1321
by: trouling | last post by:
An aspx page I made with a DataGrid and SQLConnection to my local MS SQL server shows appropriate DB information when view from within the ..NET designer. However, when selecting: "View in Browser", the following error appears. Login failed for user 'myComputer\ASPNET' Selected failing code is: SqlDataAdapter1.Fill(AuthorsDS1)
5
2292
by: Ramtin | last post by:
Hi; when I use sql server connection or ole connection for working with database I receive the login failed for user 'any user that I work'.I've been granted ASPNET user in sql.
10
5266
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 Source=localhost;Initial Catalog=GTSDB;Integrated Security=SSPI;" /> All worked great with my windows application.
11
1794
by: Anil Gupte | last post by:
I am getting the following error: ********* Login failed for user 'AUM\ASPNET'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'AUM\ASPNET'.
4
2031
by: RN1 | last post by:
I am working on WinXP Pro SP3, .NET 2.0 & SQL Server 2005 (Windows Authentication). When I run a ASPX page that connects to SQL Server, the following error gets generated: Login failed for user 'RON\ASPNET' where RON is my machine name. I came across a few posts which suggested adding RON\ASPNET as a User in SQL Server Management Studio Express (under Security--->Logins node). I did so but that didn't resolve the problem.
0
8067
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8010
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8501
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8483
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8157
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8349
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6820
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3967
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4030
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.