WCF service returns error 500 on /js request

Posted by Cine on Stack Overflow See other posts from Stack Overflow or by Cine
Published on 2010-06-10T09:48:32Z Indexed on 2010/06/10 9:52 UTC
Read the original article Hit count: 326

Filed under:
|
|

I have a wcf service that randomly begins to fail when requesting the autogenerated javascript that wcf supports making. But I have no luck tracking down why. The js thing is part of the wcf featureset, so I dont know how it can suddenly begin to fail and be unable to work until IIS is recycled.

The http log gives me:

2010-06-10 09:11:49 W3SVC2095255988 myip GET /path/myservice.svc/js _=1276161113900 80 - ip browser 500 0 0

So its an error 500, and that is about the only thing I can figure out. The event log contains no information.

Requests to /path/myservice.svc works just fine. After recycling IIS it works again, and some days later it begins to fail until I recycle IIS.

     <service
        name="path.myservice"
        behaviorConfiguration="b">
        <endpoint
           address=""
           behaviorConfiguration="eb"
           binding="webHttpBinding"
           contract="path.Imyservice" />
     </service>
     ...
     <endpointBehaviors>
        <behavior name="eb">
           <enableWebScript />
        </behavior>
     </endpointBehaviors>
     <serviceBehaviors>
        <behavior name="b">
           <dataContractSerializer maxItemsInObjectGraph="2147483647" />
           <serviceMetadata httpGetEnabled="true" />
           <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
     </serviceBehaviors>

I dont see any problems in the web.config settings either.

Any clues how I can track down what the problem is?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about wcf