2016-09-12 38 views
0

我在Azure中有一個Web應用程序,正在查看一個天青的sql數據庫,其中使用了遷移來創建我的數據庫和ASP.NET身份表。在ASP.NET Azure上設置RoleManagement

<roleManager 
     enabled="true" 
     cacheRolesInCookie="true" 
     defaultProvider="OurSqlRoleProvider" 
    > 
     <providers> 
      <add 
      connectionStringName="DefaultConnection" 
      applicationName="/" 
      name="OurSqlRoleProvider" 
      type="System.Web.Security.SqlRoleProvider" /> 
     </providers> 

    </roleManager> 

,當我嘗試看看在Web應用程序中的任何角色給了我這個錯誤:

Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.

我做了什麼錯事,但我已經在我的web.config從而使它?

編輯
有沒有人有Azure友好的SQL腳本來設置asp.net身份?微軟似乎已經失去了他們:

https://support.microsoft.com/en-gb/kb/2006191

回答