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

Cannot Open default database. Invalid login for [machine name]\[username]

Cannot Open default database. Invalid login for [machine name]\[username]
--------------------------------------------------------------------------------

Hi,

I have written services in WCF using C# and SQL Server 2005 which comes inbuilt with VS2008 and hosted using IIS. the service is to check for valid user and register new user.
The problem is that the application works properly. But when I want to check the database in the server explorer I get error message saying "Cannot Open default database. Invalid login for [machine name]\[username]".

I am not understanding what the problem is. Again when I restart my system it again gives me the error saying "Cannot Open default database. Invalid login for [machine name]\ASPNET" so at that time I go to Right click on My Computers Click on Manage-->Users-->ASPNET-->Add SQLuser.
Log off & login again it works fine. Whats the problem & solutions also

Pleaseeeeeeee
Mar 14 '08 #1
0 1065

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: J.S. | last post by:
Is it safe to have the database username and password in the web.config file? Thanks, J.S. --
10
by: Wes McCaslin | last post by:
I have created a login form where i set the username and password within the code. I was wondering how could I set a varible so that I could have a form go back and look at what the user typed in...
2
by: FayeC | last post by:
I have created a site in Joomla with a login (no self registration, users are provided with username and password by the admin). The users are supposed to login to a specific page where they can...
1
by: CodeRazor | last post by:
How can I retrieve the currently logged in user's username? I have tried the option below: Request.ServerVariables("LOGON_USER") while denying access to the Anonymous user both in the config and...
3
by: Michael | last post by:
Hi, I am getting a strange error. Last night when I left work this was working perfectly. This morning when I try to run this code in VS2005, it comes up with an error saying "The name 'UserName'...
4
by: namrataa | last post by:
Hi, I have written services in WCF using C# and hosted using IIS. the service is to check for valid user and register new user. The problem is that the application works properly. But when I want...
11
by: dmorand | last post by:
I'm trying to retrieve the username of the user logged into a machine when a person visits my page on our intranet. I've looked over cfntauthenticate but that's not going to do what I need it to do....
5
by: greatjuli | last post by:
Hi, I am trying to develop intranet for my company as the new web admin. When users log in to the network with their username and password, they do not need to login again into the intranet; a...
7
by: bg4l | last post by:
I am designing a website and am looking for code how to authenticate a user's user name and password.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.