SimpleMembership
.Netで新しいフレームワークを使用しています。
ユーザーを作成するための単体テスト (API を使用 - 以下を参照) は、Visual Studio 2012 IDE でローカルに正常に動作します。
WebSecurity.CreateUserAndAccount(entity.UserName, entity.Password, new { });
ただし、ビルド サーバーで (TeamCity を使用して) 実行すると、次のようになります。
依存関係ウォーカーを試してみましたが、うまくいきませんでした。また、VS2012がx86で実行されていることを考えると、これをx64で実行する方法も考えられません。
どんな助けでも大歓迎です。
例外をスローしました:
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).*