Solved

login failed for user 'Domain\MachineName$' ASP.NET app.

Posted on 2004-10-29
1,795 Views
Last Modified: 2012-06-27
WILL CROSS POST ON ASP.NET

Hi,

We are trying to deploy an asp.net app. to a Windows Server 2003 running SQL Server.  When we try to access the DB we receive the following error :-

Login failed for user 'Domain\MachineName$'

We "think" we have set all correct user logins but can't be 100% sure as we cannot find any finite documentation on this and what we have found seems to apply to "NetWork security" users and ASPNET users but nothing relating directly to the machine account.

Any thoughts would be much appreciated.

James.
0
Question by:JAMES
    6 Comments
     
    LVL 11

    Accepted Solution

    by:
    Hello

    How are you accessing the DB? Please post the connection string. If you are using integrated Security then you need to add the ASP-User to the users which can access the DB (IUsr_YourPC........)

    THis user must be added to your DB so you can use logins with integrated security.
    0
     

    Author Comment

    by:JAMES
    Hi,

    Here is the connection string.

    workstation id="JAMES-X31";packet size=4096;user id=sa;data source=R2D2;persist security info=True;initial catalog=Reality;password=MyPassword

    JAMES-X31 is the name of the development machine (does this matter that it's different to the live server) and R2D2 is the name of the DB server (which is also the local web server in this instance)

    James.
    0
     
    LVL 11

    Expert Comment

    by:rdrunner
    Is the SQL Server configured to use SQL-Authentication? (or mixed) or is it "Windows only"

    0
     

    Author Comment

    by:JAMES
    Mixed.
    0
     
    LVL 11

    Expert Comment

    by:rdrunner
    Hmmm....

    Can sa with mypassword login from a different computer?
    0
     

    Author Comment

    by:JAMES
    Havent tried that.  Im confused on who I should give login rights to in SQL Server for the ASP.NET process - is it ASPNET, NetworkSecurity etc

    Once I am clear on this it will hopefully allow me to narrow the problem, at the moment I have too many variables.

    James.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I recently came across an interesting Question In EE (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/Q_27070749.html?cid=1135#a35876665) and was puzzled about how to achieve that using SSIS out of the box tasks, which was i…
    I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
    Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now