This project has moved. For the latest updates, please go here.
1
Vote

Import Error

description

I'm having difficulty importing the my oga. file (146KB)

OGAMA 5.0 is trying to convert the SQL Database to SQLite since otherwise it will not be able to open the data. The issue is, there is an error message that pops up (exception occurred with long coding), which prevents the file from opening.

This is the error code;

Error on Tuesday, April 18, 2006, 2:22:18 AM
  • There is an error in XML document (1, 1).------------------------------------
    Method name:Deserialize
    Line: 0
    Column: 0
    Message: Data at the root level is invalid. Line 1, position 1.
    Source: System.Xml
    TargetSite: Void Throw(System.Exception)
    StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
    at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlTextReader.Read()
    at System.Xml.XmlReader.MoveToContent()
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExperimentSettings.Read5_ExperimentSettings()
Message: Data at the root level is invalid. Line 1, position 1.
Source: System.Xml
TargetSite: Void Throw(System.Exception)
StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExperimentSettings.Read5_ExperimentSettings()

Error on Tuesday, April 18, 2006, 2:22:51 AM
  • There is an error in XML document (1, 1).------------------------------------
    Method name:Deserialize
    Line: 0
    Column: 0
    Message: Data at the root level is invalid. Line 1, position 1.
    Source: System.Xml
    TargetSite: Void Throw(System.Exception)
    StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
    at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlTextReader.Read()
    at System.Xml.XmlReader.MoveToContent()
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExperimentSettings.Read5_ExperimentSettings()
Message: Data at the root level is invalid. Line 1, position 1.
Source: System.Xml
TargetSite: Void Throw(System.Exception)
StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExperimentSettings.Read5_ExperimentSettings()

Error on Tuesday, April 18, 2006, 2:28:28 AM
  • There is an error in XML document (1, 1).------------------------------------
    Method name:Deserialize
    Line: 0
    Column: 0
    Message: Data at the root level is invalid. Line 1, position 1.
    Source: System.Xml
    TargetSite: Void Throw(System.Exception)
    StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
    at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    at System.Xml.XmlTextReaderImpl.Read()
    at System.Xml.XmlTextReader.Read()
    at System.Xml.XmlReader.MoveToContent()
    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExperimentSettings.Read5_ExperimentSettings()
Message: Data at the root level is invalid. Line 1, position 1.
Source: System.Xml
TargetSite: Void Throw(System.Exception)
StackTrace: at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExperimentSettings.Read5_ExperimentSettings()

Error on Tuesday, April 18, 2006, 2:29:59 AM
  • Directory lookup for the file "c:\documents and settings\administrator\desktop\Database\advert2016.mdf" failed with the operating system error 2(The system cannot find the file specified.).
    Cannot attach the file 'c:\documents and settings\administrator\desktop\Database\advert2016.mdf' as database 'advert2016'.------------------------------------
    Method name:OnError
    Line: 0
    Column: 0
    Message: Directory lookup for the file "c:\documents and settings\administrator\desktop\Database\advert2016.mdf" failed with the operating system error 2(The system cannot find the file specified.).
    Cannot attach the file 'c:\documents and settings\administrator\desktop\Database\advert2016.mdf' as database 'advert2016'.
    Source: .Net SqlClient Data Provider
    TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
    StackTrace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
    at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)
    at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, TimeoutTimer timeout)
    at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, TimeoutTimer timeout, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
    at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
    at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
    at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
    at System.Data.SqlClient.SqlConnection.Open()
    at DbAccess.SqlServerToSQLite.ReadSqlServerSchema(String connString)
    at DbAccess.SqlServerToSQLite.ConvertSqlServerDatabaseToSQLiteFile(String sqlConnString, String sqlitePath)
    at Ogama.Document.ConvertToSQLiteDatabase()
    at Ogama.Document.LoadSQLData(BackgroundWorker splash)
    at Ogama.Document.LoadDocument(String filePath, Boolean addToRecentFiles, BackgroundWorker splash)
    at Ogama.MainWindow.MainForm.OpenDocument(String filename)
    at Ogama.MainWindow.MainForm.OpenExperiment()
    at Ogama.MainWindow.MainForm.LoadProjectWithStartUpScreen()

Error on Tuesday, April 18, 2006, 2:31:41 AM
  • Directory lookup for the file "c:\documents and settings\administrator\desktop\Database\advert2016.mdf" failed with the operating system error 2(The system cannot find the file specified.).
    Cannot attach the file 'c:\documents and settings\administrator\desktop\Database\advert2016.mdf' as database 'advert2016'.------------------------------------
    Method name:OnError
    Line: 0
    Column: 0
    Message: Directory lookup for the file "c:\documents and settings\administrator\desktop\Database\advert2016.mdf" failed with the operating system error 2(The system cannot find the file specified.).
    Cannot attach the file 'c:\documents and settings\administrator\desktop\Database\advert2016.mdf' as database 'advert2016'.
    Source: .Net SqlClient Data Provider
    TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean)
    StackTrace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
    at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, SqlConnection owningObject)
    at System.Data.SqlClient.SqlInternalConne

comments