A Precarious Balance

Sean Winstead's web site & blog
Welcome to A Precarious Balance Sign in | Join | Help
in Search

A Precarious Balance

Sean Winstead's web site & blog

Community Server 2: Solution for installer login failure

If you're doing the following, this is for you:

  • Installing Community Server 2.0 on a shared host
  • Using the web-based installer at <your domain>/Installer/Default.aspx
  • Connecting to SQL Server using SQL Server authentication

What you will find is that when you try to select the database for your Community Server site, you'll receive an error message similar to "Error 18456: Message: Login failed for user '<username>'". And no matter how many times you mess with your user name and password, the error will still occur.

If you want to fix this problem, do the following:

  1. Open file Installer/default.aspx file in VS.NET.
  2. Search for "TextMode". You'll wind up in the asp:textbox element for db_password.
  3. Delete the TextMode attribute and its value.
  4. Upload your hacked Installer/default.aspx to your website.

Your password won't be masked, but then it probably doesn't matter. You're installing once, right?

Why does this error occur?

It occurs because the db_password textbox in Installer/Default.aspx has its TextMode property set to "Password". When you enter the password into the wizard and click Next, the password *is* posted back to the server. However, default.aspx doesn't preserve it. And ASP.NET won't preserve it either because sending it back to the client on a postback would be a security risk.

So when you are at the Select Database page, your password is gone and db_password.Text is empty again. The code that builds the connection string pulls the password from db_password, producing a connection string with empty password. And so the error occurs.

--
Sean Winstead

Tags: CommunityServer

Published Sunday, April 02, 2006 9:15 AM by Sean Winstead
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Community Server Daily News said:

I don't know how to report this incredible news, so I'll simply pass along the words of Scott Dockendorf,
June 2, 2006 3:15 PM
 

Community Server Daily News said:

I don't know how to report this incredible news, so I'll simply pass along the words of Scott Dockendorf,
June 2, 2006 3:19 PM
 

Community Server Daily News said:

I don't know how to report this incredible news, so I'll simply pass along the words of Scott Dockendorf,
June 2, 2006 3:23 PM
 

Dave Burke said:

UPDATE:&amp;nbsp; Dave Burke here.&amp;nbsp; Ignore this article.&amp;nbsp; It's CRAP!&amp;nbsp; Oh, it works, but use...
June 17, 2006 10:49 AM
 

Community Server Daily News said:

news of the day a grab bag for what's happening in Community Server Rob Howard tells us there is another
September 7, 2006 3:36 PM
 

Community Server Bits said:

Rahul encounters the CS Web Installer clear-text password issue. There&#39;s been some bad information

March 12, 2007 10:27 AM
 

Community Server Bits said:

Sean also provides his tip on how to fix the SQL Installer login failure in CS 2.0 and ASP.NET 2.0 .

March 12, 2007 11:18 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit