Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
587 views
in Technique[技术] by (71.8m points)

c# - provider: SQL Network Interfaces,error:50-Local Database Runtime Error occurred. he specified LocalDB instance does not exist

I create an c# windows form application .for database i used sqlserver localDB. after creating setup file of project it run correctly in my pc.but when i installed it in another pc i had this error:

"An error occurred: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The serer was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.(provider: SQL Network Interfaces,error:50-Local Database Runtime Error occurred. he specified LocalDB instance does not exist.)"

i searched much for fixing this error and just found something like (being sure that Microsoft sql server express LocalDB vX installed) but this didn't work.

my connection string:

Data source=LocalDB)MSSQLLocalDB;AttachDbFilename=D:Daneshdesk1ackFINALLpypropyproappDB.mdf;Integrated Security=True

in my pc and another pc ( Microsoft sql server express LocalDB 2012) installed.

i used some prerequisites in setup file properties like(sql server express LocalDB 2012 and .NET framework 4.7) .these are installed in my pc and another one.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...