Cannot reference dll in windows service
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:
- Compiler error: The type or namespace %%% cannot be found (are you missing....
- I add a reference to %%% (directly to a dll copy or to the project, makes no 开发者_如何学Cdifference).
- The compile error dissapears.
- I build.
- 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.
Clear out your Debug & Release folders that are created and try doing a full "Rebuild"
Always check your warning messages.
System.Web.Extensions Assembly cannot be resolved
精彩评论