我有RIA Services應用程序錯誤:出現以下異常創建MEF組合容器
而且我得到了這樣的警告
The following exception occurred creating the MEF composition container:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
The default code generator will be used.
爲什麼呢?
你能檢索LoaderExceptions屬性並共享細節嗎? – 2012-03-23 18:56:49
@EdChapel對不起,我不能。我真的不知道該怎麼做。 – 2012-03-23 20:31:05
如果你正在容器中註冊你的domaincontexts,你需要添加一個'新的InjectionConstructor()'。這是因爲DomainService的代理服務器,你的domaincontext有3個構造函數,它不能在不知道使用哪個構造函數的情況下解析實例。 – 2012-03-25 09:50:30