An interesting detail - in the project that finally took the Service
Reference, I can add service methods, rebuild the service, update the service
reference in the IDE, and all is well.
But in the projects which refused the Reference.cs, nothing I do will make
them build - even though they are line for line the same.
Did I say any help would be appreciated? It would...
"BillInPA" wrote:
| Quote: |  | |
|
> I have tried several times to build the simplest WCF service lib in VS2008 -
> out of a dozen tries, the built in tools have worked once.
>
> 1. In vs2008, I create a WCF service library called WCFSvcLib, and compile
> it, goes OK
> 2. I create a small WinForm app to host it, add a ref to WCFSvcLib, that
> goes ok
> I can run the host, and start the service
> 3. I create a WinForm app as a Client, WCFClient
> 4. R-Click on the WCFClient Project/Add Service Reference/Discover
> The tool shows
> http://localhost:8731/Design_Time_Ad...b/Service1/mex
> I take the defaults, the service reference is added and Reference.cs is
> generated
> 5. When I then try to build WCFClient, I get the same 7 errors on 4 lines
> from Reference.cs.
> The lines are 89,94,85, and 11.
> The error is
> The type name 'ServiceReference1' does not exist in the type
> 'WCFClient.WCFClient'
>
> Here is a line from Reference.cs that throws the compile error
> public interface IService1Channel : WCFClient.ServiceReference1.IService1,
> System.ServiceModel.IClientChannel {}
>
> In the WCFClient form1.cs, if I type
> using WCFClient.
> the IDE shows me ServiceReference1
>
> But it wont build
>
> | |
| | |