初めてのWindows Azure その1
そういえば、AZURE本を年末に買っていた。
Windows Azure Downloads: Windows Azure SDK | Web Development Tools | Build Web Applications
まず、ここから必要なソフトをインストールした。
・
・
・
P82でHelloWorldアプリをエミュレータ実行しようとしたらエラーが出た。
The Windows Azure compute emulator must be run elevated. Please restart Visual Studio in elevated administrator mode in order to run the project.
どうもVSを管理者として実行していないのが原因のようです。
くわしくは、こちら。
Windows Azure に簡単なサービスを展開するための操作手順
・
・
・
あらあら、今度はこんなエラーが...
アセンブリ 'System.ServiceModel, Version 3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' から型 'System.ServiceModel.Activation.HttpModule' を読み込むことができない
これは、.NET4.0がインストールされているのが原因らしい。
コマンドプロンプトから
aspnet_regiis.exe -i -enable
で解決するらしい。
あ、VS2010のコマンドプロンプトでね。
詳しくは
セットアップ問題のトラブルシューティング
・
・
・
うーー、またしても権限かー
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>aspnet_regiis.exe -i -enable
ASP.NET (4.0.30319) のインストールを開始します。
.
エラーが発生しました: 0x8007b799
このツールを実行するには、このコンピューターの管理権限を持っていなければなりません。
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>
・
・
・
はいはい、管理者として実行!
うまくいきました。
Setting environment for using Microsoft Visual Studio 2010 x86 tools.
C:\Windows\system32>aspnet_regiis.exe -i -enable
ASP.NET (4.0.30319) のインストールを開始します。
....
ASP.NET (4.0.30319) のインストールが完了しました。C:\Windows\system32>
・
・
・
うまくいきました。やれやれ。
これで、AZUREアプリがローカルのエミュレータで動いたということになるのかな。