2

My connection string looks like the following:

<add name="RaiseFantasyLeagueConnectionString" connectionString="Server=ATLAS-SQL-07;Database=Raise;MultipleActiveResultSets="True" User Id=***; Password=*******/>

I am getting an error on MultipleActiveResultSets="True" saying

Missing Required Whitespace.

Can anyone suggest what I am doing wrong?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
JackofAll
  • 517
  • 4
  • 13
  • 23

2 Answers2

4

This connection string has multiple problems.

  • The True value in MultipleActiveResultSets=True should not be quoted
  • There should be a semicolon after MultipleActiveResultSets=True
  • There should be a closing quote after the password.

Try it like this:

<add name="RaiseFantasyLeagueConnectionString" connectionString="Server=ATLAS-SQL-07;Database=Raise;MultipleActiveResultSets=True;User Id=***;Password=*******"/>
Brian Rogers
  • 125,747
  • 31
  • 299
  • 300
0

Put a semicolon

MultipleActiveResultSets="True"; User Id=
                               ^
                               |
abatishchev
  • 98,240
  • 88
  • 296
  • 433