-
Hello, Working on building a new site with Statiq.Docs. When building, I get two of the same exception:
I'm not entirely sure what Versions:
Anyone have any ideas as to what may be going on here? Error.cshtml, in case it helps---
Title: error
---
<div class="is-container is-outset-24">
<noscript>An error has occurred. Please look at your url parameters to find the error code, then go to <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status" target="_blank" rel="noopener">developer.mozilla.org</a> for more info.</noscript>
<a id="infoLink" class="is-center" title="More info..."><img id="errorImage" /></a>
</div>
<script>
const error = new URLSearchParams(window.location.search).get('error') ?? '404';
const errorUrl = "https://http.cat/" + error;
const infoUrl = "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/" + error;
var img = document.getElementById("errorImage");
img.src = errorUrl;
var link = document.getElementById("infoLink");
link.target = "_blank";
link.rel = "noopener";
link.href = infoUrl;
</script> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was eventually able to find it. In my footer, I try to get the version version of my app using Assembly assembly = Assembly.GetExecutingAssembly();
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location); The second line is what was throwing the error. So I changed the code to this and it worked: Assembly? assembly = Assembly.GetAssembly(typeof(Program));
string appVersion = assembly?.GetName().Version?.ToString(3) ?? "1.0.0"; |
Beta Was this translation helpful? Give feedback.
I was eventually able to find it. In my footer, I try to get the version version of my app using
The second line is what was throwing the error. So I changed the code to this and it worked: