我有一個關於添加對.NET項目引用的簡單問題。我將reCAPTCHA添加到網站,並且我已經下載了該dll。添加對.dll的引用asp.net
設置參考DLL我建立並運行該項目,並得到這個錯誤後:
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0
System.Reflection.Assembly.GetTypes() +96
StarSuite.Core.Settings.GetSingletonInstancesOfBaseType(Type baseType, String staticMethodName, Type returnType) +149
[ApplicationException: Unable to load types from 'Recaptcha, Version=1.0.5.0, Culture=neutral, PublicKeyToken=9afc4d65b28c38c2'. LoaderExceptions: [FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
]
我失去了什麼,爲什麼我得到這個錯誤?
不,它不是一個MVC項目。我有錯誤的DLL? – Andy 2010-12-21 13:04:53
我還沒有使用過這個組件,但是我想說你應該在谷歌代碼上檢查這個項目http://code.google.com/apis/recaptcha/docs/aspnet.html – 2010-12-21 13:11:39
我嘗試了一個老版本的組件我接縫工作!非常感謝您的幫助和時間! – Andy 2010-12-21 13:14:11