c# - How to fix "'ServerVersion' threw an exception of type 'System.InvalidOperationException'"? -


i have got local sql server db, , running, , trying connect in seemingly failproof way:

new sqlconnection(@"server=(localdb)\v12.0;integrated security=true;database=mydbname;"); 

however, line throws exception: "'serverversion' threw exception of type 'system.invalidoperationexception'"? fix it?

i have run

sqllocaldb create "v12.0" 

but seems make no difference.

enter image description here

enter image description here

try take @ how opening connection. have tried this: c# console application invalid operation exception


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -