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

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.
JAMESAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rdrunnerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JAMESAuthor Commented:
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
rdrunnerCommented:
Is the SQL Server configured to use SQL-Authentication? (or mixed) or is it "Windows only"

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

JAMESAuthor Commented:
Mixed.
0
rdrunnerCommented:
Hmmm....

Can sa with mypassword login from a different computer?
0
JAMESAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.