DNN Server – System.Runtime.InteropServices.COMException: The data is invalid
One of our production servers running DNN (DotNetNuke) recently stopped working after being rebooted. All requests now give the following error:
One of our production servers running DNN (DotNetNuke) recently stopped working after being rebooted. All requests now give the following error:
ASP.NET Core application is created using Visual Studion 2019 ASP.NET Core Application project template.
Generally, things will be asynchronous in the controller class. Now I have a service, which has the DbContext through Dependency Injection. This is how it looks like: public class SomeService : ISomeService { private readonly _context; public SomeService(SomeDbContext context) { _context = context; } public User SomeFunction(int id) { // how to make this async … Read more
Take the index page for example:
the question might be seems to be a regular one, but it isn’t. No matter what am I doing, the progress bar just not increasing. In the base concept I have a GUI form and it has got a bacgroundworker. In the backgroundworker I am using a self defined class to read out the data … Read more
I’m having issues with razor, I’m trying to access the first element of a list. But when I try to cast an element with item2.hijos[0].ruta, I get an error.
i want to know asp.net authorize function can it be used in .net core?
Or something can instead in authorize for .net core? thanks
I am making an ASP.NET Core 3.1 MVC with Entity Framework website on a Microsoft server running IIS 10 with basic user file upload and download functions. I can upload files to the _webHostEnvironment.WebRootPath from the web but when I try to download them it cannot find them. However, if I recycle the app pool I can download the file (I can also download it from the web after accessing the website on localhost on the server).
On a request on my Web API, I’m saving a image to the disk and also processing it with an external API which usually takes several seconds. This is a high traffic API, thus I would like to design it in the most efficient way. The image comes in Base64 “encoding”, but this is not pertinent. We can think about it as an arbitrary byte array of 150KB in average (so the saving to disk operation should be really fast).
I’m looking for a way to do this in every Method of every Controller, even for those that doesn’t return an IActionResult (I’ll talking about this forward):