开发者

Cannot reference dll in windows service

开发者 https://www.devze.com 2023-01-08 18:07 出处:网络
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 sol

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 开发者_如何学Cdifference).
  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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消