C#,SqlConnection出错Unable to find an entry point

Flanesvoiy 2019-04-18 10:09:19
public void run()
{
string conn_str = "server=MSSQLSERVER01;uid=sunny;pwd=sunnyhoney";
sqlconn = new SqlConnection(conn_str);
sqlconn.Open();
}

sqlconn是SqlConnection类,报了个System.EntryPointNotFoundException:“Unable to find an entry point named 'PAL_LocalAlloc' in DLL 'dbnetlib.dll'.”的错在sqlconn.Open()
SqlClient类是添加引用放进去的,原本没有,是不是有什么东西没装完整
...全文
209 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
stherix 2019-04-18
  • 打赏
  • 举报
回复
应该是版本不匹配 你可以用nuget下载,而不是自己去网上下dll放到工程里

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧