简体   繁体   English

尝试在IIS 8.5上使用HTTPS访问目录但无法使用HTTP时,找不到404服务器错误资源

[英]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. 我在IIS(版本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". 当使用HTTP访问新目录时,一切正常,但是当我尝试使用HTTPS时,它会找到初始目录,但如果我尝试转到任何已注册的路由,则会抛出“HTTP 404.您要查找的资源(或其中一个)依赖项)可能已被删除,名称已更改,或暂时不可用。请查看以下URL并确保拼写正确“。

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. 我认为问题可能出在服务端点的web.config中,但我所做的所有更改似乎都没有带来任何帮助。

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. 重要的是要注意,我正在设置的几乎是在同一IIS站点上运行的另一个应用程序的直接副本减去它所在的一些路由和应用程序池。

If anyone can offer a path I can take with getting SSL to work for this It would be extremely useful. 如果任何人都可以提供一条路径,我可以采取SSL为此工作它将是非常有用的。

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" 解决方案是在用于web中端点的bindingConfiguration中。必须从安全模式更改=“无”=>安全模式=“传输”

I also needed to update the "mex" binding from binding="mexHttpBinding" => binding="mexHttpsBinding" 我还需要从binding =“mexHttpBinding”=> binding =“mexHttpsBinding”更新“mex”绑定

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试访问IIS中托管的应用程序时出现“无法找到资源”错误 - getting “The resource cannot be found” error when trying to access application hosted in IIS MonoDevelop 404服务器中内置的MVC 5.2.3.0项目在“ /目录”应用程序中错误。 没有找到您要查的资源 - MVC 5.2.3.0 Project built in MonoDevelop 404 Server Error in '/directory' Application. The resource cannot be found 当项目部署在 IIS 8.5 上时,无法使用 EntityFramework 6 创建数据库 - Cannot create DB using EntityFramework 6 when the project is deployed on an IIS 8.5 找不到资源 HTTP 404 错误 | 微博 | 家庭控制器.cs - The resource cannot be found HTTP 404 Error | HttpPost | HomeController.cs 网站尝试访问数据库或任何其他站点时,出现“ HTTP错误404。找不到请求的资源。” - “HTTP Error 404. The requested resource is not found.” when website tries to access database or any other site 使用C#.net应用程序访问活动目录中的不同域在本地计算机上工作,但在IIS服务器中托管时不能 - Access to different domain in active directory using C# .net application works in local machine but not when hosted in IIS server “/”应用程序中的服务器错误。 无法找到该资源。 (404) 将 WCF 服务部署到 Azure 应用服务时 - Server Error in '/' Application. The resource cannot be found. (404) when deploying WCF service to Azure App Service 找不到目录尝试使用DirectorySecurity库获取访问规则时 - Directory Not Found When trying get access rules using DirectorySecurity library IIS 7.0 Web服务-在HTTP(80)上运行,在HTTPS(443)上失败,错误404 - IIS 7.0 Web Service - Works on HTTP (80), Fails with error 404 on HTTPS (443) 将站点上载到IIS,找不到控制器资源(错误500)。 使用iisexpress在本地工作 - Uploaded site to IIS, cannot find controller resource (error 500). Works locally using iisexpress
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM