2011-08-29 46 views
0

在Asp.Net(4.0)應用程序中,我們正在使用WCF服務並通過「添加服務引用選項」創建代理類(客戶端和服務之間的共享類型)。問題是,在調試時,在構建應用程序之後,顯示第一頁之前,我們會在輸出窗口中收到8000多條消息(粘貼在下面)。顯示第一頁也花了大約5分鐘。Asp.net Post Build - 調試性能問題

A first chance exception of type 'System.Xml.Schema.UpaException' occurred in System.Xml.dll 

A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll 

完全,這使得,asp.net調試更痛苦。任何人都可以體驗過。? 任何解決方案來克服這一點,並加快後建設行動?

您可以從輸出窗口查看整個文本。 http://pastebin.com/embed_js.php?i=ydQhLPYd

btw,對不起,我的英語。

由於提前, Thiyaga

+0

http://stackoverflow.com/questions/4684888/a-first-chance-exception-of-type-system-xml-xmlexception-occurred-in-system-xml –

+0

謝謝,我讀的鏈接已經和可能不符合確切的問題。也是我們的Asp.net <-> WCF – amaz

回答

1

Read this link.它說明了如何阻止出現這些消息。

+0

我只是想提高性能。即使我禁用了這個選項,VS仍然需要5-7分鐘來加載第一頁。 – amaz