views:

57

answers:

1

Hi,

I am encountering a strange issue: I call a WCF-Operation from my client. The operation deletes all files in a specified directory and finally deletes their parent directory too.

ACtually, this works. No exception is thrown and the files within the folder and the folder itself are deleted successfully.

But: the wcf context of my client gets invalidated so I need to instantiate the Service Client again. If I do not delete the directory but only the files within everything works fine. Actually I do not have any clue why deleting a directory has an impact on the Client calling the service ??!

Thank You

+1  A: 

Are you getting back a SOAP fault from your service call when you delete the directory??

If so, can you enable additional detailed debug information to find out what exactly that fault is on the server??

You do this by adding a service behavior to your config (on the server side):

<behaviors>
   <serviceBehavior name="detailedDebugInfo">
       <serviceDebug includeExceptionDetailInFaults="True" />
   </serviceBehavior>
</behaviors>

and then assigning that service behavior configuration to your service declaration:

<services>
    <service name="YourService" 
             behaviorConfiguration="detailedDebugInfo">

Once you do this, you should be getting back the detailed exception info from a potential server side exception into the SOAP fault you're getting back on the client.

marc_s
I did this already. As I said in my original post: no obvious excecption is thrown by the service and the directory gets deleted successfully.
Max