c# - IIS hosting WCF service error -


I am using IIS 7.0 to host a simple WCF service. I write it using VSTS 2008 + Net 3.5 + C #. The problem occurs when I (I think in the web browser that we can browse the contents of WSDL, and I create a new web site which uses port 9999 and runs an application pool under the administrator account) , I have the following error, any ideas what is wrong?

Here is my service. Svc:

  & lt;% @ ServiceHost language = "C #" service = "Gujarat WCF.StudentManagement"% & gt;  

This is my web Configure:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; System.serviceModel & gt; & Lt; Services & gt; & Lt; Service Treatment Report = "Th WCF.ServiceBehavior" name = "Gu.WCF.StudentManagement" & gt; & Lt; Endpoint Address = "" Binding = "Basic HttpBinding" Contract = "Th WCF.IStudentManagement" & gt; & Lt; Identity & gt; & Lt; Dns value = "localhost" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior name = "Gu.WCF.ServiceBehavior" & gt; & Lt ;! - To avoid disclosing metadata information, set the value below to false and delete the metadata endpoint before deployment - & gt; & Lt; ServiceMetadata httpGetEnabled = "true" /> & Lt ;! - To get exception details in the flaws for debugging purposes, set the price below to true. To avoid exposing exception information, set it to false before deployment - & gt; & Lt; The services included in the debugging include exceptions = DishialInstine = "false" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt; Looks like the .NET 3.0 ISAPI mapping has disappeared.  

Run ServiceModelReg -r in the .NET 3.0 WCF directory (C: \ Windows \ Microsoft.NET \ Framework \ v3.0 \ Windows Communication Foundation)


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -