時FileNotFoundException我有幾個項目的解決方案。在一個項目中,我添加了對另一個項目的引用。一切都好。我可以看到另一個項目的命名空間/班,自動完成等在Visual Studio中使用dll方法
當我嘗試做
OtherProjectNamespace.Class a = new OtherProjectNamespace.Class();
我得到這個:
Could not load file or assembly '**OtherProjectNamespace**, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
沒有線,什麼都沒有,我試着嘗試......抓住新的線,甚至沒有捕捉到異常。
可能是什麼原因?
感謝, 卡洛斯
您是否添加了對其他項目的引用? – Oded 2011-01-06 17:08:20
是的,我正在嘗試在另一個線程中的實例...以防萬一。 – carlosdubusm 2011-01-06 17:09:38