C
chris_doran
Firstly, let me come clean and say I don't really know what I'm doing.
Classic tale: I'm using some code developed by a third party who is now
uncontactable. Further, he did it in C# and .NET which are a total
mystery to me. My bit of the project is done in C and links to his bit
which is a DLL. As VS2005 for C doesn't seem to know about
App.config.exes, he provided a .exe.config file saying "this will work
with everything -- just rename it in the same directory as your .exe".
All is well on a "development" system that has VS2005 installed, but
our customers' machines don't. There, everything fails with a message:
Exception: The configuration section for Logging cannot be found in the
configuration source.
at
Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterStructureHolderCustomFactory.CreateObject(IBuilderContext
context, String name, IConfigurationSource configurationSource,
ConfigurationReflectionCache reflectionCache)
at ... <snip long traceback chain>
but the .exe.config _does_ have a section called
"loggingConfiguration".
The "Exception ..." message seems to be coming from one of the
functions _fastClientService.lookupQueueReference,
_fastClientService.createQueue, or _fastClientService.Connect which I
can't find any documentation for. Are they Microsoft's or something
written by the contractor?
Possibly significantly, this is the same message I get when the
..exe.config file is deleted, so perhaps something is looking in the
wrong place. Are there any environment variables or equivalent that
have to be set up? The files are all in the same places on both
customer and development machines.
Curiously, if I replace the real .exe.config with a junk file (e.g. a
..exe) the programs doesn't even get that far and just say: "The system
cannot execute the specified program." This suggests that the
..exe.config is being found at least once.
Chris
Classic tale: I'm using some code developed by a third party who is now
uncontactable. Further, he did it in C# and .NET which are a total
mystery to me. My bit of the project is done in C and links to his bit
which is a DLL. As VS2005 for C doesn't seem to know about
App.config.exes, he provided a .exe.config file saying "this will work
with everything -- just rename it in the same directory as your .exe".
All is well on a "development" system that has VS2005 installed, but
our customers' machines don't. There, everything fails with a message:
Exception: The configuration section for Logging cannot be found in the
configuration source.
at
Microsoft.Practices.EnterpriseLibrary.Logging.LogWriterStructureHolderCustomFactory.CreateObject(IBuilderContext
context, String name, IConfigurationSource configurationSource,
ConfigurationReflectionCache reflectionCache)
at ... <snip long traceback chain>
but the .exe.config _does_ have a section called
"loggingConfiguration".
The "Exception ..." message seems to be coming from one of the
functions _fastClientService.lookupQueueReference,
_fastClientService.createQueue, or _fastClientService.Connect which I
can't find any documentation for. Are they Microsoft's or something
written by the contractor?
Possibly significantly, this is the same message I get when the
..exe.config file is deleted, so perhaps something is looking in the
wrong place. Are there any environment variables or equivalent that
have to be set up? The files are all in the same places on both
customer and development machines.
Curiously, if I replace the real .exe.config with a junk file (e.g. a
..exe) the programs doesn't even get that far and just say: "The system
cannot execute the specified program." This suggests that the
..exe.config is being found at least once.
Chris