문제

I created a new test project with web tests as described in Microsoft's documentation here. However, when I try to run a web test, even if it's just a blank test, I get the following error:

Request failed: Could not run Web test 'WebTest1' on agent 'MYCOMPUTER': Method not found: 'Void Microsoft.VisualStudio.TestTools.WebTesting.WebTestContext..ctor(System.Collections.Generic.Dictionary`2, Int32, System.String, System.String, Int32, Int32, Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel)'.

at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseContext..ctor(WebTestCaseVariation variation, Int32 webTestIteration, Hashtable runContextParameters) at Microsoft.VisualStudio.TestTools.WebStress.WebTestCaseVariation..ctor(WebTestElement webTestElement, Hashtable runContextParameters) at Microsoft.VisualStudio.TestTools.WebStress.WebTestElement.CreateVariation(IRunContext runContext) at Microsoft.VisualStudio.TestTools.WebStress.WebTestRunner.StartupVariation() at Microsoft.VisualStudio.TestTools.WebStress.WebTestRunner.PlaybackThread()

I've seen some similiar posts on other forums where a user corrects the problem by reinstalling VS2008 Service Pack 1, but I'm having no such luck.

Has anyone else here encountered this problem. To repeat, there is no problem with recording web tests, but I get an error when I execute them.

도움이 되었습니까?

해결책

I had a similar issue and I was forced to reinstall both Visual Studio 2008 and service pack 1. Did you reinstall both? Which flavor of Visual Studio 2008 are you using? Developer/Professional/Team System?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top