最近有一个新的asp.net core web的项目,无法启动。
希望热心人士能够帮助一下我!!!!
能稍微讲一下项目结构就更好了!!!
报错信息:
SqlSugar.UtilExceptions
HResult=0x80131500
Message=English Message : Connection open error . 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Chinese Message : 连接数据库过程中发生错误,检查服务器是否正常连接字符串是否正确,实在找不到原因请先Google错误信息: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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).
Source=SqlSugar
StackTrace:
at SqlSugar.AdoProvider.GetDataReader(String sql, SugarParameter[] parameters)
at SqlSugar.AdoProvider.SqlQuery[T](String sql, SugarParameter[] parameters)
at SqlSugar.AdoProvider.SqlQuery[T](String sql, Object parameters)
at chanjet.tc.tool.dac.library.SQLDBSession.FindList[T](String strSql) in D:\FILE\src-code\src-code\cloudtools\src\sf\SQLDBSession.cs:line 300
at DBSessionFactory.GetCloudRootDBInfo() in D:\FILE\src-code\src-code\cloudtools\src\sf\DBSessionFactory.cs:line 303
at DBSessionFactory.GetDBinfo(DBType dbType) in D:\FILE\src-code\src-codecloudtools\src\sf\DBSessionFactory.cs:line 204
at DBSessionFactory.GetDBSession(DBType dbType) in D:\FILE\src-code\src-code\tctool-code\cloudtools\src\sfDBSessionFactory.cs:line 16
at DBSessionFactory.GetCloudDBSession() in D:\FILE\src-code\src-code\cloudtools\src\sf\DBSessionFactory.cs:line 59
at accountdb.services.RdsManageService..ctor() in D:\FILE\src-code\src-code\cloudtools\src\accountdbservices\RdsManageService.cs:line 17
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
你要么这里把问题说清楚,要么留下联系方式。什么都没有怎么帮?
能添加一下qq吗 873973286
现在好了没
还没,数据库连接不上
启动报啥错
数据库无法连接
@meatlovechou: 报什么错呢
@爱杨洋真是太好了: 信息放上去了,数据库连接字符串找不到,就连不上数据库
@meatlovechou: 代码发来看下
数据库连接 写在appstring.json文件中
今天不忙, 3171448083