Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException: "Instance lookup depends on an unknown item." #17

Open
GoogleCodeExporter opened this issue Aug 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create ASP.net MVC5 project using Autofac as dependency resolver.
2. Add whitebox.autofac nuget.
3. Register whitebox module in autofac: 
builder.RegisterModule<WhiteboxProfilingModule>();
4. Run whitebox profiler GUI application separately.
5. Run web project.

What is the expected output? What do you see instead?

Excpected to see activity output in profiler.
Instead I get an exception in the profiler application code:

System.InvalidOperationException was unhandled by user code
  HResult=-2146233079
  Message=Instance lookup depends on an unknown item.
  Source=Whitebox.Core
  StackTrace:
       at Whitebox.Core.Updaters.InstanceLookupHandler.UpdateFrom(InstanceLookupBeginningMessage e) in c:\Repos\whitebox-f14204816e55\Whitebox.Core\Updaters\InstanceLookupHandler.cs:line 44
       at Whitebox.Core.Session.MessageDispatcher.DispatchMessageOfType[TMessage](TMessage message) in c:\Repos\whitebox-f14204816e55\Whitebox.Core\Session\MessageDispatcher.cs:line 44
  InnerException: 



What version of the product are you using?

Latest per Nov 25th 2013: 
http://code.google.com/p/whitebox/source/detail?r=f14204816e55bfe775622726058df2
fe54fe5ae9


Please provide any additional information below.

The ProfiledApplication test app included in the whitebox solution works. I 
tried to mimick its setup, but nothing happens when I try to copy its 
app.config stuff into my web.config. I need to explicitly register the whitebox 
module in code for anything to happen. The main difference I can see is that I 
use the nuget, but the test app uses a project reference.

I even tried to use the same DLLs as the test app, by referencing autofac.dll, 
whitebox.dll and whitebox.containers.autofac.dll instead of the ones I used (I 
used 3.1.5 autofac, test app used 3.1.1, and I used nugets), but I still get 
the same exception. Another difference is that I am running a web project and 
it is not in the same solution, but can't see how that should matter?

Any ideas would be appreciated, I really love the idea of whitebox.

Original issue reported on code.google.com by anjdreas on 26 Nov 2013 at 9:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant