성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
[정성태] "props[i].GetValue(props[i])" 코드에서 ...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>mstest 실행 시 "The directory name is invalid." 오류 발생</h1> <p> 잘 되던 mstest가 어느 순간부터 다음과 같은 식으로 오류가 발생합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > D:\temp> <span style='color: blue; font-weight: bold'>mstest /testcontainer:d:\temp\TestProject1\TestProject1\loadfulltest.loadtest</span> Microsoft (R) Test Execution Command Line Tool Version 15.0.27729.1 Copyright (c) Microsoft Corporation. All rights reserved. Loading d:\temp\TestProject1\TestProject1\loadfulltest.loadtest... d:\temp\TestProject1\TestProject1\loadfulltest.loadtest <span style='color: blue; font-weight: bold'>The directory name is invalid.</span> </pre> <br /> 이와 함께 이벤트 로그에도 "Failed to load tests from storage(s)!"라는 식의 오류 메시지를 볼 수 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > Log Name: Application Source: VSTTExecution Date: 2019-05-21 오후 3:31:51 Event ID: 0 Task Category: None Level: Error Keywords: Classic User: N/A Computer: testpc.testad.com Description: The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: <span style='color: blue; font-weight: bold'>(mstest, PID 4832, Thread 1) Failed to load tests from storage(s)!</span> the message resource is present but the message is not found in the string/message table </pre> <br /> <hr style='width: 50%' /><br /> <br /> 지난 글의 로그 파일 설정을 이용해,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > mstest.exe 실행 시 "Visual Studio Enterprise is required to execute the test." 오류 ; <a target='tab' href='http://www.sysnet.pe.kr/2/0/11886'>http://www.sysnet.pe.kr/2/0/11886</a> </pre> <br /> mstest.exe의 수행 로그를 살펴보면 다음과 같은 항목이 있습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > V, 5540, 1, 2019/05/21, 19:00:40.545, TESTPC\mstest, Tmi.LoadLinkStorage: D:\temp\testproject1\testproject1\bin\debug\testproject1.dll E, 5540, 1, 2019/05/21, 19:00:40.545, TESTPC\mstest, Failed to load tests from storage(s)! W, 5540, 1, 2019/05/21, 19:00:40.545, TESTPC\mstest, EqtException: The directory name is invalid. </pre> <br /> 의미상으로 보면, testproject1.dll 파일을 로드할 수 없어 오류가 발생한 듯 보이는데요, 실제로는 지난 글의 문제와 동일한 원인이었습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > msbuild 오류 - Could not find a part of the path '%LOCALAPPDATA%\Temp\2\.NETFramework,Version=v4.0.AssemblyAttributes.cs' ; <a target='tab' href='http://www.sysnet.pe.kr/2/0/11901'>http://www.sysnet.pe.kr/2/0/11901</a> </pre> <br /> 즉, "%LOCALAPPDATA%\Temp\" 디렉터리에 현재 로그인한 RDP 사용자의 세션 ID에 해당하는 폴더가 없어서 그런 것입니다. 따라서, 작업 관리자를 이용하거나 또는 다음과 같이 명령어를 이용해 <a target='tab' href='https://www.sysnet.pe.kr/2/0/1752'>현재 로그인 세션의 ID</a>를 알아낸 다음,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > D:\> <span style='color: blue; font-weight: bold'>query session</span> SESSIONNAME USERNAME ID STATE TYPE DEVICE services 0 Disc console 1 Conn <span style='color: blue; font-weight: bold'>>rdp-tcp#1 TestUser 2 Active rdpwd</span> 31c5ce94259d4... 65536 Listen rdp-tcp 65537 Listen </pre> <br /> 해당 ID(위의 경우 '2')에 따라 "%LOCALAPPDATA%\Temp\" 폴더 하위에 "2" 디렉터리를 만들면 됩니다.<br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
2108
(왼쪽의 숫자를 입력해야 합니다.)