LoginSignup
0
0

More than 5 years have passed since last update.

ASP.NET マイグレーションが失敗した時

Last updated at Posted at 2016-11-09

古いVB出できたプロジェクトを
Visual Studio2015で開こうとしたが、マイグレーションに失敗した。

メッセージ
「To access Web sites on the local IIS Web server, you must run Visual Studio under an Administrator account.」

ここに解決が書いてあった
http://stackoverflow.com/questions/12159044/you-must-run-visual-studio-in-the-context-of-an-administrator

VSLauncher.exeを管理者権限で実行する

右クリックで管理者権限で実行
shell-session
C:\Program Files (x86)\Common Files\Microsoft shared\MSEnv\VSLauncher.exe

その上でマイグレーションすると成功した。

更に起動しなかった
IISマネージャーで開始したら動いた

IISマネージャー使いたくないし、管理権限で動かしたくない場合
こんなエラーがでたら
「Unable to access the IIS metabase. 」
shell-session
icacls "C:\Windows\System32\inetsrv\config" /t /grant "IIS AppPool\DefaultAppPool":(R)

以下のファイル編集
*.vbproj
xml
<UseIIS>False</UseIIS>

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0