本帖最后由 ziken 于 2022-1-17 16:27 编辑
经过:
1、设计器调试正常 发布后的应用操作异常,查看日志提示 "Message": "SQL logic error no such table: main.U用户信息视图",
2、设计器中删除用户信息视图,再次创建 用户信息视图,提示错误如上图 ;3、设计器F5运行工程文件,则出现上图 底部的错误信息 U用户信息视图没有发现,可能已被使用
4、旧工程文件导入 用户信息视图
5、发布到生产环境后,引用用户信息视图的页面,无法正产显示结果,浏览器调试信息:
Exception happened, please check the log file to get more detail information.
日志文件同步骤1:
SQLite error (1): no such table: main.U用户信息视图 in "select a.[用户名] as C0,a.[全名] as C1 from [main].[U用户信息视图] as a"
Sql execute exception--------------------------------------
{
"errorCode": 1,
"ClassName": "System.Data.SQLite.SQLiteException",
"Message": "SQL logic error
no such table: main.U用户信息视图",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
at System.Data.SQLite.SQLiteDataReader.NextResult()
at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SQLite.SQLiteCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at Forguncy.DataSourceBase.FillTableAsync(String commandText, IEnumerable`1 parameters)",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2147481665,
"Source": "System.Data.SQLite",
"WatsonBuckets": null
}
CurrentMethodName: FillTableAsync
Sql statement-----------------------------------------------
select a.[用户名] as C0,a.[全名] as C1 from [main].[U用户信息视图] as a
-----------------------------------------------------------
Tid:6 2021/12/26 16:05:06: Request Exception Happened-------------------------------
Path/Home/GetTableDataWithOffset
UserName:qiyunxin
|