Azure / App-Service-Migration-Assistant

Azure Websites Migration Assistant for Windows is a tool that allows customers to move their existing sites hosted on IIS servers into the cloud on Azure App Service. For more information check out https://appmigration.microsoft.com .
https://appmigration.microsoft.com
MIT License
75 stars 60 forks source link

'Newtonsoft.Json.JsonWriter' threw an exception. #19

Closed Tank6035 closed 4 years ago

Tank6035 commented 4 years ago

The Assistant fails when running the basic checks. with the following error: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.JsonWriter' threw an exception. ---> System.IO.FileLoadException at Newtonsoft.Json.Utilities.EnumUtils.InitializeValuesAndNames(StructMultiKey2 key) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func`2 valueFactory) at Newtonsoft.Json.Utilities.EnumUtils.GetEnumValuesAndNames(Type enumType) at Newtonsoft.Json.JsonWriter.BuildStateArray() at Newtonsoft.Json.JsonWriter..cctor() --- End of inner exception stack trace --- at Newtonsoft.Json.JsonWriter..ctor() at Newtonsoft.Json.JsonTextWriter..ctor(TextWriter textWriter) at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer) at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting) at iisConfigAssistant.Program.Main(String[] args) Aasms error All server are Windows Server 2012 R2 This happens on all servers in this cluster.

krolson commented 4 years ago

You refer to the servers as being in a cluster - I am guessing this means they are in a failover cluster? Unfortunately the Migration Assistant does not support clustered IIS servers as a migration source at this time. I have updated the main wiki page with this detail in the FAQs server requirements: https://github.com/Azure/App-Service-Migration-Assistant/wiki.
Thank you for reporting this. We will consider enabling this type of server source in future and/or improving the error message for this case. If I've misunderstood and your are not using clustered servers please let me know and I will provide instructions for getting some additional debugging information.

Tank6035 commented 4 years ago

You are correct my server are in a cluster environment.