WCF Error - Page cannot be displayed


In this article I have explained about WCF common error and its resolution. The Type of the error is "Page Cannot be displayed". This will come when we try to browse .svc file.

Whenever we try to browse WCF service and if its giving "Page can't be displayed' error or the attached error (WCFError.doc), please use the following command to resolve this error.

This error comes usually when you access WCF service for first time or sometimes the installation got corrupted.

And Also

Some times you will get the build errors "Service Model is not defined"

Steps:
1. Go to Visual Studio Command Prompt
2. Go to the following path to find the tool
%SystemRoot%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\

Ex: C:\Windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\

3. Type the following command
ServiceModelReg.exe -i

And try to browse the .svc file. This will browse successfully.


Attachments

  • WCFError (41026-27844-WCFError.doc)
  • Comments

    No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: