Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide underlying reason for inability to load configuration files #1181

Closed
fbrier-beckman opened this issue Nov 10, 2020 · 0 comments
Closed
Assignees
Labels
enhancement API or feature enhancement help wanted

Comments

@fbrier-beckman
Copy link

Type of Issue
[ ] Bug [X] Enhancement [ ] Compliance [ ] Question [ ] Help wanted

Describe the Issue

A variety of problems result in the message, "Could not load configuration file" It could be a missing file, but it could also be a bad configuration. In one case, the default namespace was not configured. I would be nice if the underlying error message was returned even nested in an inner exception.

To Reproduce
Steps to reproduce the behavior:

  1. Remove the default namespace from the XML configuration file.
  2. The exception merely says, "Could not load configuration file".

Expected behavior
A message such as "Unexpected element ApplicationConfiguration found on line 2".

Environment (please complete the following information):

  • OS: Windows 10
  • Development environment: Visual Studio 2019 16.7.7
  • Runtime: .NET Core 3.1
  • OPC Package Release Version [e.g. 1.4.363.107]
  • Component: [e.g. Opc.Ua.Core]
  • Server: Custom Server
  • Client: C# - custom
@AlinMoldovean AlinMoldovean added the enhancement API or feature enhancement label Nov 10, 2020
@AlinMoldovean AlinMoldovean self-assigned this Mar 31, 2021
AlinMoldovean added a commit to AlinMoldovean/UA-.NETStandard that referenced this issue Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement API or feature enhancement help wanted
Projects
None yet
Development

No branches or pull requests

3 participants