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

Intellisense for web.config and external config files #239

Closed
atifaziz opened this issue Aug 25, 2015 · 8 comments
Closed

Intellisense for web.config and external config files #239

atifaziz opened this issue Aug 25, 2015 · 8 comments

Comments

@atifaziz
Copy link
Member

Adding intellisense support when configuring Elmah using web.config would help new users. It would also make it easier to adjust the settings without having to check the documentation. Trickier elements such as error filtering would also be a bit easier to understand.

I have attached an xml schema definition (xsd) file that provides basic intellisense in visual studio. This is the first xsd that I have created so perhaps somebody else can clean this up. One limitation I am aware of is that custom errorFilter assertions won't validate.

To use this file place it anywhere in your project, then add the following attribute to the elmah element:

<elmah xmlns="http://Elmah.Configuration">
</elmah>

If you use external configuration files just add the above attribute to the root element of the file.

The namespace I used in the xsd is http://Elmah.Configuration but feel free to change that to whatever you wish.


Originally reported on Google Code with ID 239

Reported by JeffLingis on 2011-07-13 14:28:14

@atifaziz
Copy link
Member Author

Oops, forgot to actually attach the file.


Reported by JeffLingis on 2011-07-13 14:30:00

@atifaziz
Copy link
Member Author

in the errorLogCT you are missing entries for the attributes connectionStringName and providerName, see my update file attached (lines 47 & 48).

thanks


Reported by davidadarman on 2014-11-21 19:00:37

@ThomasArdal
Copy link
Contributor

@atifaziz How about adding this to the elmah v1 source or creating a new repository for this file? Could be used for multiple purposes (visual studio intellisense, validation etc.).

@atifaziz
Copy link
Member Author

atifaziz commented Mar 7, 2016

@ThomasArdal I've always left this issue open so that anyone searching for “IntelliSense” will find it & be able to use the file. I think maintaining it as a separate repo is an idea. If that's something you want to do then I can close this issue here.

BTW, Bootstrapper is designed to simplify the configuration considerably.

@ThomasArdal
Copy link
Contributor

@atifaziz I would like to take ownership of this file for now. I know that Bootstrapper solves this better and that web.config configuration will die eventually. But until it does, I see multiple purposes for the file.

Should we create a repository in the Elmah organization or do you want me to take ownership either through my personal account or the elmah.io organization?

@atifaziz
Copy link
Member Author

atifaziz commented Mar 7, 2016

@ThomasArdal Why don't you go ahead and setup the repo under your account for now & then we can always transfer it or just mirror over? If you make a blog entry about it then feel free to send a PR for the Community KB on elmah.github.io.

When the repo is ready, cross-link here and close this issue. Thanks!

@ThomasArdal
Copy link
Contributor

@atifaziz I'm not sure that I will be able to close this issue, but will start working on setting it up and writing the blog post now.

ThomasArdal added a commit to elmahio/Elmah-Schema that referenced this issue Mar 10, 2016
@ThomasArdal
Copy link
Contributor

The schema now have a new home at: https://github.com/elmahio/Elmah-Schema. This issue can now be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants