0

I have some code that creates a SharePoint site.

When the code runs as part of the solution it works. However, when I run it as a unit test I get the following error:

The test adapter 'WebHostAdapter' threw an exception while running test 'CreateSiteTest'. The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error. The remote server returned an error: (500) Internal Server Error.

I have the following tags on my test:

[TestMethod()] 
[HostType("ASP.Net")] 
[UrlToTest("http://localhost/SitePages/Home.aspx")]  

Any idea why I am getting this error?

1 Answer 1

2

SharePoint unit testing requires a minimum of Visual Studio 2010 with Service Pack 1 installed. It resolves issues with Visual Studio 2010 (a 32-bit application) operating with SharePoint 2010 (a 64-bit application).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.