[Route("")]
or [Route("~/")]
works
IBackgroundTask
needs to be enabled from the Admin module. The problem is I don't have this. Is there anyway for me to enable a background task from code?
Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID "14195346027082417527", Request ID "80000578-0000-c500-b63f-84710c7967bb": An unhandled exception was thrown by the application.System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Http.Polly, Version=5.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
<h3>HTTP Error 500.0 - Internal Server Error</h3>
<h4>The page cannot be displayed because an internal server error has occurred.</h4>
</div> <fieldset>
<h4>Most likely causes:</h4>
<ul>
<li>IIS received the request; however, an internal error occurred during the processing of the request.
The root cause of this error depends on which module handles the request and what was happening in
the worker process when this error occurred.</li>
<li>IIS was not able to access the web.config file for the Web site or application. This can occur if
the NTFS permissions are set incorrectly.</li>
<li>IIS was not able to process configuration for the Web site or application.</li>
<li>The authenticated user does not have permission to use this DLL.</li>
<li>The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.</li>
</ul>
</fieldset>
</div> <fieldset>
<h4>Things you can try:</h4>
<ul>
<li>Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web
server's machine account.</li>
<li>Check the event logs to see if any additional information was logged.</li>
<li>Verify the permissions for the DLL.</li>
<li>Install the .NET Extensibility feature if the request is mapped to a managed handler.</li>
<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about
creating a tracing rule for failed requests, click <a
href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li>
</ul>
</fieldset>
</div>```https://github.com/OrchardCMS/OrchardCore/issues/3656#issuecomment-953845319
Can anyone advise on this?
Hello. I have some modules and multiple themes. I'm trying to get staticfile mapping depending on which theme is active.
If I have an image sourced in a module, such as src="/images/themelogo.jpg", and I have two themes, each with a different image in wwwroot/images/themelogo.jpg -
How do get the active theme's wwwroot to serve from the "/" path?
I have tried this in the themes,
app.MapWhen(
context => context.Request.Path.Value.StartsWith("/images", StringComparison.InvariantCultureIgnoreCase),
config => config.UseStaticFiles()
);
full:
) and use lucene for the query in that. (it was designed and intended that if you wanted to replace it with a lucene query you could)