Month: April 2020
-
Docker – Severity Code Description Project File Line Suppression State Error DT1001 Service service has neither an image nor a build context specified. At least one must be provided. docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 204
Hi everyone, I ran into the following error while using docker compose and visual studio: Severity Code Description Project File Line Suppression State Error DT1001 Service has neither an image nor a build context specified. At least one must be provided. docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 204 It took a bit of poking around…
-
Automapper protobuf datetime to timestamp c#
Hi everyone, I ran into the following error tonight while attempting to use automapper to map a datetime field to a protobuf timestamp property: automapper missing type map “DateTime -> Timestamp” To fix it, add the following to your mapping profile: CreateMap().ConvertUsing(x => x.ToTimestamp()); UPDATE: I later hit a similar error parsing a different entity:…
-
Http gRPC with .NET Core and Docker – Error starting gRPC call. System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.IO.IOException: The response ended prematurely.
Hi everyone, I’ve been mucking around with gRPC today while using .NET Core and Docker. I have two Microservices in the setup, one server and one client. Because these services will only be communicating internally I intended to use HTTP instead of HTTPS. Unfortunately, I hit the following error while attempting to set this up:…