I am trying to write some unit tests (more integration tests actually) to hit a live IIS server hosting my WCF service. Whenever I run a test though, if one of my Assert statements fails on the client side, my WCF service seems to lock up- and I have to do an iisreset to get things back online.
For example, I have in a test method 3 calls from my service client to WCF service- Call1, Call2 and Call3. The first time through, Call1 works great, Call2 works great and then Call3 fires the Assert because some data is not correct. On the next time through the test, Call1 fails with the following error:
"An exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll but was not handled in user code
Additional information: An error occurred while receiving the HTTP response to http://localhost/Kiosk/KioskSite.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details."
After doing an iisreset everything is okay again.
Anyone have any ideas what might be going on?