Asp.net mvc WebSecurity.ResetPassword无法工作

Asp.net mvc WebSecurity.ResetPassword无法工作,asp.net-mvc,asp.net-mvc-4,Asp.net Mvc,Asp.net Mvc 4,我有MVC4应用程序,我使用默认成员身份。我已将UserId从int更改为Bigint。当我使用令牌和新密码调用WebSecurity.ResetPassword时,它显示错误: Cannot implicitly convert type 'long' to 'int?'. An explicit conversion exists (are you missing a cast?) Description: An unhandled exception occurred during the

我有MVC4应用程序,我使用默认成员身份。我已将UserId从int更改为Bigint。当我使用令牌和新密码调用WebSecurity.ResetPassword时,它显示错误:

Cannot implicitly convert type 'long' to 'int?'. An explicit conversion exists (are you missing a cast?)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly convert type 'long' to 'int?'. An explicit conversion exists (are you missing a cast?)

Source Error:

   Dim newpassw As String = mdl.Password
   Dim response As Boolean = WebSecurity.ResetPassword(mdl.PasswordResetToken, newpassw)
当我将UserId从Bigint更改为int时,它工作得很好。
但是我需要Bigint而不是int作为数据库中的UserId。如何为Bigint设置Websecurity.ResetPassword