Note that there are some explanatory texts on larger screens.

plurals
  1. POCould not load type 'ServiceStack.Common.Extensions.ReflectionExtensions'
    text
    copied!<h2>My Question</h2> <p>I encounter an exception, its message is as following.</p> <pre><code>Could not load type 'ServiceStack.Common.Extensions.ReflectionExtensions' from assembly 'ServiceStack.Common, Version=3.9.38.0, Culture=neutral, PublicKeyToken=null'. </code></pre> <p>My IDE is <code>Visual studio 2012</code>, and the Ormlite.Sqlite.32bit version is <code>3.9.38</code>. I got it from <code>nuget</code> today. I tried the anyversion for <code>Ormlite.Sqlite</code> by <code>nuget</code>, including 32 and 64 bit versions.</p> <p>My models is as followings</p> <pre><code>[Alias("ttconfig")] public class Config : IHasId&lt;int&gt; { [AutoIncrement] public int Id { get; set; } [StringLength(128)] public string Key { get; set; } public string Value { get; set; } } </code></pre> <p>And, I run into exception when I create tables.</p> <pre><code>OrmLiteConnectionFactory fac = new OrmLiteConnectionFactory("Data Source=ttdb.sqlite;", SqliteDialect.Provider); using (var db = fac.CreateDbConnection()) { //! When call CreateTables(), it throw exception. db.CreateTables(false, typeof(Config)); } </code></pre> <h2>StackTrace of the exception.</h2> <p>The StackTrace content is as following</p> <p> at ServiceStack.OrmLite.OrmLiteConfigExtensions.GetModelDefinition(Type modelType) at ServiceStack.OrmLite.OrmLiteWriteExtensions.CreateTable(IDbCommand dbCmd, Boolean overwrite, Type modelType) in C:\src\ServiceStack.OrmLite\src\ServiceStack.OrmLite\OrmLiteWriteExtensions.cs:line 65 at ServiceStack.OrmLite.OrmLiteWriteExtensions.CreateTables(IDbCommand dbCmd, Boolean overwrite, Type[] tableTypes) in C:\src\ServiceStack.OrmLite\src\ServiceStack.OrmLite\OrmLiteWriteExtensions.cs:line 42 at ServiceStack.OrmLite.OrmLiteWriteConnectionExtensions.&lt;>c_<em>DisplayClass1.b</em>_0(IDbCommand dbCmd) in C:\src\ServiceStack.OrmLite\src\ServiceStack.OrmLite\OrmLiteWriteConnectionExtensions.cs:line 17 at ServiceStack.OrmLite.ReadConnectionExtensions.Exec(IDbConnection dbConn, Action`1 filter) in C:\src\ServiceStack.OrmLite\src\ServiceStack.OrmLite\Expressions\ReadConnectionExtensions.cs:line 55 at ServiceStack.OrmLite.OrmLiteWriteConnectionExtensions.CreateTables(IDbConnection dbConn, Boolean overwrite, Type[] tableTypes) in C:\src\ServiceStack.OrmLite\src\ServiceStack.OrmLite\OrmLiteWriteConnectionExtensions.cs:line 17 at TTSampleDataGenerator.Models.TTDbContext.CheckTables() in ....</p> <h2>Update</h2> <p>When I update to v3.9.39, it still crashes. But I remove and reinstall the v3.9.39 version, the problem is fixed.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload