2010-12-13 73 views
0

在我的Web應用程序中,啓動它之後,出現配置錯誤。
從另一個解決方案向當前解決方案添加項目後,開始發生這種情況。enterpriseLibrary.ConfigurationSource配置錯誤

ScreenShot of the error

Line 4: <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 5: <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 6: <section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e35"/>
Line 7: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Line 8: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

Source File: D:\SnT Applications\NIP Portal\SnT.Nip-branch_PortalMessaging\SnT.Nip.Web\web.config Line: 6

而且調試過程中,當被稱爲在數據庫中,它拋出一個異常該.dll丟失,並打開一個打開的文件對話框彈出。

如果有人遇到過這個問題,或者有解決方法,請幫忙。

的Microsoft.Practices.EntityLibrary.Configuration的當前版本爲5.0.414.0

回答

1

如果您正在使用企業庫5(這我假設你是因爲你提到的版本5.0.414.0),那麼你需要更新您的配置文件以引用該版本的Enterprise Library。目前該配置引用版本4.