Re: SQL2k5 : Login failed for user 'KLEO\ASPNET'

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 07/06/04


Date: Tue, 6 Jul 2004 08:33:33 -0400

try
sp_grantlogin [kleo\apsnt]
go
use databasename
go
sp_grantdbacces [kleo\aspnet]

These are documented in books on line.

-- 
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Mr.KisS" <anonymous@discussions.microsoft.com> wrote in message
news:271bf01c46338$3ff36290$a401280a@phx.gbl...
> 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
> 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 'KLEO\ASPNET'.
>
> I have put TOTAL CONTROL to the ASPNET User for the
> "wwwroot" folder.
>
> What must i do to resolve this problem?
> I dont know how to change the rights of KLEO\ASPNET
> for the SQL Server. How to do? I'm under MS SQL 2005
> Express. There isn't an enterprise manager or visual guide.
> Have you a command line or something that i could use?
>
> Regards.


Relevant Pages

  • "Named Pipes Provider: The network path was not found" error
    ... I just installed Visual web dev. ... SQL server 2005 database, so I decided to try it out. ... Maybe this product, Visual Web Dev, is just buggy and doesn't ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: MS Access DAO -> ADO.NET Migration
    ... For that it is much harder to handle the incremental identifier, ... database but although they have the data, they are not connected at the same ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... SQL Server Management Studio is nowhere to be found on my ...
    (microsoft.public.dotnet.framework.adonet)