1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

IISExpressのapplicationhost.configが毎回置き換わる事例

Last updated at Posted at 2015-01-07

Visual Studio 2013 Pro で開発しているが、当初Windows認証だったものを、匿名認証に変更した。
その後、Visual Studioを再起動すると、元のWindows認証がそのまま残っており、Visual Studio再起動するたびに、IISExpressのapplicationhost.configを書き直していた。
書き直さないと、エラーになる。
偶然、applicationhost.config の定義を間違えエラーにしたところ、Visual Studio起動時にエラーなった。applicationhost.config はプロジェクトファイルを見ているのではないかとプロジェクトファイルのソースを見たところ「IISExpresAnonymousAuthentication」「IISExpresWindowsAuthentication」というタグを見つけ、「IISExpresAnonymousAuthentication」をenableに「IISExpresWindowsAuthentication」をdisableに変更することで、applicationhost.config の定義が置き換わらなくなった。

1
0
2

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?