Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在.netFramework下连接不上 #84

Open
NeoDennis opened this issue Sep 27, 2024 · 0 comments
Open

在.netFramework下连接不上 #84

NeoDennis opened this issue Sep 27, 2024 · 0 comments

Comments

@NeoDennis
Copy link

操作系统为win10 64位 企业版,tdengine server和client版本都是3.0.7.1,使用connector版本为3.1.3,在.netcore3.1和.net6.0下运行以下代码均正常;换到.netframework4.8下运行就报错,提示找不到taos DLL。 System.DllNotFoundException:“无法加载 DLL“taos”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。”
try
{
var conStr = $"host=localhost;port=6030;username=root;password=taosdata";
var builder = new ConnectionStringBuilder(conStr);
using (var client = DbDriver.Open(builder))
{
MessageBox.Show("connected");
}
}
catch { MessageBox.Show("failed"); }
8b685cebd7f5704be7ead9587429202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant