Click here to Skip to main content
15,897,273 members

Comments by ahsan.subiya (Top 28 by date)

ahsan.subiya 27-Jul-16 7:11am View    
Deleted
Hi Mohammed i have the same please what is wrong with my service web config and Client app config

Service config



<system.servicemodel>

<services>

<service name="ProductWebserviceapp.Product" behaviorconfiguration="ServiceBehavior">

<endpoint binding="webHttpBinding" contract="ProductWebserviceapp.IProduct"
="" behaviorconfiguration="webHttp">
<identity>
<dns value="localhost">



<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange">


<servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true">
<standardendpoints>
<webhttpendpoint>
<standardendpoint name=""
="" helpenabled="true" automaticformatselectionenabled="true" defaultoutgoingresponseformat="Json" crossdomainscriptaccessenabled="true">


<behaviors>
<servicebehaviors>

<behavior name="ServiceBehavior">
<servicemetadata httpgetenabled="true">
<servicedebug includeexceptiondetailinfaults="true">
<datacontractserializer maxitemsinobjectgraph="50485760">

<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->




<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<servicemetadata httpgetenabled="true">
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<servicedebug includeexceptiondetailinfaults="false">



<endpointbehaviors>
<behavior name="webHttp">
<webhttp helpenabled="True">
<!--<webhttp automaticformatselectionenabled="true">-->





<bindings>






<system.webserver>
<modules runallmanagedmodulesforallrequests="true">







Client App config

<system.servicemodel>

<client>
<endpoint address="http://localhost/ProductPublish/Product.svc"
="" binding="webHttpBinding" behaviorconfiguration="webEndpoint" contract="Product.IProduct" name="SinglePageAngularJS.Product">

<behaviors>
<endpointbehaviors>
<behavior name="webEndpoint">
<webhttp defaultbodystyle="Wrapped"
="" defaultoutgoingresponseformat="Xml" helpenabled="true">






<appsettings>
<add key="webpages:Version" value="2.0.0.0">
<add key="webpages:Enabled" value="false">
<add key="PreserveLoginUrl" value="true">
<add key="ClientValidationEnabled" value="true">
<add key="UnobtrusiveJavaScriptEnabled" value="true">

<system.web>
<compilation debug="true" targetframework="4.5">
<httpruntime targetframework="4.5">
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" />

<pages>
<namespaces>
<add namespace="System.Web.Helpers">
<add namespace="System.Web.Mvc">
<add namespace="System.Web.Mvc.Ajax">
<add namespace="System.Web.Mvc.Html">
<add namespace="System.Web.Optimization">
<add namespace="System.Web.Routing">
ahsan.subiya 4-Mar-15 23:52pm View    
I have tried that solution but no result
ahsan.subiya 18-Dec-12 13:45pm View    
zaf Khan you can go with this link
http://epaper.amarujala.com/svww_index.php
ahsan.subiya 12-May-12 0:33am View    
Sir, when i ms selecting value from dropdown its fill a listview control on the same page.and not redirecting on another page.actually the same website when i m hosting on diffrent machine its not throuing the mention error. i think i m missing some steps during configuring the website under iis or there is some issue in my web.config. please help me out
ahsan.subiya 12-May-12 0:30am View    
This is hosted one under IIS