The configuration section ‘uri’ cannot be read because it is missing a section declaration

I tried to install BugNET on IIS7 with .net 4.5

It keeps showing

The configuration section ‘uri’ cannot be read because it is missing a
section declaration

It is pretty much like this issue and this one But my app pool was set to 4.0.

And it works fine on IIS8 with .net 4.5

I think the setting were the same.

Any help ? thx

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

It turns out it does mean it is missing a section declaration.

I just add

<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

inside of <configSections>

Then it works fine.

Method 2

Thanks for the links you’ve included in your question; the first you’ve included worked for me, so I thought I’d quote it for the cargo culters who come after:

When you encounter this issue, please just change the .NET Framework Version of pool to V4.0 in IIS.

http://forums.asp.net/t/1839088.aspx

(I’ve the URI element, but no <section name="uri"…. I’ve got no IIS chops, so I can’t say anything more on the subject!)


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x