I am using the new SimpleMembership infrastructure in .Net.
Unit tests for creating users (using the API - see below) work fine in the Visual Studio 2012 IDE.
WebSecurity.CreateUserAndAccount(entity.UserName, entity.Password, new { });
However, when I run on the build server (using TeamCity), I get the following below.
I tried Dependency Walker with no luck. I also can not imagine how this can be run in x64 - given that VS2012 works in x86.
Any help would be appreciated.
exception thrown:
System.IO.FileNotFoundException: Could not load file or assembly 'WebMatrix.WebData' or one of its dependencies. The system cannot find the file specified.=== Pre-bind state information === LOG: User = LOG: DisplayName = WebMatrix.WebData (Partial) WRN: Partial binding information was supplied for an assembly: WRN: Assembly Name: WebMatrix.WebData | Domain ID: 2 WRN: A partial bind occurs when only part of the assembly display name is provided. WRN: This might result in the binder loading an incorrect assembly. WRN: It is recommended to provide a fully specified textual identity for the assembly, WRN: that consists of the simple name, version, culture, and public key token. WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio LOG: Initial PrivatePath = NULL Calling assembly : (Unknown).*
source share