I am getting the following error while referencing web service.
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://localhost:60789/AppService.asmx'.
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head meta-charset="utf-8" /></title>
If the service is defined in the current solution, try building the solution and adding the service reference again.
it is also showing syntax error on client side.
"start tag seen without a doctype first. Expected <doctype!> html"
[Edit TakenFrom ="OP's Comment"]
<@!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
--@>
<configuration>
<connectionstrings>
<add name="ConnStringAppStore" connectionstring="Data Source=DIN16000635;Initial Catalog=AppStore;Integrated Security=True;User ID=sa;Password=ccIndia@123" providername="System.Data.SqlClient">
</add></connectionstrings>
<system.web>
<compilation debug="true" targetframework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A">
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">
</add></add></add></assemblies>
</compilation>
<httpruntime>
<authentication mode="Forms">
<forms loginUrl="Login.aspx"/>
</authentication>
<authorization>
<deny users="?">
</deny></authorization>
</httpruntime></system.web>
<system.servicemodel>
<behaviors>
<endpointbehaviors>
<behavior name="AppStore.MyAppServiceAspNetAjaxBehavior">
<enablewebscript>
</enablewebscript></behavior>
</endpointbehaviors>
</behaviors>
<servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true">
<services>
<service name="AppStore.MyAppService">
<endpoint address="" behaviorconfiguration="AppStore.MyAppServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="AppStore.MyAppService">
</endpoint></service>
</services>
</servicehostingenvironment></system.servicemodel>
</configuration>
[/Edit]
what can be solution for this.
Thanks in Advance