Azure Tables を使用しているため、接続文字列がどうあるべきかわかりません。誰でも同じことを教えてください。
MVC 3 インターネット テンプレートが提供する Account Controller をそのまま使用しています。次に、次のエラーが発生します。
アプリケーション構成で接続名 'DefaultConnection' が見つからないか、接続文字列が空です。
Azure Tables を使用しているため、接続文字列がどうあるべきかわかりません。誰でも同じことを教えてください。
MVC 3 インターネット テンプレートが提供する Account Controller をそのまま使用しています。次に、次のエラーが発生します。
アプリケーション構成で接続名 'DefaultConnection' が見つからないか、接続文字列が空です。
The Azure portal should give you any connection string you need to utilize your datastore. I haven't used their simplistic "tables" datastore, so I'm not sure if it actually even has a connection string. You should refer to the Azure documentation to determine exactly how you utilize the tables in your application.
As for the error you're getting, the AccountsModels.cs
file that the default MVC 4 internet application template generates contains a DbContext
subclass inside that directly references the "DefaultConnection" connection string. If your connection string's name is different, change this reference to match. If you have no connection string, add one that matches the name in that file. If Azure's "tables" have no connection string, I'm not sure what you'll have to do to integrate with Entity Framework, but there's surely documentation on that somewhere online.