+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Home Access Plus+ Thread, [HAP][v9] Setup isn't modifying hapconfig.xml. No errors or permission issues. in Projects:; Hi All, First time setting up HAP+ as a seasoned DIY webmaster/developer. Server is 2012/IIS 8. Have worked my way ...
  1. #1

    Join Date
    Feb 2011
    Posts
    11
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    8

    [HAP][v9] Setup isn't modifying hapconfig.xml. No errors or permission issues.

    Hi All,

    First time setting up HAP+ as a seasoned DIY webmaster/developer. Server is 2012/IIS 8. Have worked my way around the usual problems.

    Essentially the setup page is not modifying the hapconfig.xml file. The security permissions on the file are correct, I do not recieve any errors whilst editing the settings.

    Should there be a big save button somewhere to commit the changes to file or does it simply write the changes on the fly?

    Sorry if this is a re-post of a common problem but i have done my due diligence of searching the forums here and google with no luck.

    Thanks

  2. #2
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    There should be a big Save button at the bottom of the page to commit it to the hapConfig.xml file. Some things are held in memory until the save is clicked.
    Attachment 17918
    Last edited by nickbro; 22nd April 2013 at 03:00 PM.

  3. #3

    Join Date
    Feb 2011
    Posts
    11
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    8
    Holy crap that's a quick reply!!

    No save button i'm afraid. (see screenshot) [HAP][v9] Setup isn't modifying hapconfig.xml.  No errors or permission issues.-untitled.png

    Any suggestions?

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    None, that's the first I've seen where the save button isn't there. Can you click in the Url box and hit enter, see if it forces a save?

  5. #5

    Join Date
    Feb 2011
    Posts
    11
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    8
    No luck, tried in chrome and IE.

    The only thing I have slightly non-standard is the path to the wwwroot folder? instead of C:\inetpub\wwwroot I have C:\inetpub\httpsroot and i've had to split http and https on the webserver as two separate sites. hap is running on the https binding only.

  6. #6
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    It's an odd error, the only thing I can think of is a IIS/ASP.net issue. I haven't tested HAP+ on IIS8 yet.

    ASP.NET pages not loading on IIS8 (Windows Server 2012) - Stack Overflow may have more on this issue.


    Can you look at the html source of the page and see if it's even attempting to make the link at the bottom for saving please?

  7. #7

    Join Date
    Feb 2011
    Posts
    11
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    8
    Ah good shout.

    <input type="submit" name="Save" value="Save" id="Save" class="checkbutton ui-button ui-widget ui-state-default ui-corner-all" style="font-size: xx-large; display: none;" role="button" aria-disabled="false">

    Notice the display:none; in the style section! Should the button only be visible once all the settings are correct perhaps?

  8. #8

    Join Date
    Feb 2011
    Posts
    11
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    8
    I've managed to get the config working now thanks, just removed that style definition once using chrome, clicked save. Now it's written the initial config file the button is now visible!

    If you want any more info in case it's a bug or something then just let me know.

    Thanks for the help! Looking forward to playing around!

  9. #9
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    Hmm, where did I set that to reshow, I think it's after the AD information is done, or the SMTP/Proxy Settings

  10. #10

    Join Date
    Sep 2012
    Location
    United Kingdom
    Posts
    94
    Thank Post
    22
    Thanked 4 Times in 4 Posts
    Rep Power
    5
    I seem to be having the same issue with the Save button not showing. Can't seem to find the line to remove for the fix.

    Any help is much appreciated. Thanks!

  11. #11
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    Change ~/Setup.aspx line 1769:

    Code:
    if (<%=HAP.Web.Configuration.hapConfig.Current.FirstRun ? "false" : "true" %> || ui.index > 1) {

  12. #12

    Join Date
    Sep 2012
    Location
    United Kingdom
    Posts
    94
    Thank Post
    22
    Thanked 4 Times in 4 Posts
    Rep Power
    5
    Quote Originally Posted by nickbro View Post
    Change ~/Setup.aspx line 1769:

    Code:
    if (<%=HAP.Web.Configuration.hapConfig.Current.FirstRun ? "false" : "true" %> || ui.index > 1) {
    Just had a go at changing that, doesn't seem to of worked unfortunately. Anything else I could try?

    Thanks

  13. #13
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    Try this, they changed something in jQuery ui in 1.9

    Code:
                                $('#maintabs').tabs({ activate: function (event, ui) {
                                    if (<%=HAP.Web.Configuration.hapConfig.Current.FirstRun ? "false" : "true" %> || ui.newTab.index() > 1) {
                                        $("#<%=Save.ClientID%>").css("display", "");
                                    }
                                }, disabled: [1, 2, 3, 4, 5, 6] });
    You do need to go to the 3rd tab to get it to show the button

  14. Thanks to nickbro from:

    OhDear (23rd April 2013)

  15. #14
    SmithR's Avatar
    Join Date
    Apr 2008
    Location
    Solihull
    Posts
    43
    Thank Post
    0
    Thanked 6 Times in 5 Posts
    Rep Power
    15
    Hi Guys

    im getting this after editing the hapconfig.xml file

    Server Error in '/HAP' Application.
    --------------------------------------------------------------------------------

    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [NullReferenceException: Object reference not set to an instance of an object.]
    HAP.Web.Configuration.Link..ctor(XmlNode node) +554
    HAP.Web.Configuration.LinkGroup..ctor(XmlDocument& doc, String Name) +649
    HAP.Web.Configuration.LinkGroups..ctor(XmlDocument & doc) +422
    HAP.Web.Configuration.Homepage.get_Groups() +38
    HAP.Web.Setup.Page_Load(Object sender, EventArgs e) +1582
    System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +24
    System.Web.UI.Control.LoadRecursive() +70
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063

  16. #15
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,561
    Thank Post
    38
    Thanked 507 Times in 437 Posts
    Rep Power
    114
    Hmm, looks like something in one of the links should be there but isn't, very odd. Do you mind pasting your Homepage section of your hapConfig.xml file?

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [HAP+][v9] Planned Features
    By nickbro in forum Home Access Plus+
    Replies: 121
    Last Post: 30th April 2013, 08:55 AM
  2. [HAP+][v9] Booking System Error
    By mrbios in forum Home Access Plus+
    Replies: 18
    Last Post: 22nd April 2013, 12:38 AM
  3. Replies: 73
    Last Post: 27th April 2012, 09:37 AM
  4. hapconfig.xml is accessible
    By gianzack in forum Home Access Plus+
    Replies: 5
    Last Post: 10th December 2011, 08:00 PM
  5. LDAP:\/\/ in hap/api/setup/GetADTree
    By gianzack in forum Home Access Plus+
    Replies: 1
    Last Post: 30th November 2011, 10:46 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •