Publish asmx web service to FTP server given parser error <p>I create web service name <strong>Webservice.asmx</strong> into Web application name <strong>Publish_test</strong> using VS2013 every thing is work find,but when i publisher it my host i get this error :</p> <pre><code>Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not create type 'Publish_test.MyWebService.WebService'. Source Error: Line 1: &lt;%@ WebService Language="C#" CodeBehind="~/WebService.asmx.cs" Class="Publish_test.MyWebService.WebService" %&gt; Source File: /test/test/MyWebService/WebService.asmx Line: 1 Version Information: Microsoft .NET Framework Version:2.0.50727.5485; ASP.NET Version:2.0.50727.5483 </code></pre> <p>My web Service Code :</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace Publish_test.MyWebService { /// &lt;summary&gt; /// Summary description for WebService1 /// &lt;/summary&gt; [WebService(Namespace = "http://src-services.com/test/test/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Script.Services.ScriptService] public class WebService : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello World"; } } } </code></pre>