Add WCF service reference error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antonmaju
    New Member
    • Apr 2008
    • 7

    Add WCF service reference error

    Hi,

    I'm a newbie in WCF. I've used WCF in my winform application with Visual Studio 2008 Express and everything is fine.
    Now I am developing a class library to wrap my functions, so application host doesn't interact directly with WCF services.
    After I clicked 'add service reference' in my class library and built it, I got a lot of this error message: "The type
    name 'LibraryService s' does not exist in the type 'BookPlugin.Boo kPlugin'".
    My class library project name is BookPlugin and the service reference name is LibraryServices .

    The errors came from Reference.cs.
    Example of line that generated error:
    Code:
    public interface ILibraryServiceChannel : BookPlugin.LibraryServices.ILibraryService, System.ServiceModel.IClientChannel 
    {}
    I found that the error came from the naming "BookPlugin.Lib raryServices" in Reference.cs and if I change that line to "LibraryService s", the class library can be built successfully.
    However, Reference.cs is auto generated by VS2008 and if I update the reference, that changes will be roll backed as
    before, and I have a lot of line in Reference.cs that use "BookPlugin.Lib raryServices", so changing that code again will
    be a time consuming task.

    I want to know solution for this problem.
Working...