C# – unhandled microsoft .net framework exception in w3wp.exe

cnetworkflowservice

I am writing a console application which uses a workflow service.
I tried to attach the visual studio to IIS process to debug my application in two visual studio console but it didn't work and after that when I try to do something with my service ( update the service, build the service, open the service in browser and etc) just in-time debugger pops up:
An unhandled Microsoft .net framework exception occurred in w3wp.exe[every time diffident number here]

P.S. I have a running service in IIS and before changing setup I didn't have any problem but now even after restarting I still have this problem.

Best Answer

Restart site in IIS and also restart app pool worked for me.