I have created a WPF application.There are two threads running in my application:
- First thread listen asynchronously for TCP packets on PORT 40010 and push data to MSMQ
- Second thread pop data from MSMQ
When I close the application by clicking on window close button it shows no error. But when I start the application again it throws the exception:
Unable to start Listrner : Only one usage of each socket address
(protocol/network address/port) is normally permitted
When I restart my PC it run first time successfully but on closing the application it does not work again