#pants-cli-windows-error
1 messages · Page 1 of 1 (latest)
WebHost.CreateDefaultBuilder(args)
.UseUrls("http://0.0.0.0:4242")
.UseWebRoot("public")
.UseStartup<Startup>()
.Build()
.Run();
You mean the part of the webhook in this guide? https://stripe.com/docs/webhooks/quickstart?lang=dotnet
yes
i mean i got a blank core app working on the server https://www.windowsoftware.co.uk/stripewebhook
but i dont know enough about core to get this stripe code working
Well I think you would likely need to change the URL to match what the server URL is
i dont think that bit would be the same at all
i normal ap just does this
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.Run();
is there anyone who knows .net core?
Unfortunately I am not experienced in deploying .NET apps to servers. I can help with the interaction with the Stripe API and our .NET library but this is a more general .NET question that I'm not familiar enough with
We are focused on the Stripe integration part on this server
is there anyone else who might know it?
Can you be more specific about what isn't working?
it just gives errors whatever i change https://www.windowsoftware.co.uk/stripewebhook
What errors are talking about? What are you changing? If I am to help or possibly find someone who could help I would need a lot more details about your integration and the errors you are experiencing.
i dont know .net core musch especially using it for a webhook
if you want to share some code on your site for this i think you need to show something that would work in a published state
Unfortunately you are not being clear enough for me to even identify what the problem is. I would suggest you review basics of .NET core and provide some specific examples.
i can get a basic .net core app working on the site
what i cant get working is your stripe example
the error in logs is
failed to load coreclr. Exception message:
CLR worker thread exited prematurely
From what I can find this appears to be a Windows server issue. I would recommend you review the solutions mentioned here: https://stackoverflow.com/questions/67312973/asp-net-core-iis-deploy-iis-aspnetcore-module-error-clr-worker-thread-exited-p