我一直在試圖讓ASP.net成員ship proveider與我在SQL Azure中託管的其他數據庫一起工作。我已經針對數據庫運行了適當的SQL Azure特定腳本來進行設置。該腳本可以從微軟在這裏:http://archive.msdn.microsoft.com/KB2006191試圖將Asp.Net Memebership數據庫部署到SQL Azure
然而,每次我使用Visual Studio 10上運行我的網站在調試模式下,我得到以下錯誤:
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 5123 and the SqlException message is: CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file 'C:\USERS\ROBERTO\DOCUMENTS\VISUAL STUDIO 2010\PROJECTS\FLYINGSHAKESTORE\MVCMUSICSTORE\APP_DATA\ASPNETDB_TMP.MDF'. CREATE DATABASE failed. Some file names listed could not be created. Check related errors. Creating the ASPNETDB_74b63e50f61642dc8316048e24c7e499 database...
其他所有對數據庫的訪問完美的作品。所以它不是我的連接字符串。
我認爲,當第一次調用成員資格提供者時,ASP.Net會嘗試將新的Memberhship數據庫附加到SQLAzure(它不能),因爲它認爲它不存在。我不知道如何關閉這種行爲。
任何人都知道我能做什麼?
謝謝。
羅伯託
這是非常重要的,你和 所有的供應商......否則系統變得困惑在哪個供應商使用,你會得到認證錯誤 –
2013-06-06 18:19:07