A list of puns related to "ASP.NET Core"
Github repository: https://github.com/MoienTajik/AspNetCore-Developer-Roadmap
I have been using serilog and I absolutely love the ease of integrating a sink into it, either being a sqlite or sqlserver.
And my question is regarding precisely that. In a non trivial application, how do you log your errors/exceptions? One logical approach would be using sqlite right, since it's a file system database management system, it doesn't matter if your production database is down, you can be rest assured your logs will always be saved correctly.
On the contrary, let us imagine that for some reason our web server is running perfectly, however, our non sqlite database is down or having some issues.
This obviously meaning that, the logs wouldn't go through.
Having that said, what would be your approach to logging?
Hi community!
Iβm glad to announce that my book « Beginning gRPC with ASP .NET Core 6Β Β» is available for Pre order on Amazon π
https://www.amazon.com/Beginning-gRPC-ASP-NET-Core-Applications/dp/1484280075
#grpc
https://preview.redd.it/w8cnvn4gmxc81.jpg?width=350&format=pjpg&auto=webp&s=5e1df4a57158d289deb9f522f29d4243ba97f66b
Sziasztok! Van egy Flask-os projektem, Γ©s Γ‘t akarom rakni egy jobb webes keretrendszerbe, azaz Django-ba vagy ASP.net Core keretrendszerbe. Nem tudom eldΓΆnteni, hogy melyiket hasznΓ‘ljak. Van C#, Python tudΓ‘som, csinΓ‘ltam mΓ‘r programokat ezeken. (Tudom, hogy az opcionΓ‘lisabb, hogyha FlaskrΓ³l Django-ra Γ‘trakom, mert vannak azonos package-jeik, de akkor is szeretnΓ©m figyelembe venni ASP-t is). Ti melyiket ajΓ‘nlnΓ‘tok, Γ©s miΓ©rt?
Hello,
In ASP.NET Core, when a request comes in and trigger a long-running task, i.e., calling an external API and wait for response, I use await
, but that still hangs the browser because the request is await
ing for the external response.
So, my questions are:
Task.Wait()
instead of await
I know that await
returns Task
to its caller and continue the execution thread, whereas Task.Wait()
would just stall the calling thread. And it's recommended to use async all the way down. But would it be different in the request response roundtrip in ASP.NET Core? It would just hang the request either way.AFAIK, the only way to solve it is returning an immediate response, and then update the page once the API response comes back later using SignalR, like question 1 above.Thank you for your help!
Does anyone know any free resources where to deploy an asp.net core app and maybe some free databases?
The company I worked in 2020 experimented the usage of VS Code for ASP.NET Core development, in 2020 with a bunch of developers who are familiar with Visual Studio and we concluded the IDE makes developers more productive.
With VS Code evolved since then and lots of new plug-ins available at the marketplace, how the situation now? Could VS Code entirely replace Visual Studio in 2020, primarily if the team uses Azure DevOps Git repos, has a PR first approach culture and write unit tests using Xunit?
PS: Asking this question, as another company is about to do the experiment and the valid points discussed here would be presented to the management.
What is the community's take on the differences between these 2 platforms
Maybe the title is a little confusing, what I want to do is:
I have an MVC Project for my website, Also, in the same solution, I have an area (or a separate project) for my Web API.
My MVC project can be accessed at mywebsite.com, and my Web API can be accessed at mywebsite.com/api.
What I want to do is to access Web API at the subdomain api.mydomain.com in the same web application.
I want a hint or a solution if possible, also, I want to know the best option for declaring my API whether I should declare it in an Area or on a separate API project in the same solution.
I'm relatively new to the backend/C# programming but I have a task to deal with it.
I have created a simple CRUD operation for managing books using the ASP.NET Core WebAPI. But,
Here's my task: I need to upload a '.csv' or excel related files to an endpoint, validate the file extension and populate the database with the data in the file.
The POST endpoint that I've created does add a new book, but only one at a time. So generally what I'm trying to do here is creating an endpoint for adding multiple books at once.
Any kind of hint or help would be highly appreciated.
Hi guys kind of a dumb question I am quiet new to asp.net core. I have used hot reload for csharp console apps in dotnet 6 using the watch command. I am currently working on a project in which I use docker compose to run databases frontend and backend in development. I would like to be able to use hot reload so that I don't have to constantly rebuild my container.
I tried it a couple months back, but back then I did not manage to get it to work. Just wondering if someone has managed to get this workflow to work
Cheers.
Edit: thanks everyone I'll give it another try!
Hi,
I've been trying to style my html Body. I encountered several non-logical errors:
0:
I removed every single CSS File in the project structure.
1:
I added the file "Index.cshtml.css" and tried styling Body from there => nothing happens.
2:
I added the file "_Layout.cshtml.css" and tried styling Body from there => nothing happens.
3:
I added the static file "wwwroot\styles.css" and tried styling Body from there => nothing happens.
4:
I tried everything again this time with the !important tag. => nothing happens.
I don't get the undocumented system from Microsoft. What do i need to do to just define my own background-color ????
btw:
The Project ist a basic "ASP.Net Core WebApp" Template on .net6.0
There is still some sort of styling applied.
Hi there! i have a few questions i want to ask. now i am about to finish learning basics of c#, and i'm wondering about something.
i'm really confused and don't what to do
( hope i could explain myself clearly.)
ZapoΔeo bi s uΔenjem jednog od JS frameworka Angular, React ili Vue u kombinaciji sa ASP.NET Core-om. Do sada sam radio samo neke osnovne projekte u ASP.NET Core-u pa i nemam nekog velikog iskustva sa nekim JS frameworkom.
Ako ste radili sa svim ili s nekim JS frameworkom koji je najbolji i najlakΕ‘i za primjeniti uz ASP.NET Core, iz iskustva koje su bile prednosti a koje mane koriΕ‘tenja pojedinog frameworka?
I was watching a YouTube tutorial about ASP.NET Core and ASP.NET MVC (it taught both)
The tutor always calls the Asp.Net Core app a "Razor Pages" app.
So is ASP.NET Core the same as Razor Pages?
Thanks
Edit: Thank you all for the detailed info! So what I understood from your answers is that ASP.NET Core offers many tools like Blazor, Razor and MVC.
Hello guys, is anybody out there, who has vast knowledge in backend development, and would like to review a simple REST API?
Update: Sorry i forgot to add the link, i thought it would be better to done it in DMs.
Repo link
I have learnt C# and am now learning ASP.NET Core. I plan to make some project's and apply for my first job.
Can someone tell me how important is Javascript knowledge to become an ASP.NET web developer?
Thanks
Hi, I'm currently a student in CS and I studied both PHP and ASP.NET CORE but i'm confused of which one is better and on long term, which one should i focus on more. I'm open to any recommandations, Thank you
Available below:
https://preview.redd.it/hbixyya0y0e81.png?width=2560&format=png&auto=webp&s=70794708540c7202e60fb25eea54ccaca38bdec6
I need to resolve how to host my game server. The game server needs to keep track of lobbies and player connections, and players should be able toββββββββββββΒupload levels and download them from the server. I've coded the game server in C# .NET Core, and found that a Windows-based server can run .NET Core applications. Many hosters are quite pricey tho. The level up-/downloading is not yet implemented. Any tips on how to approach this?
Hey everyone! I am looking for some decent books to reinforce my knowledge about ASP.NET Core Web API and MVC and learn it deeply. Preferably v3.1 and higher. Will be really thankful for your recommendations
Repost because my last post was removed by automod
I've tried accessing it via models, and DisplayNameFor but I may be doing it incorrectly, I'd be grateful for any help I can get.
I have scaffolded the database already, but am not exactly sure what to do next, and the Microsoft documentation that I found wasn't too helpful.
My code in the comments
Let me know your thoughts
I am learning now plain ASP.NET Core WebAPI. My dream is to land my first developer job in stack as in the title - ASP.NET Core WebAPI + Angular. But I have a question about how much of JS and Angular do I need to know. JavaScript itself isn't very complex but Angular, the JS framework, is.
Do u Think that if I will learn JS and Angular for 200h, will it be enough to land first job (actually I need even an internship)?
The question is abstract and a little bit stupid but maybe here are some people that work in this stack and they will be able to provide me smart answer.
Thank you, Redditors.
Github repository: https://github.com/MoienTajik/AspNetCore-Developer-Roadmap
Hello,
In ASP.NET Core, when a request comes in and trigger a long-running task, i.e., calling an external API and wait for response, I use await
, but that still hangs the browser because the request is await
ing for the external response.
So, my questions are:
Task.Wait()
instead of await
I know that await
returns Task
to its caller and continue the execution thread, whereas Task.Wait()
would just stall the calling thread. And it's recommended to use async all the way down. But would it be different in the request response roundtrip in ASP.NET Core? It would just hang the request either way.Thank you for your help!
Available below:
https://preview.redd.it/shkk75je77e81.png?width=2560&format=png&auto=webp&s=ad75fd126dd79257a015ffb58ddf9682b62b2502
Available below:
https://preview.redd.it/1up1yvm687e81.png?width=2560&format=png&auto=webp&s=923696ac8da4dae57d259b1888eea8c17421645d
Hello,
In ASP.NET Core, when a request comes in and trigger a long-running task, i.e., calling an external API and wait for response, I use await
, but that still hangs the browser because the request is await
ing for the external response.
So, my questions are:
Task.Wait()
instead of await
I know that await
returns Task
to its caller and continue the execution thread, whereas Task.Wait()
would just stall the calling thread. And it's recommended to use async all the way down. But would it be different in the request response roundtrip in ASP.NET Core? It would just hang the request either way.AFAIK, the only way to solve it is returning an immediate response, and then update the page once the API response comes back later using SignalR, like question 1 above.Thank you for your help!
Available below:
https://preview.redd.it/wjlsr6nsa7e81.png?width=2560&format=png&auto=webp&s=1e1f3093d01ca6a2fb92bf9fda797d8e8e1e0ffd
Available below:
https://preview.redd.it/5404arkcbtd81.png?width=2560&format=png&auto=webp&s=a8b7ddfcb34e77e52c11bc20507a8fbfd12ab5e8
Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.