Fix bugs in .net software -- 2

Closed