Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF service library project can't find reference to other project

I have two projects in my solution: MyApp.Domain and MyApp.WebService. MyApp.WebService is a WCF service library.

I want to use some utility functions from MyApp.Domain. So in MyApp.WebService, I added a reference to MyApp.Domain.

Intellisense picked it up just fine, it recognized the function I need to call. But when I build the solution, I get this error:

The type or namespace name 'Domain' does not exist in the namespace 'MyApp' (are you missing an assembly reference?)

at using MyApp.Domain.Utility;

What's going wrong here?

like image 388
Steven Avatar asked Feb 20 '11 22:02

Steven


1 Answers

Make sure both are using the same profile... if one is using the client profile you could be getting this error.... also if the referenced assembly has some references in it to other assemblies you may need to include them in the project as well. If that doesn't get it make sure both have the same setting for 32 vs 64 bit...

GL

like image 176
John Sobolewski Avatar answered Oct 23 '22 08:10

John Sobolewski