При попытке запустить веб-приложение asp. net я получаю сообщение об ошибке.
System.IO.FileNotFoundException: The configuration file enterpriseLibrary.config could not be found
Не удалось найти файл конфигурации enterpriseLibrary.config. Описание: необработанное исключение произошло во время выполнения текущего веб-запроса. Просмотрите трассировку стека для получения дополнительной информации об ошибке и ее происхождении в коде.
Сведения об исключении:
System.IO.FileNotFoundException: The configuration file enterpriseLibrary.config could not be found.
Ошибка источника:
Line 73: if (ExceptionPolicy.HandleException(ex, policyName.ToString()))
Line 74: {
Line 75: throw ex;
Источник Файл:
C:\Project\Services\Common\ExceptionHandler.cs Line: 73
Трассировка стека:
[FileNotFoundException: The configuration file enterpriseLibrary.config could not be found.]
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource.GetRootedCurrentConfigurationFile(String configurationFile) in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\FileConfigurationSource.cs:354
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource..ctor(String configurationFilepath, Boolean refresh, Int32 refreshInterval) in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\FileConfigurationSource.cs:62
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource..ctor(String configurationFilepath, Boolean refresh) in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\FileConfigurationSource.cs:50
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSourceElement.CreateSource() in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\FileConfigurationSourceElement.cs:75
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceFactory.Create(String name) in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\ConfigurationSourceFactory.cs:58
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceFactory.Create() in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\ConfigurationSourceFactory.cs:81
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet() in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\EnterpriseLibraryContainer.cs:93
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.get_Current() in e:\Builds\EntLib\Latest\Source\Blocks\Common\Src\Configuration\EnterpriseLibraryContainer.cs:36
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.GetExceptionPolicy(Exception exception, String policyName) in e:\Builds\EntLib\Latest\Source\Blocks\ExceptionHandling\Src\ExceptionHandling\ExceptionPolicy.cs:120
[ExceptionHandlingException: The configuration file enterpriseLibrary.config could not be found.]
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.GetExceptionPolicy(Exception exception, String policyName) in e:\Builds\EntLib\Latest\Source\Blocks\ExceptionHandling\Src\ExceptionHandling\ExceptionPolicy.cs:144
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName) in e:\Builds\EntLib\Latest\Source\Blocks\ExceptionHandling\Src\ExceptionHandling\ExceptionPolicy.cs:55
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +144
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73