Cannot convert source type to target type
<p>In a code-behind for an .aspx in one of my test web projects, I'm trying to set this variable to the returned object.  I've got the reference to the web service in my web project and that's fine.</p>

<p>I am making a call to one of our web service methods:</p>

<pre><code>CompanyName.CC.DebitResponse debitRespnose = CCService.IssueDebit(...);
</code></pre>

<p>in the .asmx IssueDebit returns type CompanyName.CC.DebitResponse.</p>

<p>But I get this error:</p>

<pre><code>"Cannot convert source type MyWebTestProject.CCService.DebitResponse to target type CompanyName.CC.DebitResponse"
</code></pre>

<p>I mean the variable I'm setting up and the return type defined in the method in my service are exactly the same.  So why would it complain?</p>

<p>In my web service, here's IssueDebit:</p>

<pre><code>public DebitResponse IssueDebit(...)
{
...
}
</code></pre>

<p>I know for sure that DebitResponse in the IssueDebit is of type CompanyName.CC.DebitResponse</p>

<p>UPDATED.</p>

<p>Ok, I'm very stuck.  Here's the actual code (before I just changed the names for privacy purposes).  Please do not re-paste any of this (or if you do drastically change the names as this is sensitive)</p>

<p><a href="http://www.elbalazo.net/post/codebehind.txt" rel="nofollow">http://www.elbalazo.net/post/codebehind.txt</a>  and 
<a href="http://www.elbalazo.net/post/webservice.txt" rel="nofollow">http://www.elbalazo.net/post/webservice.txt</a></p>

<p>this is the real code.  Look at IssueDebit in the code behind.</p>

<p>The web service reference I have in my test web project is named LitleService.</p>

<p>When I look at that service in object explorer, I notice it has the type in it that's conflicting.  So why would that type be in my service if I do not have that class even defined in my .asax?</p>

<p><a href="http://www.elbalazo.net/post/webservice%5Fobjectexplorer.jpg" rel="nofollow">http://www.elbalazo.net/post/webservice%5Fobjectexplorer.jpg</a></p>

<p>In another method I stubbed out in my codebehind, I'm getting Ambiguous reference on the param here:</p>

<pre><code>    private void SetIssueDebitResults(ServiceAuthResponse response)
    {
        //not implemented
    }

Ambiguous Reference:
xxx.Litle.ServiceAuthResponse
WebServiceTesting.LitleService.ServiceAuthResponse
</code></pre>

<p>so why would I get ServiceAuthResponse objet in my Litle service like this when the actual ServiceAuthResponse class origin and definition is in xxx.Litle.ServiceAuthResponse...a completely different project?  I've got that assembly referenced in both web projects (both the test project and my web project that contains the actual .asmx).</p>
