mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Running with IIS or IIS Express InProcess receives 500.37 #512
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fromorbonia on GitHub (May 8, 2023).
Originally assigned to: @StefH on GitHub.
Describe the bug
Starting a WireMock project in Visual Studio 2019 or 2022 using IIS Express InProcess mode displays the following server error:
Looking at the stderr logs, both InProcess and Out Of Process appear the same, but in the InProcess mode it never appears to receive the initial request. Implying that IIS Express isn't forwarding it correctly.
It's probably a simply config error, but really out of ideas, I've spent a few hours trying different combinations:
Expected behavior:
When the browser opens I'm expecting to see the standard {"Status":"No matching mapping found"} json.
Test to reproduce
Other related info
There are a lot of similarities to https://github.com/WireMock-Net/WireMock.Net/issues/564, but I'm just trying to run locally or deploy to an IIS server with Web Deploy, not onto Azure.
@StefH commented on GitHub (May 18, 2023):
@fromorbonia
Can you give information on which example app in this solution, or which project your are trying to use?
@StefH commented on GitHub (Jun 23, 2023):
@fromorbonia
Can you give information on which example app in this solution, or which project your are trying to use?
@StefH commented on GitHub (Jul 11, 2023):
@fromorbonia
Can you give information on which example app in this solution, or which project your are trying to use?
@fromorbonia commented on GitHub (Jul 19, 2023):
@StefH - sorry, didn't see your reply. So it wasn't an example app, it is my own app with WireMock installed via NuGet. If you ware not getting the same problem, I can try an example app.
@StefH commented on GitHub (Aug 5, 2023):
@fromorbonia any update on this?
Or can I close it?
@fromorbonia commented on GitHub (Aug 22, 2023):
@StefH - I did reply saying it wasn't an example app...?
@StefH commented on GitHub (Aug 22, 2023):
Sorry, I don' get it.
Can you please provide a full example which demonstrates this issue? From that code example, I can take a look what goes wring.
@fromorbonia commented on GitHub (Aug 22, 2023):
My initial question was really - does anyone else have the same problem? From what you are saying, and the lack of "me toos" that isn't the case.
I've just tried to recreate from scratch, but it must be something to do with my initial .NET Core 31 implementation that carried through the .NET 6 upgrade.
Doing a very quick Visual Studio 2022 new ASP.NET Core Web App project, adding in WireMock.NET via NuGet - pulling over the key files (e.g. WireMockService.cs from the broken project. I could not reproduce, and it ran InProcess just fine.
So I think close it... ?
@StefH commented on GitHub (Nov 11, 2023):
Closing...