Server Error in '/' Application.

Could not find file 'd:\App\PleresNet.Cinza\vetmetodo.cfg.xml'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'd:\App\PleresNet.Cinza\vetmetodo.cfg.xml'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[FileNotFoundException: Could not find file 'd:\App\PleresNet.Cinza\vetmetodo.cfg.xml'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1404
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +127
   System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) +125
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +80
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +73
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +116
   System.Xml.XmlTextReaderImpl.OpenUrl() +416
   System.Xml.XmlTextReaderImpl.Read() +300
   Digitalmed.Repositorio.GestaoDominios.PegarConectionString(SessionFactorySettings settings) +76

[DigitalmedException: Erro na configuração de conexão com o banco de dados]
   Digitalmed.Repositorio.GestaoDominios.PegarConectionString(SessionFactorySettings settings) +347
   Digitalmed.Repositorio.GestaoDominios.BuildInfoDominio(SessionFactorySettings settings) +271
   Digitalmed.Repositorio.GestaoDominios.ObterInfoDominio(SessionFactorySettings settings) +125
   Digitalmed.Repositorio.SessionFactory.ObterSessaoAtual() +106
   Digitalmed.Servico.SrvMedico..ctor() +41
   lambda_method(Closure , IBuildSession , IContext ) +140

[StructureMapBuildException: Error while building type Digitalmed.Servico.SrvMedico.  See the inner exception for details
1.) new SrvMedico()
2.) Digitalmed.Servico.SrvMedico ('Digitalmed.Servico.SrvMedico, Digitalmed.Servico, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
3.) Instance of Digitalmed.Modelo.ISrvMedico ('Digitalmed.Servico.SrvMedico, Digitalmed.Servico, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null')
4.) Container.GetInstance<Digitalmed.Modelo.ISrvMedico>()
]
   lambda_method(Closure , IBuildSession , IContext ) +1043
   StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context) in C:\BuildAgent\work\a395dbde6b793293\src\StructureMap.Shared\Building\BuildPlan.cs:152
   StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle) in C:\BuildAgent\work\a395dbde6b793293\src\StructureMap.Shared\SessionCache.cs:93
   StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph) in C:\BuildAgent\work\a395dbde6b793293\src\StructureMap.Shared\SessionCache.cs:68
   StructureMap.Container.GetInstance() in C:\BuildAgent\work\a395dbde6b793293\src\StructureMap.Shared\Container.cs:492
   Web.ROL.Popups.UserAlterarSenha..ctor() +26
   ASP.popups_useralterarsenha_ascx..ctor() +16
   ASP.masterrolnovo_master.__BuildControlUserAlterarSenha() +35
   ASP.masterrolnovo_master.__BuildControlform1() +1107
   ASP.masterrolnovo_master.__BuildControlbodyMaster() +289
   ASP.masterrolnovo_master.__BuildControlTree(masterrolnovo_master __ctrl) +289
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1322
   System.Web.UI.Page.get_Master() +66
   System.Web.UI.Page.ApplyMasterPage() +19
   System.Web.UI.Page.PerformPreInit() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0