每當我嘗試在VS Express 2013 for Desktop上運行一些代碼時,它表示該項目已過期。當我搜索解決方案時,他們告訴我要搜索devenv.exe.config,但它不適合我,所以我猜測WDExpress.exe.config是正確的。我打開它,並在粘貼:當配置Visual Studio進行調試時出現'訪問被拒絕'錯誤
<system.diagnostics>
<sources>
<source name="CPS" switchName="CPS" switchType="System.Diagnostics.SourceSwitch">
<listeners>
<add name="cpsFileLogger"/>
</listeners>
</source>
</sources>
<switches>
<add name="CPS" value="Warning"/>
</switches>
<sharedListeners>
<add name="cpsFileLogger" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\temp\devenv-cps.log">
<filter type="System.Diagnostics.EventTypeFilter" initializeData="Warning"/>
</add>
</sharedListeners>
<trace autoflush="true" indentsize="4" />
</system.diagnostics>
他們在後兩個粘貼:
<system.diagnostics>
<switches>
<add name="CPS" value="4" />
</switches>
</system.diagnostics>
沒有幫助,所以我在粘貼。我在這裏找到的第二個塊:http://blogs.msdn.com/b/andrewarnottms/archive/2012/06/07/enable-c-and-javascript-project-system-tracing.aspx 每當我嘗試保存文件時,都會說某種形式的訪問被拒絕。我也下載了DebugView,但它沒有捕獲任何東西。當我嘗試勾選「Capture Global Win32」時,它表示拒絕訪問。有人知道怎麼修這個東西嗎?
右鍵單擊「以管理員身份運行」 – Dalorzo
以管理員身份運行VS /記事本? – user3179229