Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've been trying to experiment with coded user interface testing (CUITS) lately and I get the following error whenever I try to create one.

The following package failed to load: C:\Users[File Path Goes Here]\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll. Coded UI Test is now in an inconsistent state. Remove this package and restart Visual Studio to work with Coded UI Test.

I have a question on Stack Overflow about the error, which seems to have no solution, but that made me wonder, what exactly is an inconsistent state? I have never encountered this error before and I have not seen a good explanation of what it means.

share|improve this question
    
Possibly something to do with references - this DLL may rely on a specific version of another DLL that has been overwritten by a reference in your project. This would make the version loaded in memory different from the on disk one, hence inconsistent. –  Oded Oct 30 '11 at 20:33

1 Answer 1

up vote 2 down vote accepted

If you look at the Transaction processing entry in Wikipedia, you will encounter the following quote:

Transaction processing guards against hardware and software errors that might leave a transaction partially completed, with the system left in an unknown, inconsistent state.

Imagine a system being in state A, and performing operation O should send him to B. However, something wrong happens during execution of O. Now, imagine the operation consisted in computing 1+1 and that we didn't care about the result, we could argue that no matter what happen, state A = state B. But imagine that operation O consisted in writing to a file. The IO component did not return any message after the request to write to the file. Did it crash ? Did it crash before the file was created, or during the write phase, or right before the end, or even after the file was written when it attempted to show you a message box saying "I've done it"? The system could be at A (no file written) or B (file written, and ok) but it can't tell. It is in an unknown state to him, a state that it does not recognize, an inconsistent state.

I hope that my explanation is good :-)

Also, one guy seems to have found the solution to the problem, but he can only guess on what exactly is the reason.

My .2$: Visual Studio could not load the package, but it thought it was loaded, as such, its internal "state" of the the solution/project is no longer "ok" (which was the case), but "right now, I can't tell if we're ok or not".

share|improve this answer
2  
Ha, I'm that one guy- I guess I need to update that blog post with more information. –  Steve French Oct 30 '11 at 22:29
    
ooh, ok, sorry I did not cross check the blog's author and the question's author ;-) –  Jalayn Oct 30 '11 at 22:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.