當VS.NET2003遇上VS.NET2005,WebService部署何去何從

來源:互聯網
上載者:User
問題描敘】
重裝作業系統之後,部署原來的Web Service出現無法訪問、無法調試的問題
【原編程環境】
VS.NET2003(.NET Framework 1.1 SP1),Windows XP SP1
【新編程環境】
VS.NET2003(.NET Framework 1.1 SP1),VS.NET 2005 Beta1(.NET Framework 2.0 ),Windows XP SP2
【問題解決過程】

因為原來的項目一直使用工具VS.NET 2003,所以雖然VS.NET 2005 Beta已經出來好久了,卻沒有時間細細品味,現在項目告一段落,終於有機會了。
重裝系統之後,所有工具都安裝完畢,便將原來的Web Service原始碼直接拷貝到 C:Inetpubwwwroot 目錄下,在“Internet 資訊服務(IIS)”中建立為虛擬目錄,然後用 VS.NET2003開啟部署,習慣性的(CTRL+F5)就開始運行了,一切正常,然後試著調用其中的一個方法,卻總是出現如下錯誤:

System.TypeInitializationException: The type initializer for 'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception. ---> System.UnauthorizedAccessException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly)
at System.Diagnostics.EventLog.SourceExists(String source, String machineName)
at System.Diagnostics.EventLog.SourceExists(String source)
at System.Transactions.Diagnostics.DiagnosticTrace..cctor()
--- End of inner exception stack trace ---
at System.Transactions.Diagnostics.DiagnosticTrace.get_Verbose()
at System.Transactions.Transaction.get_Current()
at System.Data.Common.ADP.GetCurrentTransaction()
at System.Data.Common.ADP.GetCurrentTransaction()

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.