2011-05-28 93 views
0

當我更改活動服務器上的web.config文件時(爲了測試,我更改了Spring對象的ApplicationSettings和屬性)Spring停止注入其中一個引用。Spring.Net丟失了對象

ConifugurationErrorsException:錯誤創建上下文 'spring.root':無法加載從字符串值 'Contracts.Account.Consumer.IConsumerAccountManager' 型]

任何想法?

回答

1

指定程序集名稱,以避免意外: 「‘Contracts.Account.Consumer.IConsumerAccountManager,MYASSEMBLYNAME’

+0

謝謝,我錯過了我很慚愧 – christo 2011-05-30 06:12:43

+0

如果你正在使用VS2010,你應該嘗試的VS。擴展以避免這種錯誤: http://springframework.net/#spring-vsnet-addin-1.0.0-released – bbaia 2011-05-31 09:35:54

+0

謝謝,它幫助我 – christo 2011-06-01 06:54:43