[.NET] Failed to initialize client proxy: could not connect to test process vstest.discoveryengine.x86.exe

เพิ่มเติมจากบทความเมื่อวานนะครับ Failed to initialize client proxy: could not connect to test process. แต่คราวนี้ตัว Visual Studio มีการแจ้ง Message เพิ่มเติมจากครั้งที่แล้ว ดังนี้ครับ

------ Run test started ------
Failed to initialize client proxy: could not connect to test process vstest.discoveryengine.x86.exe
========== Run test finished: 0 run (0:00:12.43) ==========

จาก Message ครั้ง ผมได้เข้าใจว่า Process ของการ Test บางส่วนติดปัญหาเรื่องสิทธิ์ครับ (อาจจะเป็เพราะผมใช้ Windows 8.1 โดยใช้ Account แบบ Microsoft Account จริงทำให้ไม่ได้รับสิทธิ์ในการเข้าถึง Process ต่างๆแบบ Local Account นะครับ ผมเลยจัดการปรับตัว .exe ที่เกี่ยวกับการ Test ให้เป็น Run As Administrator ดังนี้ครับ
2015-04-26_094708

เมื่อแก้ไขเสร็จแล้ว ตัว Visual Studio สามารถ Discover Test เจอ และสามารถ Debug Unit Test ได้ครับ
2015-04-26_103921


Discover more from naiwaen@DebuggingSoft

Subscribe to get the latest posts to your email.