-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MockServer not starting #453
Comments
Can you provide the C# code, or maybe a full example project? |
Yes, of course. |
Yes I can confirm your issue:
|
I did fix it. If you would like, you can test a preview version: See https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions for information. |
Yes, it works @StefH !! |
A new official nuget will be released shortly. |
Hello
I am trying to use WireMock but I am having a problem and I don´t know why. My project is .NET Framework 4.52 and I installed the last version of WireMock.Net.
When I Start the server with .Start() method this is the error:
Initialization method Tests.TestShould.OnTestInitialize threw exception. WireMock.Exceptions.WireMockException: Service start failed with error: Se produjo una excepción en el destino de la invocación. ---> System.Reflection.TargetInvocationException: Se produjo una excepción en el destino de la invocación. ---> System.Net.HttpListenerException: El parámetro no es correcto. en System.Net.HttpListener.AddAllPrefixes() en System.Net.HttpListener.Start() en Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func
2 appFunc, IList1 addresses, IDictionary
2 capabilities, Func2 loggerFactory) en Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func
2 app, IDictionary2 properties) --- End of inner exception stack trace --- en System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) en System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) en Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder) en Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer(StartContext context) en Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context) en Microsoft.Owin.Hosting.WebApp.StartImplementation(IServiceProvider services, StartOptions options, Action
1 startup)en WireMock.Owin.OwinSelfHost.StartServers()
--- End of inner exception stack trace ---
en WireMock.Server.WireMockServer..ctor(IWireMockServerSettings settings)
en WireMock.Server.WireMockServer.Start(Nullable
1 port, Boolean ssl) en Tests.TestShould.OnTestInitialize() en C:\Dev\Tests\TestShould.cs:línea 36
Any idea?
Thanks.
The text was updated successfully, but these errors were encountered: