我已經包含了一個自定義驗證器,並且包含了對DLL的引用。但我得到錯誤如下:C#類型'XXXX'無法解析
Warning: System.ArgumentException: The type 'Custom.Validator, CustomValidators, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
cannot be resolved. Please verify the spelling is correct or that the full type name is provided.
我有一個custom.Validator類用於企業庫中的自定義驗證。
下面的代碼會導致上述錯誤:
var results=results = Validation.Validate(msg);
可能有人請告訴我如何解決此錯誤消息。
謝謝
您是否有引發異常的部分代碼? – yas4891
沒有導致此警告的代碼,我們無法幫助您。它只是一個警告,所以如果你想忽略它,你會發現它。 –
hhi @ yas4891,我添加了除了 –