简体   繁体   English

Visual Studio 19 无法识别 ASP.NET 的 SQL Server 2012

[英]Visual Studio 19 not recognising SQL Server 2012 for ASP.NET

I want to run an ASP.NET project on VS 19 but whenever I open it, it shows an error dialog box that “this project requires SQL Server 2012 which is not installed on this computer” - but SQL Server 2012 is installed with all services running.我想在 VS 19 上运行一个 ASP.NET 项目,但是每当我打开它时,它都会显示一个错误对话框,提示“此项目需要 SQL Server 2012,但未在此计算机上安装”-但 SQL Server 2012 已安装所有服务跑步。

错误信息

And database cannot be created showing an error并且无法创建数据库显示错误

A network related or instance specific error网络相关或特定于实例的错误

I guess Visual Studio 19 is somehow not recognising SQL Server 2012 services and I can't figure out how to fix it.我猜 Visual Studio 19 不知何故无法识别 SQL Server 2012 服务,我不知道如何修复它。

Also tried to disable firewall and enable all TCP/UDP Connections but of no use, kindly help as it's very frustrating.还尝试禁用防火墙并启用所有 TCP/UDP 连接但没有用,请帮助,因为这非常令人沮丧。

I'm sorry for using sloppy naming schemes as i'm new to Stack Overflow.我很抱歉使用了草率的命名方案,因为我是 Stack Overflow 的新手。

Installing SQL Express LocalDB helped me solve the problem, i thought i had it installed from the SQL Express tools availableMicrosoft SQL Download , but the SQL Express LocalDB was missing.安装SQL Express LocalDB帮助我解决了这个问题,我以为我是从可用的Microsoft SQL 下载的 SQL Express 工具中安装的,但是缺少SQL Express LocalDB It sounds stupid, but it is what it is, hope it helps anyone else.这听起来很愚蠢,但事实就是如此,希望它可以帮助其他人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM