Jump to content

Setting HAP Application Permissions web.config Error - Line 242


Recommended Posts

Posted

Hello,

 

I'm installing HAP onto a vanilla Server 2008 (N.B. Not R2) server with freshly installed .NET4 and IIS7.

 

The instructions are very comprehensive, but unfortunately I've encountered a problem. When I've reached the stage "28. Double Click on IIS Authentication" I'm getting an error (picture attached).

 

EDIT - post count not high enough to post the attachment. I'll post back with it shortly.

 

For future searchability it reads as follows:

 

Authentication.

 

There was an error while performing this operation,

Details:

Filename \\?\C:\inetpub\wwwroot\HAP\web.config

Line number: 242

Error: The configuration section 'standardEndpoints' cannot be read because it is missing a section declaration

 

I've searched t'internet and found some evidence referring to "nested .NET 2.0 applications" but this isn't the case - all App pools (inc. DefaultAppPool) are configured to use version 4.

 

EDIT - links not allowed either, sheesh!

 

I'm more familiar with unix these days, and hence a little out of my depth with IIS7 - could anybody suggest what my problem might be?

 

N.B. I'm aware that step 21 isn't possible with my version of Windows as the IIS App Pool doesn't show up in the user browser, hence I ran icacls c:\inetpub\wwwroot /grant "IIS APPPOOL\HAP":(OI)(CI)(RX) and added the permissions afterwards.

 

Thanks in advance.

Screen Shot 2012-02-08 at 11.39.44.png

Posted
Try replacing the web.config file from one from codeplex. Make sure your using HTTPS. Try removing the SVG line in the web.config as well

 

Thanks for your response - I'm not sure that I fully understand what you're suggesting though.

 

The web.config I'm using is the one from codeplex - a fresh install downloaded as the "7.9 Full" package. I've redownloaded and reinstalled from scratch, too with the same error.

 

SSL is being used, and is working correctly. I've created a small test.htm file and when placed I can access it from both [won't let me post links but I type a URL Here]test.htm and also [won't let me post links but I type a URL Here]HAP/test.htm (until I copy all of the HAP+ file sin there of course, after which I get a HTTP 500).

 

The only "SVG line" I could find in web.config was this one:

 

 

I duly removed it but the error was still there (albeit reported on line earlier - 241).

 

I've tried removing and reinstalling .NET4 Extended, too - no difference.

Posted

Upon further research, when I'm creating the HAP Application pool I'm seeing some strange things...

 

Firstly despite me selecting .NET v4 it firstly creates it as v2. When I then go edit it shows v4 selected and pressing OK shows it as v4.

 

Under advanced settings --> Identity it displays NetworkService and not AppPoolIdentity. No amount of removing and recreating corrects this...

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...