locked
Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. RRS feed

  • Question

  • Hi,

        I am Getting following error after i installed fixpack4 (db2 9.7).but my application is working fine with fixpack1(db2 9.7).

     

    Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    TypeLoadException: Could not load type 'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
      IBM.Data.DB2.DB2Parameter.GetParamInfo(Int32 paramPos, DB2ParamInfo& paramInfo) +0
      IBM.Data.DB2.DB2ParameterCollection.GetParamInfoList() +1265
      IBM.Data.DB2.DB2Command.ExecuteReaderObject(CommandBehavior behavior, String method, DB2CursorType reqCursorType, Boolean abortOnOptValueChg, Boolean skipDeleted, Boolean isResultSet, Int32 maxRows, Boolean skipInitialValidation) +2784
      IBM.Data.DB2.DB2Command.ExecuteReaderObject(CommandBehavior behavior, String method) +20
      IBM.Data.DB2.DB2Command.ExecuteReader(CommandBehavior behavior) +133
      IBM.Data.DB2.DB2Command.ExecuteDbDataReader(CommandBehavior behavior) +4
      System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
      System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
      System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
      System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
      LabSync_ManageSmartCardDraftAff.FillAffiliationGrid() in d:\Work_STAR_DB2\LabSync\ManageSmartCardDraftAff.aspx.cs:299
      LabSync_ManageSmartCardDraftAff.Page_Load(Object sender, EventArgs e) in d:\Work_STAR_DB2\LabSync\ManageSmartCardDraftAff.aspx.cs:82
      System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
      System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
      System.Web.UI.Control.OnLoad(EventArgs e) +99
      System.Web.UI.Control.LoadRecursive() +47
      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

    Above error is coming only when am using DB2CONNECTION.If am using Oledbconnection means there is no error in my application
    Can any one give the idea to resolve this error?

    Tuesday, May 10, 2011 11:09 AM

Answers

  • Dear Customer,

           I'm sorry you have a wrong place posted. This forum is used to post questions about the Microsoft Fix it Center automated troubleshooting tool. Could you please post your issue to http://answers.microsoft.com/en-us that you can get the right solution soon, thanks for your understanding.



    Please Mark as Answered If this is helpful Or Un-Mark as Answered if it is not helpful.

    Best Regards,
    Alex

    • Marked as answer by Fafafaalex Thursday, May 12, 2011 6:56 AM
    Thursday, May 12, 2011 6:56 AM