Forum Widgets
Latest Discussions
Question about Kubernetes Deployment tutorial on Microsoft Learn
I am going through the tutorial Module on Microsoft Learn titled "Deploy a .NET Microservice to Kubernetes" and am on the third unit located here: https://learn.microsoft.com/en-us/training/modules/dotnet-deploy-microservices-kubernetes/3-exercise-push-to-docker-hub. I am stuck under the "Verify the Docker images by creating containers in the codespace" heading on the fourth step. It tells you to select the port for the front end and open the service in a browser. However, there were no ports here that the step seemed to suggest were already there and I had to set it up. Given that the port for the frontend service of this tutorial is 32000:8080 according to the docker-compose.yml file for this tutorial project, is this what I should put in the ports tab? If so, the service does not display in my browser when I click on the globe icon as instructed by the tutorial and all I see is an HTTP 502 message. What should I do so that I can view the service? The repository for this tutorial service is located at https://github.com/MicrosoftDocs/mslearn-dotnet-cloudnative in the dotnet-kubernetes folder and I have attached images as well of the discussed configuration and error message below:KevinR91Nov 15, 2024Copper Contributor28Views0likes0CommentsHow to increase the timeout of a Invoke-WebRequest call either globally or in web.config?
If your program uses the now legacy API `System.Net.HttpWebRequest` and that `HttpWebRequest` throws a `System.Net.WebException` that reads `The operation has timed out` Is it possible to change the timeout property in the System.Net.WebException via a web.config file by adding the correct add element name and value attribute? Or possibly change it globally using the registry or a GPO? I have already been advised to fix this using netsh http retries and some other settings and truth be told the issue could be on the opposite end of the connection where it also could be timing out; but it is unclear how to find that out. The error looks like this: System.Net.WebException: The operation has timed out. at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at System.WebServices.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) .... I am running a web-services based .NET application; it like most .NET web-based applications has an XML configuration file in which you can specify <add key="some-keyname" value="some-valuename" />. After the application reaches out to the enterprise server with a webservices request; eventually it times out; but the error message does not make it clear if we are talking about a timeout that comes from the enterprise server end or if the timeout is coming from the client end on the machines that I work on and can control. It simply says in a dialog box that pops up with a title that reads Error System.Net.WebException: The operation has timed out (again, it doesn’t specify if the time out came from my end or the enterprise end)…and it goes on…with the rest of the stack trace to tell us where the exception came from: at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at EGatewayClientCE.EGatewayService.BDSWse.ProcessDimeRequest() ...etchelpdeskaleerAug 26, 2024Copper Contributor293Views0likes0CommentsHow to achieve Multiversioning/Backward compatability for Dotnet 8. APIs?
What is the effective way in achieving "Multiversioning, Versioning, Backward compatability" for Dotnet 8.0 APIs . These APIs are going to be deployed AKS cluster as microservices.Harsha0803Jun 05, 2024Copper Contributor210Views0likes1CommentOpen Source Microservices Platform Now Available
Hello! I have recently published a new open source microservices platform on GitHub. It is available under the MIT permissive license and is free to use for commercial purposes. I'm asking the .NET community for some help.https://ServiceBricks.com I am currently BETA testing and I'm looking for developers and architects to help me with the final push to make it production ready. I could use another set of eyes to help shore up the last remaining bits. ServiceBricksis a powerful platform designed to streamline the development, deployment, and maintenance of distributed systems. It provides domain-driven design, event-based architecture and a wealth of features to rapidly build new microservices and application quickly.Deploy single monoliths or distributed, multi-web applications using docker or kubernetes. There are several pre-built microservices to start from to build your own application infrastructures. They are also open source and all source code is available. Please drop me a line if you would like to help! I'm looking for discussions on microservices architecture and how they are implemented in code. Thanks! DannyholomodularMay 24, 2024Copper Contributor261Views0likes0CommentsI want to create a web API in ASP.NET C# that needs to run scheduled jobs from the app.
Since, A and B are two different system altogether, there is no way to connect these two apps directly. So, I want to create my app in such a way that It will connect to an azure function and that azure function will act as a mediator that can get inputs(Payload) from the external system B and run the jobs of A. On this, the complexity of the Payload generation & API Call is shared by the Azure & On-premise EXE. The EXE will call the right Azure Job and the Job workflow is handled by Azure . Please help me the way to build the API/console app in C#. Without Azure function, I am not getting any options to connect to any external app to get the payloads. Need to know about the way to connect to Azure so that azure can act as a mediator to connect these two external apps.Nikhil2803Feb 13, 2023Copper Contributor1.2KViews0likes0CommentsOneDrive Sync Folder shows processing changes
I have installed the latest semi annual version for OneDrive sync client Some folders in the OneDrive sync folder shows processing changes under status. When the folder is opened, all files in the folder are completely synced. There are no temp files or hidden files in such folders, yet the sync status for this folders show processing changes. I followed guidelines in this KBI <OneDrive is stuck on "Sync pending" (microsoft.com)> to create a new folder, copy all files in the affected folder to the new folder and this resolved the issue; the processing change symbol was replaced by a cloud symbol. However, this issue affects many folders of almost all users of OneDrive for business in my tenant and most of these users are very busy and cannot create new folders and move or copy the contents into a new folder to resolve the issue each time its happens. This issue may look very simple but it is an issue that creates confusion in the minds of users as they doubt if their files have actually synced to their OneDrive accounts in the cloud. Is there an alternate way I can fix this issue in my Tenant for all the users.Frederick_2101Sep 23, 2022Copper Contributor2.1KViews2likes1CommentHow to have dynamic Jittered Back-off for wait and retry in .Net core using polly
Hi, I am implementing wait andretry using jittersee below. In the example below the delay is same. How can I make delay dynamic? var delay = Backoff.DecorrelatedJitterBackoffV2(medianFirstRetryDelay:TimeSpan.FromSeconds(1), retryCount: 3); var retryPolicy = Policy.Handle<FooException>().WaitAndRetryAsync(delay); In my Project, I have Azure functionhttps://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { var configuration = builder.GetContext().Configuration; builder.Services.RegisterService(configuration); } } public static IHttpClientBuilder RegisterService(this IServiceCollection serviceCollection,IConfiguration configuration) { return serviceCollection.AddHttpClient<IService, Service() .AddPolicyHandler(RetryPolicyHandler.GetRetryPolicy()) } public static IAsyncPolicy<HttpResponseMessage> GetRetryPolicy(IConfiguration configuration) { var delay =Backoff.DecorrelatedJitterBackoffV2(medianFirstRetryDelay: TimeSpan.FromSeconds(1), retryCount: 3); return HttpPolicyExtensions.HandleTransientHttpError().WaitAndRetryAsync(delay); } If you see the update code. Startup class override configure method that call register service>RetryPolicy. Startup-> Configure-> Register Service -> RetryPolicy My understanding is RetryPolicy will be called once (function startup) that will set the delay duration. Correct me if I am wrong? Sorry I am new to polly and github wiki does not have this information.How can I make delay dynamic?Please advice. Thankscoder1232045Jul 27, 2022Copper Contributor2KViews0likes0CommentsAuthorisation and authentication API
Hi all, I am working on a project that with a team of developers from other platforms. I am supposed to create two separate Api end points for authentication and authorization for customers and staffs, there will be a super admin who will created by default and who will subsequently assign roles to other staffs. I am actually new to dotnetcore and really needs help urgently to tarcle this problem. I will appreciate ant help from anyone. THank youExcel_1177Dec 06, 2021Copper Contributor781Views0likes0Comments