The MUD Development forum.
Game Development Discussion, Chat, Technical Debate, and people who just love games talking about building worlds.

Home » Hosted Mud Projects » Wheelmud » General » Can't login since ORM change (Exception) - WheelMUD - A C# MUD Server - Forums - WheelMUD - Bug Repo
Can't login since ORM change (Exception) - WheelMUD - A C# MUD Server - Forums - WheelMUD - Bug Repo [message #459] Sun, 22 March 2015 11:44
Karak is currently offline  Karak
Messages: 489
Registered: March 2015
Location: Seattle, WA
Senior Member
Wheelmud
This thread originates from prior WheelMUD forum software archives. It has been migrated here to preserve the contents.

Post by JFed (15 May 2012 05:37 AM):
Here's what I'm getting when I try to login as test/test:

System.Security.VerificationException was caught
<div> Message=Operation could destabilize the runtime.[/quote]
<div> Source=Newtonsoft.Json[/quote]
<div> StackTrace:[/quote]
<div> at Newtonsoft.Json.Serialization.DefaultContractResolver.Create MemberValueProvider(MemberInfo member)[/quote]
<div> at Newtonsoft.Json.Serialization.DefaultContractResolver.Create Property(MemberInfo member, MemberSerialization memberSerialization)[/quote]
<div> at Newtonsoft.Json.Serialization.DefaultContractResolver.Create Properties(Type type, MemberSerialization memberSerialization)[/quote]
<div> at Newtonsoft.Json.Serialization.DefaultContractResolver.Create ObjectContract(Type objectType)[/quote]
<div> at Newtonsoft.Json.Serialization.DefaultContractResolver.Create Contract(Type objectType)[/quote]
<div> at Newtonsoft.Json.Serialization.DefaultContractResolver.Resolv eContract(Type type)[/quote]
<div> at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.G etContractSafe(Object value)[/quote]
<div> at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.S erialize(JsonWriter jsonWriter, Object value)[/quote]
<div> at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)[/quote]
<div> at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value)[/quote]
<div> at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)[/quote]
<div> at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonConverter[] converters)[/quote]
<div> at Raven.Database.Storage.IndexDefinitionStorage.AddIndex(Index Definition indexDefinition)[/quote]
<div> at Raven.Database.DocumentDatabase.PutIndex(String name, IndexDefinition definition)[/quote]
<div> at Raven.Database.Queries.DynamicQueryRunner.TouchTemporaryInde x(String temporaryIndexName, String permanentIndexName, Func`1 createDefinition)[/quote]
<div> at Raven.Database.Queries.DynamicQueryRunner.GetAppropriateInde xToQuery(String entityName, IndexQuery query, DynamicQueryMapping map)[/quote]
<div> at Raven.Database.Queries.DynamicQueryRunner.ExecuteDynamicQuer y(String entityName, IndexQuery query)[/quote]
<div> at Raven.Database.Queries.DynamicQueryExtensions.ExecuteDynamic Query(DocumentDatabase self, String entityName, IndexQuery indexQuery)[/quote]
<div> at Raven.Client.Embedded.EmbeddedDatabaseCommands.Query(String index, IndexQuery query, String[] includes)[/quote]
<div> at Raven.Client.Document.AbstractDocumentQuery`2.GetQueryResult (Wink[/quote]
<div> at Raven.Client.Document.AbstractDocumentQuery`2.get_QueryResul t(Wink[/quote]
<div> at Raven.Client.Document.AbstractDocumentQuery`2.GetEnumerator(Wink[/quote]
<div> at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)[/quote]
<div> at Raven.Client.Linq.RavenQueryProviderProcessor`1.GetQueryResu lt[TProjection](IDocumentQuery`1 finalQuery)[/quote]
<div> at Raven.Client.Linq.RavenQueryProviderProcessor`1.ExecuteQuery [TProjection](Wink[/quote]
<div> at Raven.Client.Linq.RavenQueryProviderProcessor`1.Execute(Expr ession expression)[/quote]
<div> at Raven.Client.Linq.DynamicRavenQueryProvider`1.Execute(Expres sion expression)[/quote]
<div> at Raven.Client.Linq.DynamicRavenQueryProvider`1.System.Linq.IQ ueryProvider.Execute[S](Expression expression)[/quote]
<div> at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source)[/quote]
<div> at WheelMUD.Data.RavenDb.DocumentManager.LoadPlayerDocument(Int 64 databaseId) in C:\WheelMUDSharp\src\Data.RavenDb\DocumentManager.cs:line 49[/quote]
<div> at WheelMUD.Core.PlayerManager.LoadPlayerDocument(Int64 databaseId) in C:\WheelMUDSharp\src\Core\ManagerSystems\PlayerManager.cs:li ne 440[/quote]
<div> at WheelMUD.Core.PlayerManager.OnSessionAuthenticated(Session session) in C:\WheelMUDSharp\src\Core\ManagerSystems\PlayerManager.cs:li ne 281[/quote]
<div> at WheelMUD.Core.SessionManager.OnSessionAuthenticated(Session session) in C:\WheelMUDSharp\src\Core\ManagerSystems\SessionManager.cs:l ine 120[/quote]
<div> at WheelMUD.Core.Session.AuthenticateSession(Wink in C:\WheelMUDSharp\src\Core\Session\Session.cs:line 96[/quote]
<div> at WheelMUD.ConnectionStates.LoginState.ProcessInput(String command) in C:\WheelMUDSharp\src\ConnectionStates\LoginState.cs:line 45[/quote]
<div> at WheelMUD.Core.Session.ProcessCommand(String input) in C:\WheelMUDSharp\src\Core\Session\Session.cs:line 115[/quote]
<div> at WheelMUD.Core.SessionManager.OnInputReceived(IConnection connection, String input) in C:\WheelMUDSharp\src\Core\ManagerSystems\SessionManager.cs:l ine 144[/quote]
<div> at WheelMUD.Server.ServerManager.CommandServer_OnInputReceived( Object sender, ConnectionArgs args, String input) in C:\WheelMUDSharp\src\Server\ServerManager.cs:line 173[/quote]
<div> at WheelMUD.Server.InputParser.RaiseInputReceived(ConnectionArg s connectionArgs, String action) in C:\WheelMUDSharp\src\Server\InputParser.cs:line 168[/quote]
<div> at WheelMUD.Server.InputParser.OnDataReceived(IConnection sender, Byte[] data) in C:\WheelMUDSharp\src\Server\InputParser.cs:line 99[/quote]
<div> at WheelMUD.Server.ServerManager.ProcessIncomingData(IConnectio n sender, Byte[] data) in C:\WheelMUDSharp\src\Server\ServerManager.cs:line 160[/quote]
<div> at WheelMUD.Server.ServerManager.BaseServer_OnDataReceived(Obje ct sender, ConnectionArgs args) in C:\WheelMUDSharp\src\Server\ServerManager.cs:line 207[/quote]
<div> at WheelMUD.Server.BaseServer.EventHandlerDataReceived(Object sender, ConnectionArgs args) in C:\WheelMUDSharp\src\Server\BaseServer.cs:line 270[/quote]
<div> at WheelMUD.Server.Connection.OnDataReceived(IAsyncResult asyncResult) in C:\WheelMUDSharp\src\Server\Connection.cs:line 304[/quote]
<div> InnerException: [/quote]
<div> [/quote]

Post by Fastalanasa (15 May 2012 09:13 AM):
I haven't been able to duplicate this. Can you lay out the steps you took when this blew up? My guess is that I'm not doing things in the same order as you.

Post by JFed (15 May 2012 11:38 AM):
Solved it.. turns out that having Visual Studio Ultimate + Intellitrace enabled causes this problem. Back in business! Smile
This issue is explained and corrected in the newest version of Json.Net. The author calls it "The Worst. Bug. Ever" and it took him a year to find and fix
http://stackoverflow.com/questions/5968084/json-net-verifica tionexception-operation-could-destabilize-the-runtime
http://james.newtonking.com/archive/2012/01/23/json-net-4-0- release-6-serialization-performance.aspx

Post by Fastalanasa (15 May 2012 01:26 PM):
Okie dokie!

That assembly comes with RavenDb. I'll update RavenDb this weekend, then hopefully we won't see that problem anymore. Thanks for working with me to get this resolved. I'll close WMSHARP-103.

Post by JFed (15 May 2012 03:44 PM):
Ditto, appreciate the help. By the way, I'll be out of town for a couple days starting tomorrow, so don't miss me too much! Razz
Cabin time

Post by Karak (28 May 2012 08:50 PM):
<strong>EDIT: This is solved for me. </strong>I am leaving this here for searchability in case anyone else encounters such an error... After fully nuking my binDebug and rebuilding all, this went away. There are a couple reasons this could have gone awry but shouldn't be a problem for most people. anyway the error was:

System.Reflection.ReflectionTypeLoadException was unhandled
Message=Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Source=WheelMUD.Core
StackTrace:
at WheelMUD.Core.UnhandledExceptionHandler.CurrentDomain_Unhand ledException(Object sender, UnhandledExceptionEventArgs e) in C:\WheelMUD\src\Core\Exceptions\UnhandledExceptionHandler.cs :line 39
InnerException:

{System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=4.0.2.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Newtonsoft.Json, Version=4.0.2.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\WheelMUD\binDebug\WheelMUD.net.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = Newtonsoft.Json, Version=4.0.2.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
(Fully-specified)
LOG: Appbase = file:///C:/WheelMUD/binDebug/
LOG: Initial PrivatePath = NULL
Calling assembly : Raven.Json, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\WheelMUD\binDebug\WheelMUD.net.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine .config.
LOG: Post-policy reference: Newtonsoft.Json, Version=4.0.2.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
LOG: Attempting download of new URL file:///C:/WheelMUD/binDebug/Newtonsoft.Json.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
}
Previous Topic: Move from NHibernate to ServiceStack.ORMLite - WheelMUD - A C# MUD Server - Forums - WheelMUD - Data
Next Topic: Missing DLL's on new build 1425 - WheelMUD - A C# MUD Server - Forums - WheelMUD - Bug Reports
Goto Forum:
  


Current Time: Thu Nov 23 08:50:49 PST 2017