MikeBosch1

I've seen alot of postings about this but none of them have solved my problem. Can someone please help Here is my web.config:

< xml version="1.0" >

<!--

Note: As an alternative to hand editing this file you can use the

web admin tool to configure settings for your application. Use

the Website->Asp.Net Configuration option in Visual Studio.

A full list of settings and comments can be found in

machine.config.comments usually located in

\Windows\Microsoft.Net\Framework\v2.x\Config

-->

<configuration>

<appSettings/>

<connectionStrings />

<system.web>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

-->

<compilation debug="true">

<assemblies>

<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="Microsoft.Transactions.Bridge, Version=3.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="SMDiagnostics, Version=3.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.IdentityModel.Selectors, Version=3.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

</assemblies>

</compilation>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<authentication mode="Windows"/>

<!--

The <customErrors> section enables configuration

of what to do if/when an unhandled error occurs

during the execution of a request. Specifically,

it enables developers to configure html error pages

to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

<error statusCode="403" redirect="NoAccess.htm" />

<error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>

-->

</system.web>

<system.diagnostics>

<sources>

<source name="System.ServiceModel.MessageLogging">

<listeners>

<add name="messages"

type="System.Diagnostics.XmlWriterTraceListener"

initializeData="c:\logs\messages.svclog" />

</listeners>

</source>

</sources>

</system.diagnostics>

<system.serviceModel>

<diagnostics>

<messageLogging logEntireMessage="true" logMalformedMessages="false"

logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="false"

maxMessagesToLog="3000" maxSizeOfMessageToLog="2000" />

</diagnostics>


<behaviors>

<serviceBehaviors>

<behavior name="SomeCompany.Manas.Inventory.ServiceImplementation.InventoryService_Behavior">

<serviceDebug includeExceptionDetailInFaults="false" />

<serviceMetadata httpGetEnabled="true" />

</behavior>

<behavior name="SomeCompany.Manas.SalesOrders.ServiceImplementation.SalesOrderService_Behavior">

<serviceDebug includeExceptionDetailInFaults="false" />

<serviceMetadata httpGetEnabled="true" />

</behavior>

</serviceBehaviors>

</behaviors>

<services>

<service behaviorConfiguration="SomeCompany.Manas.Inventory.ServiceImplementation.InventoryService_Behavior"

name="SomeCompany.Manas.Inventory.ServiceImplementation.InventoryService">

<endpoint

address=""

binding="wsHttpBinding"

bindingNamespace="http://SomeCompany.Manas.Inventory.ServiceContracts/2007/05"

contract="SomeCompany.Manas.Inventory.ServiceContracts.IInventoryService" />

</service>

<service behaviorConfiguration="SomeCompany.Manas.SalesOrders.ServiceImplementation.SalesOrderService_Behavior"

name="SomeCompany.Manas.SalesOrders.ServiceImplementation.SalesOrderService">

<endpoint

address=""

binding="wsHttpBinding"

bindingNamespace="http://SomeCompany.Manas.SalesOrders.ServiceContracts/2007/05"

contract="SomeCompany.Manas.SalesOrders.ServiceContracts.ISalesOrderService" />

</service>

</services>

</system.serviceModel>

</configuration>



Re: Windows Communication Foundation (Indigo) WCF: has zero application (non-infrastructure) endpoints

Brian McNamara - MSFT

Assuming you are getting an exception saying that your service

has zero application (non-infrastructure) endpoints

(is that indeed the problem ) then it sounds like your web.config file is not being picked up, or else your service type is not called "SomeCompany.Manas.Inventory.ServiceImplementation.InventoryService"...

Can you share your .svc file Is the web.config file 'next to it'






Re: Windows Communication Foundation (Indigo) WCF: has zero application (non-infrastructure) endpoints

MikeBosch1

I figured it out. It was really obscure and strange, more of an IIS issue than WCF. My Default Website had the default directory as a one that I had deleted. This apparently caused the problem. Strange, but thanks anyways.