---
title: "What is .svc file in WCF?"  
description: "What is .svc file in WCF?"  
author: "Amit Singh"  
published: 2011-01-25  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/339/what-is-svc-file-in-wcf  
category: "wcf"  
tags: ["wcf"]  
reading_time: 1 minute  

---

# What is .svc file in WCF?

.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 : \
1. Language (C# / VB)\
2. Name of the service\
3. Where the service code resides\
\
Example of .svc file\
\
<%@ ServiceHost Language="C#/VB" Debug="true/false" CodeBehind="Service code files path" Service="ServiceName"

## Answers

### Answer by Amit Singh

.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 : \
1. Language (C# / VB)\
2. Name of the service\
3. Where the service code resides\
\
Example of .svc file\
\
<%@ ServiceHost Language="C#/VB" Debug="true/false" CodeBehind="Service code files path" Service="ServiceName"


---

Original Source: https://www.mindstick.com/interview/339/what-is-svc-file-in-wcf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
