tags:

views:

30

answers:

1

Hi there,

We have a website hosted with heart internet and are seeing some strange behaviour and have no idea what could be causing it at this stage.

It seems at random intervals our WCF web services will cease to work. The server will return the message that the service failed to start (System.ServiceModel.ServiceActivationException). I'm not sure how to actually see what this exception is.

The strange thing is that if we re-upload the dll and pdb for our web project and manually recycle the application pool through our hosts configuration tools the web services will work again.

Has anyone any idea as to why this could be happening? Presumably this is a problem with the host, but knowing how poor their tech support is, I'm reluctant to go them without any ideas as to how to solve the problem.

Thanks in advance

+2  A: 

You could try to add this service behavior (serviceDebug) to get details of the exception in your messages (but mind you: everyone else might also get all those details, so maybe you don't want to enable this....)

<system.serviceModel>
   <behaviors>
      <serviceBehaviors>
         <behavior name="YourServiceBehavior">
             <serviceDebug includeExceptionDetailInFaults="True" />
         </behavior>
      </serviceBehaviors>
   </behaviors>

and then of course you'd have to set the service's behaviorConfiguration to reference this configuration:

<service name="....." behaviorConfiguration="YourServiceBehavior" .. >

This could give you more info in case the exception happens.

Secondly: why on earth are you uploading pdb files ?? Those contain debug symbols only - typically neither needed nor wanted on a production system (but I don't think this has anything to do with the problem at hand).

Marc

marc_s
Thanks for the advice. Ill add the config settings and see what it turns up. Regarding the pdb file - I assumed it was needed :)I simply publish the site from within VS2008 with the default settings and the pdb file is output along with the dll in the bin folder. Not specifically looking into what a pdb file was I simply assumed it was needed. Ill not upload it in future.
Sergio