![](/img/trans.png)
[英]Error CS0234: The type or namespace name 'CustomMarshalers' does not exist in the namespace 'System.Runtime.InteropServices'
[英]CS0234: The type or namespace name 'Soap' does not exist in the namespace 'System.Runtime.Serialization.Formatters'
我正在使用 .NET 4.5 Visual Studio 2012 Web 應用程序。 它給了我運行時錯誤
CS0234:命名空間“System.Runtime.Serialization.Formatters”中不存在類型或命名空間名稱“Soap”
但是我已經將引用添加到System.Runtime.Serialization.Formatters.Soap;
並且也在類文件中;
using System.Runtime.Serialization.Formatters.Soap;
需要從框架中添加參考。 只需檢查並添加以下內容:
System.Runtime.Serialization.Formatters.Soap
轉到解決方案資源管理器,右鍵單擊引用,然后選擇第一個選項,即添加引用。 選擇程序集並在搜索欄中搜索 SOAP。 選擇庫,然后按確定。 錯誤將得到解決
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.