question

WillemGons-8526 avatar image
0 Votes"
WillemGons-8526 asked WillemGons-8526 answered

WCF service fails on IIS 10 on Server 2019


I am migrating WCF services to a new 2019 server running IIS10. The server that these services come from is a IIS8.5 running on Server 2012R2. It is obvious that a IIS backup/restore might/will fail as a number of discussions will suggest. I have set up my remote deployment from VS2019 the same as for the old server. I can deploy webs and REST services without any problems - BUT WCF services fail:

Fiddler reports 404 Not Found. Calling the service via test programs under debug brings up the following:

 25-02 11:09:43 [24016] FATAL bSm.Kll.Program - System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (405) Method Not Allowed. ---> System.Net.WebException: The remote server returned an error: (405) Method Not Allowed. at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) --- End of inner exception stack trace ---

 Server stack trace:
 at <System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory1 factory, WebException responseException, ChannelBinding channelBinding)<br> at System.ServiceModel.Channels.HttpChannelFactory1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
 at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
 at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
 at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

I am reasonable sure that I am missing credentials for the service, the problem is WHERE / WHAT is the additional requirement enforced by this server.

As an aside: I already ran across the problem that the Web Deployment tool has a extra requirement for a "User delegate" which was quite a hurdle on its own. The 3.6 version of the tool had to be collected from the MS website before this requirement was revealed.

windows-server-2019windows-server-iiswindows-wcf
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @WillemGons-8526 ,

(405) Method Not Allowed. ---> System.Net.WebException: The remote server returned an error: (405) Method Not Allowed

The exception message has showed detailed error message. So please check the target page in WCF to make sure it can accept specific request method.

Another setting on IIS is Request Filtering.
178282-1.png
Add the allow method in this list.


0 Votes 0 ·
1.png (232.1 KiB)

Hallo @BruceZhang-MSFT
My apologies - I wrote a reply and it did not stick - dit not upload.
I want to explain my problem further but I am having problems with this forum.
Could you contact me : willem@softworks.co.za
Once I learn how to use this forum we can post results.
My problem is critical - obviously our clients are lost and the Microsoft 24/7 help system does not work.
Please indulge me - I wait your email.

0 Votes 0 ·

Hi @WillemGons-8526 ,

The policy does not allow us to contact you privately. We can only communicate on Q&A.

If your issue is urgent and complex, it is recommended that you create a support ticket. Microsoft support engineer can understand your problem more quickly and give you remote support in a timely manner.


0 Votes 0 ·
Show more comments

1 Answer

WillemGons-8526 avatar image
0 Votes"
WillemGons-8526 answered

Hi @BruceZhang-MSFT
I did not manage to get hold of Microsoft.
I keep getting as far as the point were I am asked to pay upfront for a once off call and then the payment page fails.
So much for Microsoft and in any case where I come from you first work then you get paid.

I solved my problem the brute force way. Buy a new server with Server 2012R2, prep the IIS (8.5), restore the iis configs from the backup AND IT RUNS.
Shame on you MS. If my work was this lousy I would never have been able to keep a job.

Thanks for listening to my rant.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.