一般是由于使用相对路径造成的,使用绝对路径即可。 string sqlitepath = Application.StartupPath + "\\sqlite.db"; 转载于:https://www.cnblogs.com/cyberarmy/p/8734901.html