私は、次の設定があります。なぜVisual Studioはweb.configトレースリスナーの設定について不平を言っていますか?私のweb.configファイルで
MSDNの例 hereのように、ちょうど同じである<system.diagnostics>
<trace>
<listeners>
<add name="AzureDiagnostics"
type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<filter type="" />
</add>
</listeners>
</trace>
</system.diagnostics>
:
<system.diagnostics>
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,
Microsoft.WindowsAzure.Diagnostics,
Version=1.0.0.0,
Culture=neutral,
PublicKeyToken=31bf3856ad364e35"
name="AzureDiagnostics">
<filter type="" />
</add>
</listeners>
</trace>
しかし、Visual Studioが内部type
属性を強調します<filter type=""
と私はそこにマウスを移動するときthe 'type' attribute is not allowed
と言う。私がIntelliSenseを使用して何が許可されているかを調べようとすると、lockItem
、lockElements
、lockAttributes
、lockAllElementsExcept
およびlockAllAttributesExcept
があります。
なぜVisual Studioにはtype
の中にfilter
が含まれていませんか?
コードをコンパイルしても動作しますか?唯一の問題は、Visual Studioが不平を言うことですか? – DOK
@DOC:うまくいくように見えますが、その 'type'が何をすべきか、VSがなぜ文句を言っているのかよくわかりません。 – sharptooth
ReSharperを実行していますか?まだ修正できていないバグがあります。 –