connectionString="AttachDbFilename=C:\Documents and Settings\nmartin\My Documents\PS_Upload\TimeTrack\src\TimeTracker\TimeTrack\App_Data\ASPNETDB.MDF;Integrated Security=True; User Instance=True"
     providerName="System.Data.SqlClient" />

这是从服务器资源管理器提供给我的本地 MDF 文件的连接字符串。尝试运行应用程序时,我不断收到以下错误。
"Format of the initialization string does not conform to specification starting at index 25."

有谁知道这是什么吗?

谢谢!

最佳答案

非常感谢大家。我的问题实际上出在我提供 NHibernate 配置的连接字符串上。看起来本地数据文件路径不应包含在 's 或 "s 中。感谢您的回复。

关于asp.net - 到本地数据库文件的连接字符串不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/485849/

10-09 06:08