| Subject: vs2008 Add Service Reference generates Reference.cs which wont com |
| Group: microsoft.public.windows.developer.winfx.indigo |
| Date: 12/18/2007 1:21:01 PM |
| From: =?Utf-8?B?QmlsbEluUEE=?= [Email Address Protection] |
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_Addresses/WCFSvcLib/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 |
| Back |
| Subject: Re: vs2008 Add Service Reference generated Reference.cs wont compile |
| Group: microsoft.public.windows.developer.winfx.indigo |
| Date: 1/14/2008 3:26:20 PM |
| From: Brent Brown [Email Address Protection] |
Hi Bill, Any luck with this? I seem to be having a similar problem.... Thanks! On Dec 18 2007, 2:33 pm, BillInPA <BillI...@discussions.microsoft.com> wrote: > 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: > > 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_Addresses/WCFSvcLib/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 |
| Back |