Category : asp.net5

I’m new odata user. When i use docker-compose to debug with visual studio in windows environment. /odata/$metadata is working well But when i deploy my project to ubuntu 20.04LTS server. /odata/$metadata not working as expected. It return same data with /odata My docker-compose: Result when i use wget command to request to /odata/$metadata And when ..

Read more

I’m use docker-compose to deploy .net 5.0 application. I used let’s encrypt to generate certificate. When i’m run docker-compose up command. I retrieved error: BIO routines:BIO_new_file:no such file This’s docker-compose.yml This’s cert directory on host And error i retrieved: What can i do to fix that error. I’m using: Ubuntu 20.04 TLS Docker version 20.10.8, ..

Read more

I have a created a .net 5 based service. This service works well locally. I am trying to put this into a docker container. However I am unable to connect to it. Service is running using Kestrel configured for 8080 My Dockerfile is fairly straight forward FROM mcr.microsoft.com/dotnet/aspnet:5.0 #msft image COPY ./bin/debug/net5.0/ . #local items ..

Read more

I generated SPA template with .net core that supports identity server authentication. I run my container this way: docker run –rm -dit -p 8081:80 -p 8082:443 –name smsystem smsys The first page of identity is loaded and this request is being sent: http://localhost:8081/Identity/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DSMSys%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A8081%252Fauthentication%252Flogin-callback%26response_type%3Dcode%26scope%3DSMSysAPI%2520openid%2520profile%26state%3D0b08ec5b5598436fbbcbb698d7756dee%26code_challenge%3DfCU4acsfgzHhSfT44Z6zb7c5yDq_yUDmbCdCW6v-3u8%26code_challenge_method%3DS256%26response_mode%3Dquery After I input my credentials, This request is being sent: http://localhost:8081/Identity/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DSMSys%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A8081%252Fauthentication%252Flogin-callback%26response_type%3Dcode%26scope%3DSMSysAPI%2520openid%2520profile%26state%3D0b08ec5b5598436fbbcbb698d7756dee%26code_challenge%3DfCU4acsfgzHhSfT44Z6zb7c5yDq_yUDmbCdCW6v-3u8%26code_challenge_method%3DS256%26response_mode%3Dquery The ..

Read more

We use Docker in production, in the old version we used NetCore2 and everything was without problem but when we migrated to Net5, I get this error when I work with the Ftp server. I also don’t have any problem, on my local computer, OS is win10. FtpWebRequest request = (FtpWebRequest)WebRequest.Create("path"); request.Method = WebRequestMethods.Ftp.GetFileSize; request.EnableSsl ..

Read more

I am trying to add a migration to my MVC app project on ASP.net core 5. I am using docker for Mac and MSSQL Server. I am trying to add migration with a terminal command: dotnet ef migrations add InitialCreate But keep getting the following error: /Users/admin/Projects/Rocky/obj/docker-compose.dcproj.EntityFrameworkCore.targets(4,5): error MSB4006: There is a circular dependency in ..

Read more

I am developing an application with core 5 and i am trying to run it by docker on centos. with this command I run core 3.1 with no issue docker run -d –name myname –restart always –user root –workdir="/App" –volume "/mypath-to-app:/App" –entrypoint "/usr/share/dotnet/dotnet /App/MyAppDll.dll" -p 5000:80 mcr.microsoft.com/dotnet/core/aspnet:3.1 but another application that mades with core 5 ..

Read more