views:

47

answers:

2

Hi!

I've created a windows service in VS 2010 which references the model conveniently placed in a separate project which compiles to a dll. I have no problem referencing this dll in other parts of my solution (web apps), but in my windows services the following symptoms display:

  1. Compiler error: The type or namespace %%% cannot be found (are you missing....
  2. I add a reference to %%% (directly to a dll copy or to the project, makes no difference).
  3. The compile error dissapears.
  4. I build.
  5. The compile error reappears.

Using fw4.

What's up with that?

Edit: I can add and use other dlls ofcourse. Third party and microsoft's.

A: 

Clear out your Debug & Release folders that are created and try doing a full "Rebuild"

Michael Bazos
Unfortunately that didn't work.
Martin
A: 

Always check your warning messages.

http://stackoverflow.com/questions/1987733/system-web-extensions-assembly-cannot-be-resolved

Martin