Red Gate forums :: View topic - Exception on Linking Database
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 2
SQL Source Control 2 forum

Exception on Linking Database

Search in SQL Source Control 2 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Badgott



Joined: 05 Aug 2011
Posts: 3

PostPosted: Fri Aug 05, 2011 11:07 am    Post subject: Exception on Linking Database Reply with quote

If i try to link my database i get the followeing error message:

SQL 2008 R2 Express
RedGate Version: latest

RedGate.Shared.Utils.InvalidStateException: Failed to resolve no-ops after 5 tries
bei #GWeb.#VXM.#mYM[#eTb](Func`2 , ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
bei #GWeb.#VXM.#kYM(ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
bei #GWeb.#4Ec.#8Jc(ICancellableOperationStatus , IReadOnlySourceControlServerCallBacks )
bei #GWeb.#4Ec.#t.#B3.#qfA(ICancellableOperationStatus )
bei RedGate.SQLSourceControl.Engine.Cancellables.MutexedCancellableOperation`1.#t.#u3.#k5f()
bei RedGate.SQLSourceControl.Engine.Cancellables.CancellableOperationBase.InvokeWithTracker(Action action)
bei RedGate.SQLSourceControl.Engine.Cancellables.MutexedCancellableOperation`1.Invoke()
bei #eEc.#Qlg.Invoke()
bei #JLc.#PLc.#t.#Jfb.#EJf()
bei RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.Do(Action , Predicate`1 , Boolean )
bei RedGate.SQLSourceControl.Engine.SmartAssembly.ExceptionReporting.ErrorReporterBase.DoWithObviousExceptionsRethrowAll(Action action)
bei RedGate.SQLSourceControl.CommonUI.Forms.ErrorDialog.DoWithObviousExceptionsRethrowAll(Action action)
bei #JLc.#PLc.#CTc(ICancellableOperation`1 , Object )

Any ideas ?

Kind regards
Daniel
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Fri Aug 05, 2011 1:03 pm    Post subject: Reply with quote

Hi Daniel,
The snippet looks to me as if there was a failure trying to send the error report rather than the original failure itself. Can you explain what you see in source control when you attempt to link?

We may need you to email us the full log to work out what is going on.
Back to top
View user's profile Send private message
Badgott



Joined: 05 Aug 2011
Posts: 3

PostPosted: Fri Aug 05, 2011 1:19 pm    Post subject: Reply with quote

Hi Brain,

I've submitted an error report over the source control panel to your system.

The Description Text also contains a link to this post so I hope you can map the submitted issue to this post and keep me updated.

Kind regards,
Daniel
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Fri Aug 05, 2011 2:27 pm    Post subject: Reply with quote

Hi Daniel,

I've got the error report but it looks like the problem is getting changes rather than the link operation itself.

The last thing it did was to try to get the database info file:

11:24:23.328|Info |#oEc.#z8h |12 |ConfigurableThreadPool thread:UpdatingAll to revision 9269: [FilesToUpgrade: C:\Users\(you)\AppData\Local\Red Gate\SQL Source Control 2\WorkingBases\frjcw2xq.pgd\Tables\dbo.HMSolution.sql'C:\Users\(you)\AppData\Local\Red Gate\SQL Source Control 2\WorkingBases\frjcw2xq.pgd\RedGateDatabaseInfo.xml]
Back to top
View user's profile Send private message
Badgott



Joined: 05 Aug 2011
Posts: 3

PostPosted: Fri Aug 05, 2011 3:53 pm    Post subject: Reply with quote

Hi Brain,

any ideas why this happens i've used a backup from the same database that was also linked with soucre control before.

Kind regards
Daniel
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Mon Aug 08, 2011 9:11 am    Post subject: Reply with quote

I don't know what is causing this and why but it seems to be that the source control system can't get the latest version. Can you try deleting the local copy of the above-mentioned file from disk and then see if the operation succeeds?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Wed Aug 10, 2011 5:49 pm    Post subject: Reply with quote

Did deleting the file help?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group