|
-
September 22nd, 2009, 04:22 PM
#1
Trouble with ConnectionString - What is my User ID and password
Hi,
I know the format is right, but what is my user ID and password. I get this error when I try to open the webpage on localhost:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
I am using SQL Server 2005 express.
I am running this on my computer, still working on the webpage, so no remote server or anything just want to access the webpage I have done on my PC.
How do I find out what my username and password is. I am not sure if 127.0.0.1 is correct, but as I said I am running this on my computer. Its IE7.
Thanks,
Mike
Last edited by Mike_Gore; October 18th, 2009 at 10:50 PM.
-
September 23rd, 2009, 02:21 AM
#2
Re: Trouble with ConnectionString - What is my User ID and password
 Originally Posted by Mike_Gore
<add key="ConnectionString" value="Data Source=127.0.0.1\SQLEXPRESS;Initial Catalog=UDG;Persist Security Info=True;User ID=username;PWD=password;"/>
Try changing in into localhost and see what happens
<add key="ConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=UDG;Persist Security Info=True;User ID=username;PWD=password;"/>
-
September 23rd, 2009, 08:21 AM
#3
Re: Trouble with ConnectionString - What is my User ID and password
tried localhost, didn't work.
-
September 25th, 2009, 07:47 AM
#4
Re: Trouble with ConnectionString - What is my User ID and password
you connection string attribute for the password should be "Password" not "PWD". Though that is not causing your issue(but it will).
as for what the username and password is, what did you set them as? During the setup of SQL Express, you are asked to put in a password for the "sa" account. So use "sa" as the username, and whatever you entered during the setup as the password.
Is SQL Express running? Go to Start --> Control Panel --> Administrative Tools --> Services ... and look for the SQL Express service(s). Are they started?
Also, what did you name your instance of SQL Express? During the setup, there was a screen that should have had 2 radio buttons. One said to use the instance name that is in the corresponding textbox. The other said to use the default name. Which did you choose?
===============================
My Blog
-
September 25th, 2009, 09:04 AM
#5
Re: Trouble with ConnectionString - What is my User ID and password
there is one services called SQL Server Browser which is disabled. But I can't enable this process. Doesn't allow me to start this service. Could this be the cause? If so how do I enable it?
I think I chose windows authentication, not sure. Can I get to that screen and select username and password, or would I have to reinstall it?
Last edited by Mike_Gore; September 25th, 2009 at 09:12 AM.
-
September 25th, 2009, 09:49 AM
#6
Re: Trouble with ConnectionString - What is my User ID and password
You will need to reinstall. After reinstall, try again(putting in the username and password), and see if that works or gives you a different error message.
===============================
My Blog
-
September 25th, 2009, 08:26 PM
#7
Re: Trouble with ConnectionString - What is my User ID and password
Authentication problems? Here's Beth Massi's blog showing how to do it:
http://blogs.msdn.com/bethmassi/arch...-on-vista.aspx
-
September 25th, 2009, 09:24 PM
#8
Re: Trouble with ConnectionString - What is my User ID and password
Thanks everyone. It is working now. :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|