migomiddle / xms

基于.netcore的跨平台应用框架,包含众多常用模块,易上手、易扩展,xms可理解为x(可扩展的/任意的)m(管理)s(系统)
https://www.cnblogs.com/migomiddle
MIT License
480 stars 159 forks source link

运行提示数据库连接失败 #11

Closed l277978707 closed 4 years ago

l277978707 commented 4 years ago

System.Data.SqlClient.SqlException:“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server 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: 26 - Error Locating Server/Instance Specified)”

l277978707 commented 4 years ago

没有人遇到类似的问题吗

snowiceyeah commented 4 years ago

image 需要在confconfig里改一下连接配置

l277978707 commented 4 years ago

谢谢,重新加载,运行调试,出现新的提示,是不是和我的开发环境有关。System.ArgumentException:“Could not load the SqlServerDatabaseProvider DbProviderFactory.”

l277978707 commented 4 years ago

更新下SqlServerDatabaseProvider DbProviderFactory就好了