dankingdon Posted April 22, 2013 Posted April 22, 2013 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
nickbro Posted April 22, 2013 Posted April 22, 2013 (edited) 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. [ATTACH=CONFIG]17918[/ATTACH] Edited April 22, 2013 by nickbro
dankingdon Posted April 22, 2013 Author Posted April 22, 2013 Holy crap that's a quick reply!! No save button i'm afraid. (see screenshot) Any suggestions?
nickbro Posted April 22, 2013 Posted April 22, 2013 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?
dankingdon Posted April 22, 2013 Author Posted April 22, 2013 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.
nickbro Posted April 22, 2013 Posted April 22, 2013 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?
dankingdon Posted April 22, 2013 Author Posted April 22, 2013 Ah good shout. Notice the display:none; in the style section! Should the button only be visible once all the settings are correct perhaps?
dankingdon Posted April 22, 2013 Author Posted April 22, 2013 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!
nickbro Posted April 22, 2013 Posted April 22, 2013 Hmm, where did I set that to reshow, I think it's after the AD information is done, or the SMTP/Proxy Settings
OhDear Posted April 22, 2013 Posted April 22, 2013 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!
nickbro Posted April 22, 2013 Posted April 22, 2013 Change ~/Setup.aspx line 1769: if (<%=HAP.Web.Configuration.hapConfig.Current.FirstRun ? "false" : "true" %> || ui.index > 1) {
OhDear Posted April 22, 2013 Posted April 22, 2013 Change ~/Setup.aspx line 1769: 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
nickbro Posted April 23, 2013 Posted April 23, 2013 Try this, they changed something in jQuery ui in 1.9 $('#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 1
SmithR Posted April 23, 2013 Posted April 23, 2013 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
nickbro Posted April 23, 2013 Posted April 23, 2013 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?
OhDear Posted April 23, 2013 Posted April 23, 2013 Try this, they changed something in jQuery ui in 1.9 $('#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 That fixed it for me, thanks!
SmithR Posted April 24, 2013 Posted April 24, 2013 I Sorted my issue as i was copying and pasting from an old hapconfig.xml and i think the new lines needed width="1" height="1" which the old lines didnt have Thanks Anyway
nickbro Posted April 24, 2013 Posted April 24, 2013 Ah good to hear, it should of upgraded the hapConfig if it detects the version numbers don't match
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now