I have a project with two dll's (I'll name them A & B).
In the first dll I want to pass a object of a web reference to my other dll.
The two dll's use properties from the object so I have added a web reference to the service in both my dll's.
But when I want to pass this object I get an error:
The best overloaded method match for 'method in dll B (B.com.test.services.Task)' has some invalid arguments.
So my dll A expects it to be a object of type A.com.test.services.Task
while it gets an object of type B.com.test.services.Task
.
How do I fix this?
Some code:
Dll A:
using A.com.test.services
public string BuildDetail(Task task, bool TaskExecutionState, bool TaskComment)
{
DetailScreen detail = new DetailScreen(task); //error is here.
return detail.Layout;
}
Dll B:
using B.com.test.services
public DetailScreen(Task task)
{
//some code
}