ProgrammerGuide.Net | Step by Step Programmer Guide

What Is The Use Of .svc File in WCF? | WCF Interview Question

.svc file is a text file. This file is similar to our .asmx file in web services.

This file contains the details required for WCF service to run it successfully.

This file contains following details :

  • Language (C# / VB) 
  • Name of the service 
  • Where the service code resides 

Example of .svc file

<%@ ServiceHost Language=”C#/VB” Debug=”true/false” CodeBehind=”Service code files path” Service=”ServiceName” />

We can also write our service code inside but this is not the best practice.

Please click here for related products on Amazon!

Jayashee

Add comment

Want to Check Celebrities News?