"Type name does not match file name" warning for WCF service codebehind

4 posts, 0 answers
  1. Dan Aucott
    Dan Aucott avatar
    9 posts
    Member since:
    Oct 2009

    Posted 02 May 2013 Link to this post

    Hi.

    I'm getting a warning of "Type name does not match file name" against the codebehind files for a WCF service - for example, the service "CorrelationService.svc" has a codebehind of "CorrelationService.svc.vb".

    JustCode offers to fix this by renaming the VB file to CorrelationService.vb, but this seems to be working against the way VS2010 sets up the files.  

    Could this be a switchable option?  I don't mind it for normal .vb files, but I'd rather leave the backing files for services as .svc.vb?

    Thanks

    Dan
  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 06 May 2013 Link to this post

    Hello Dan,

     Thanks for contacting us.
    We are aware of this issue and as a workaround I could recommend ignoring this particular warning.
    You can do that like shown in this demo.
    I hope it helps.
    Thanks.

    Kind regards,
    Zdravko
    the Telerik team
    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
  3. DevCraft banner
  4. Dan Aucott
    Dan Aucott avatar
    9 posts
    Member since:
    Oct 2009

    Posted 14 May 2013 Link to this post

    Hi Zdravko.

    I think I'll wait for a fix - it's a bit draconian to ignore every instance of this since we may end up missing items that should be renamed.

    Dan
  5. Nikolay Valchev
    Admin
    Nikolay Valchev avatar
    72 posts

    Posted 15 May 2013 Link to this post

    Hi Dan,

    This Good-Code-Yellow has been fixed and will be released in the upcoming internal build.

    Kind regards,
    Nikolay Valchev
    the Telerik team
    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Back to Top