我SimpleMembership
在.Net 中使用新框架。
创建用户的单元测试(使用 API - 见下文)在 Visual Studio 2012 IDE 中本地运行良好。
WebSecurity.CreateUserAndAccount(entity.UserName, entity.Password, new { });
但是,在构建服务器上运行时(使用 TeamCity),我得到以下信息。
我尝试过 Dependency Walker,但没有成功。我也想不出这怎么能在 x64 中运行——考虑到 VS2012 在 x86 中运行。
任何帮助,将不胜感激。
抛出异常:
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).*