You could get the IIS site name using the GetSiteName method. System.Web.Hosting.HostingEnvironment.ApplicationHost.GetSiteName(); The GetSiteName is introduced in the .NET Framework version 3.5. Related TutorialsHow the proxy class works in ASP.NET How to build basic web service with ASP.NET – step 2 How to validate an XML document with XML Schemas in C# How to send email in C# How to set up out-of-date HTML standard doctype in ASP.NET 4.0