My web API was working last week. I installed core 2.2 on server. And the web api compiled as 2.1 failed on PUT. The error is <h3>HTTP Error 405.0 - Method Not Allowed</h3>
<h4>The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.</h4> I recompiled the service to core 2.2. While it works on IIS Express, ( VS) the PUT fails when deployed under IIS. On the off chance the request
filtering needs the verb PUT now, I added that. Still fails.
Any ideas ? Thanks - trying to publish the sample but that gives me an error Failed to start application '/LM/W3SVC/1/ROOT/R22', ErrorCode '0x80004005'., Mixed hosting model is not supported. Application '/LM/W3SVC/1/ROOT/R22' configured with different
hostingModel value '1' other than the one of running application(s).
My web API was working last week. I installed core 2.2 on server. And the web api compiled as 2.1 failed on PUT. The error is <h3>HTTP Error 405.0 - Method Not Allowed</h3>
<h4>The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.</h4> I recompiled the service to core 2.2. While it works on IIS Express, ( VS) the PUT fails when deployed under IIS. On the off chance the request
filtering needs the verb PUT now, I added that. Still fails.
Any ideas ? Thanks - trying to publish the sample but that gives me an error Failed to start application '/LM/W3SVC/1/ROOT/R22', ErrorCode '0x80004005'., Mixed hosting model is not supported. Application '/LM/W3SVC/1/ROOT/R22' configured with different
hostingModel value '1' other than the one of running application(s).
From your description, I think you have a ASP.NET Core application(API). It is suitable to go to the
ASP.NET Core forum for getting help.
ASP.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
Member
27 Points
88 Posts
PUT stops working on Server
Dec 19, 2018 05:58 PM|andrewcw|LINK
My web API was working last week. I installed core 2.2 on server. And the web api compiled as 2.1 failed on PUT. The error is <h3>HTTP Error 405.0 - Method Not Allowed</h3>
<h4>The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.</h4> I recompiled the service to core 2.2. While it works on IIS Express, ( VS) the PUT fails when deployed under IIS. On the off chance the request filtering needs the verb PUT now, I added that. Still fails.
Any ideas ? Thanks - trying to publish the sample but that gives me an error Failed to start application '/LM/W3SVC/1/ROOT/R22', ErrorCode '0x80004005'., Mixed hosting model is not supported. Application '/LM/W3SVC/1/ROOT/R22' configured with different hostingModel value '1' other than the one of running application(s).
Thanks...
Star
11464 Points
2439 Posts
Re: PUT stops working on Server
Dec 20, 2018 06:21 AM|Yohann Lu|LINK
Hi andrewcw,
From your description, I think you have a ASP.NET Core application(API). It is suitable to go to the ASP.NET Core forum for getting help.
Besides, As far as I know the ASP.NET Core 2.2 is available as part of .NET Core 2.2 on December 2018.
You may can refer the following article to update an existing ASP.NET Core 2.1 project to ASP.NET Core 2.2.
Migrate from ASP.NET Core 2.1 to 2.2
https://docs.microsoft.com/en-us/aspnet/core/migration/21-to-22?view=aspnetcore-2.2&tabs=visual-studio
I hope it will helpful for you.
Best Regards,
Yong Lu