简体   繁体   中英

Server Error Resource cannot be found 404 when trying to access directory using HTTPS on IIS 8.5 but works using HTTP

I set up a new app in my preexisting Site in IIS (version 8.5) Windows server 2012 R2. All works fine when accessing the new directory using HTTP but when I try HTTPS it finds the initial directory but if I try to go to any of the registered routes it throws a "HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly".

I have wasted a lot of time on this issue and am unable to find the issue here. The bindings on the site work just fine for the rest of the apps.

I'm thinking that the issue may be in the web.config in the service endpoint but all changes I make don't seem to lead anywhere useful.

Important to note that what I'm setting up is almost a direct copy of another app running on the same IIS site minus some of the routes and the app pool it is in.

If anyone can offer a path I can take with getting SSL to work for this It would be extremely useful.

The solution was in the bindingConfiguration that was being used for the endpoint in the web.config had to be changed from security mode="None" => security mode="Transport"

I also needed to update the "mex" binding from binding="mexHttpBinding" => binding="mexHttpsBinding"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM