c# InnerException of socket in XamlParseException -
i have been developing basic c# chat application practice networking in c# , have built stable build application came across strange thing when started second instance of application in visual studio debugger. while first instance running flawlessly second instance gave xamlparseexception in initializecomponents() function. had inner exception of only 1 usage of each socket address (protocol/network address/port) permitted . what confuses me working , creating , managing of sockets being done in subsequent lines of code on end, how simple parsing of xaml giving rise exception (which parsed flawlessly in case of first instance of application running). even if program needs have exception thrown due conflicting sockets, should thrown later(while binding tcp/ while sending udp) can debug transmission throwing exception, in case fails @ first line initializecomponents() only. thanks lot in advance , please edit title/content more appropriate if needed. if code needed please c