Input string was not in a correct format.

TrockiyTrockiy Posts: 4
Hello. I get same error on each base i'm trying to compare with repo. I dont have {} and some of bases i'm trying to compare succesfully compared through SSC 1 installed on other machines. This error starting to occur after some of our dev's post changes in repo manually, through source control in VS 2010. Reinstall didnt help, even full cleanup didnt help (deleting all of ssc 1 directories in Program Files and in $user data\AppData\Local\Red Gate). Any ideas?

Comments

  • .....and this is callstack

    System.FormatException: Input string was not in a correct format.
    at System.Text.StringBuilder.FormatError()
    at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
    at System.String.Format(IFormatProvider provider, String format, Object[] args)
    at System.String.Format(String format, Object[] args)
    at #QEc.#REc.Trace(String message, Object[] args)
    at RedGate.SQLSourceControl.Engine.ToRetrieveChangeSet.#Mgk(IDifference difference)
    at RedGate.SQLSourceControl.Engine.ToRetrieveChangeSet.#Mgk(IEnumerable`1 differences)
    at RedGate.SQLSourceControl.Engine.ToRetrieveChangeSet.#s1f(Differences headToLiveDifferences)
    at RedGate.SQLSourceControl.Engine.ToRetrieveChangeSet..ctor(IDisposable[] toDisposeOf, #sEc runIgnoringDefaultTrace, IObjectExplorerStateService objectExplorerStateService, DatabaseConnection liveDatabaseConnection, Differences differences, IPersistentWorkspace workspace, Options options, Int64 revision, String headRootPath, ScriptDatabaseInformation folderOptions, List`1 changes, Differences differencesHeadToLive)
    at RedGate.SQLSourceControl.Engine.ToRetrieveChangeSet..ctor(IDisposable[] toDisposeOf, #sEc runIgnoringDefaultTrace, DatabaseConnection liveDatabaseConnection, Differences differences, IPersistentWorkspace workspace, Options options, Int64 revision, String headRootPath, ScriptDatabaseInformation folderOptions, List`1 changes, Differences differencesHeadToLive)
    at #oEc.#h7c..ctor(IDisposable[] toDisposeOf, DatabaseConnection liveDatabaseConnection, Differences differencesLiveToWorkingBase, Differences differencesHeadToWorkingBase, Differences differencesHeadToLive, IPersistentWorkspace workspace, Options options, ScriptDatabaseInformation folderOptions, #sEc databasePollingManager, Int64 revision, String headRegisterRootPath, Pair`2 changes)
    at #oEc.#i7c.#t.#9Jf.#SSi()
    at #oEc.#7Jf.#t.#9Jf.#uKf()
    at #oEc.#7Jf.#hKf(ICancellableOperationStatus status, ICancellable database, Action action)
    at #oEc.#7Jf.#lKf[T](ICancellableOperationStatus status, ICancellable database, Func`1 function)
    at #oEc.#i7c.#QSi[TDiffType](ICancellableOperationStatus status, IReadOnlySourceControlServerCallBacks sourceControlUserCallBacks)
    at #oEc.#i7c.#t.#z2.#hOi()
    at #oEc.#i7c.#bOi[TDiffType](ICancellableOperationStatus status, Func`1 innerBuild)
    at #oEc.#i7c.#q1f(ICancellableOperationStatus status, IReadOnlySourceControlServerCallBacks sourceControlUserCallBacks)
    at #oEc.#4Ec.#z7c(ICancellableOperationStatus status, IReadOnlySourceControlServerCallBacks sourceControlUserCallBacks)
    at #oEc.#4Ec.#8Jc(ICancellableOperationStatus status, IReadOnlySourceControlServerCallBacks sourceControlUserCallBacks)
    at #oEc.#4Ec.#t.#B3.#qfA(ICancellableOperationStatus status)
    at #eEc.#iEc.#t.#u3.#k5f()
    at RedGate.SQLSourceControl.Engine.Cancellables.CancellableOperationBase.InvokeWithTracker(Action action)
    at #eEc.#iEc.Invoke()
    at #JLc.#Qlg.Invoke()
    at #JLc.#PLc.#t.#Jfb.#EJf()
    at RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.Do(Action toDo, Predicate`1 shouldReportPredicate, Boolean rethrow)
    at RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.DoWithObviousExceptionsRethrowAll(Action action)
    at RedGate.SQLSourceControl.CommonUI.Forms.ErrorDialog.DoWithObviousExceptionsRethrowAll(Action action)
    at #JLc.#PLc.#CTc(ICancellableOperation`1 operation, Object token)
  • Could you try installing the latest cumulative patch from here and see if it helps?
    Systems Software Engineer

    Redgate Software

  • Could you try installing the latest cumulative patch from here and see if it helps?

    I was having the same issue and applying this patch fixed it.
  • Patch fix the problem. Thanks guys.
Sign In or Register to comment.