I am ready to transition to default.aspx for OpenGraph instead of a static default.html. I set in web.config
<add value=”Default.aspx” />
and even removed Default.html from the website, and cleared cache, and did an IIS Reset, but it is still looking for Default.html.
I had to remove runat=”server” from <head> and now the page loads. I think maybe it was my failure to update default.json with the new pagename the first time … but I’m not sure. Going to test things now, thanks for the help.
Thanks for the quick response.
The default.aspx does have that formatting, it is the same as default.html
I also tried using “Pages/Default.aspx” in web.config
The requests themselves still seem to be asking for default.html (see attached)
After updating references of default.html to default.aspx in manifest.json and Default.json, and restarting the server again, it seems to want to load. But now I have errors that did not exist on dev machine (BC30456: ‘this’ is not a member of ‘ASP.default_aspx’)
on this line:
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.1/jquery.fancybox.min.css" as="style" onload="this.rel='stylesheet'">
A few things.
First, make sure you are running WiseJ in your new .aspx file like the following:
Next, in web.config you will need to use “Pages/Default.aspx” instead of just “Default.aspx” (make sure your file is not hidden in any subfolders until you get this working)
This should work even if the HTML file still exists in the project.
Please let me know if this works for you!
Please login first to submit.