Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 523
maxisam Avatar asked Feb 19 '14 04:02

maxisam


2 Answers

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.

like image 75
maxisam Avatar answered Sep 23 '22 08:09

maxisam


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!)

like image 32
ptim Avatar answered Sep 24 '22 08:09

ptim