Database.LoadFromDisk error

Automate and integrate using the SQL comparison API

Moderators: Chris Auckland, David Atkinson, Michelle Taylor, chengvoon.tong

Database.LoadFromDisk error

Postby JoshNoe » Tue Oct 23, 2012 9:31 pm

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!
JoshNoe
 
Posts: 2
Joined: Tue Oct 23, 2012 9:08 pm

Postby Brian Donahue » Thu Oct 25, 2012 10:18 am

I'm sorry you have encountered this issue. I will be responding to you via email with the information relevant to troubleshooting this problem.

Thanks!
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to SQL Comparison SDK 10

Who is online

Users browsing this forum: No registered users and 0 guests