firebird2.5.1上出错

Topics: Developer Forum
Jun 6, 2012 at 3:40 AM

e”应用程序中的服务器错误。

Dynamic SQL Error
SQL error code = -204
Table unknown
DB_ENTRY_ROLE
At line 1, column 41

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: FirebirdSql.Data.Common.IscException: Dynamic SQL Error
SQL error code = -204
Table unknown
DB_ENTRY_ROLE
At line 1, column 41

源错误:

行 19:     //    DbEntry.DropAndCreate(typeof(School));
行 20: 
行 21:         DbEntryRole role = DbEntryRole.FindOne(p => p.Name == "系统管理员");
行 22:         if (role == null)
行 23:         {


源文件: d:\GitHome\bm\WebSite\Account\Login.aspx.cs    行: 21

堆栈跟踪:

[IscException: Dynamic SQL Error
SQL error code = -204
Table unknown
DB_ENTRY_ROLE
At line 1, column 41]
   FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ProcessResponse(IResponse response) +119
   FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadResponse() +53
   FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.ReadGenericResponse() +11
   FirebirdSql.Data.Client.Managed.Version11.GdsStatement.Prepare(String commandText) +189
   FirebirdSql.Data.FirebirdClient.FbCommand.Prepare(Boolean returnsSet) +381
   FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteCommand(CommandBehavior behavior, Boolean returnsSet) +26
   FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior behavior) +78

[FbException (0x140000f9): Dynamic SQL Error
SQL error code = -204
Table unknown
DB_ENTRY_ROLE
At line 1, column 41]
   FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior behavior) +132
   FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +10
   Leafing.Data.SqlEntry.<>c__DisplayClass19.<ExecuteDataReader>b__18() +88
   Leafing.Data.DbEntry.NewConnection(Action callback) +83
   Leafing.Data.DbEntry.UsingConnection(Action callback) +41
   Leafing.Data.SqlEntry.DataProvider.ExecuteDataReader(SqlStatement sql, Type returnType, Action`1 callback) +92
   Leafing.Data.Model.ModelOperator.DataLoadDirect(IProcessor ip, Type returnType, SqlStatement sql, Boolean useIndex, Boolean noLazy) +206
   Leafing.Data.Model.QuerySyntax.QueryContent`1.InnerSelect(Boolean distinct, Boolean noLazy) +246
   Leafing.Data.Model.QuerySyntax.QueryContent`1.Select() +39
   Leafing.Data.Definition.DbObjectModel`2.FindOne(Expression`1 condition, Expression`1 column) +160
   Leafing.Data.Definition.DbObjectModel`2.FindOne(Expression`1 condition) +264
   Account_Login.Page_Load(Object sender, EventArgs e) in d:\GitHome\bm\WebSite\Account\Login.aspx.cs:21
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207