C#Access不是Vaild文件名 [英] C# Access Not a Vaild file name

查看:66
本文介绍了C#Access不是Vaild文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目使用C#连接Microsoft Access数据库。当我在Visual Studio 2017中调试它时,它的工作正常。然后我创建一个Installer项目并将其安装到我的计算机上。 c:\程序文件(x86)。我运行它然后显示快递'不是有效文件
名称'。有人知道吗?我的电脑是windows 10 64bit。

I have a project use C# to connect the Microsoft Access Database. When I debug it in Visual Studio 2017, It's work OK. Then I make a Installer project and Install it to my computer. c:\Program files (x86). I run it then show express ' Not a Valid file name'. Have someone knows whay? My computer is windows 10 64bit.

推荐答案

string connectionString = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};", validFileName);


connectionString

the connectionString


这篇关于C#Access不是Vaild文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆