Database.LoadFromDisk error
JoshNoe
Posts: 4
We just updated to the SDK 10 because the older SDK we were using isn't compatible with SQL Server 2012. However, when Database.LoadFromDisk("myfilename.snp") gets called, I'm getting the following error:
"Value cannot be null. Parameter name: key"
This only occurs with one of our database snapshots. The other database we're updating has no issues.
Here's the stack trace:
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at #8rg.#qtg.#gqh(String #h8Pb, SQLVersion #HYrc)
at RedGate.SQLCompare.Engine.ExtendedPropertyValue..ctor(NullableBinaryReader reader, Single version)
at RedGate.SQLCompare.Engine.ExtendedProperty..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.ExtendedProperties.DeserializeItem(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableDatabaseObjectCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.ExtendedProperties..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Table..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Tables.DeserializeItem(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableDatabaseObjectCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Tables..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Database.#Ukh(NullableBinaryReader #l2)
at RedGate.SQLCompare.Engine.Database.#ujh[#NrPb](NullableBinaryReader #awPb, Converter`2 #jvXb)
at RedGate.SQLCompare.Engine.Database.LoadFromStream(Stream #a0, Database #uwL)
at RedGate.SQLCompare.Engine.Database.LoadFromDisk(String #wqk, Database #uwL)
at RedGate.SQLCompare.Engine.Database.LoadFromDisk(String fileName)
at ReleaseUpdate.Synchronizer.SQLSynchronizer(BackgroundWorker worker, DoWorkEventArgs e)
in C:\SPIDev\SPITools\PRIME\AutoUpdate\Synchronizer.vb:line 125
Let me know if there's any more information I can provide to help figure this out. Thanks in advance for any help!
"Value cannot be null. Parameter name: key"
This only occurs with one of our database snapshots. The other database we're updating has no issues.
Here's the stack trace:
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at #8rg.#qtg.#gqh(String #h8Pb, SQLVersion #HYrc)
at RedGate.SQLCompare.Engine.ExtendedPropertyValue..ctor(NullableBinaryReader reader, Single version)
at RedGate.SQLCompare.Engine.ExtendedProperty..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.ExtendedProperties.DeserializeItem(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableDatabaseObjectCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.ExtendedProperties..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Table..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Tables.DeserializeItem(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.SerializableDatabaseObjectCollection`1..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Tables..ctor(NullableBinaryReader reader)
at RedGate.SQLCompare.Engine.Database.#Ukh(NullableBinaryReader #l2)
at RedGate.SQLCompare.Engine.Database.#ujh[#NrPb](NullableBinaryReader #awPb, Converter`2 #jvXb)
at RedGate.SQLCompare.Engine.Database.LoadFromStream(Stream #a0, Database #uwL)
at RedGate.SQLCompare.Engine.Database.LoadFromDisk(String #wqk, Database #uwL)
at RedGate.SQLCompare.Engine.Database.LoadFromDisk(String fileName)
at ReleaseUpdate.Synchronizer.SQLSynchronizer(BackgroundWorker worker, DoWorkEventArgs e)
in C:\SPIDev\SPITools\PRIME\AutoUpdate\Synchronizer.vb:line 125
Let me know if there's any more information I can provide to help figure this out. Thanks in advance for any help!
Comments
Thanks!