启用SSL的URL(https://localhost:44301/)不适用于ASP.Net MVC站点 [英] SSL enabled URL (https://localhost:44301/) not working for ASP.Net MVC site
问题描述
我在运行启用SSL的ASP.Net MVC站点时遇到问题.我试图创建一个基于ASP.NET的MVC网页.我遵循以下步骤:
I'm having a problem to run SSL enabled ASP.Net MVC site. I tried to create an ASP.NET based MVC webpage. I followed following steps:
- 我已将SSL属性设置为 True .
- 复制了SSL URL(在我的情况下是localhost:44301).
- 在解决方案资源管理器中,右键单击SSLMVCTestApp并选择属性".
- 选择"Web"选项卡.
- 将SSL URL粘贴到项目URL"框中,然后单击创建虚拟目录".
- 保存项目并运行项目.
使用包含https的URL打开浏览器,但是未显示任何页面,而是显示消息:此网页不可用".
The Browser is opened with URL containing https, however no page is shown and rather it shows the message : "This webpage is not available".
但是,对于非HTTPS网址,它是有效的.任何人都可以指导我解决此问题.我需要从我的应用程序运行启用Https的URL.
However, for non HTTPS url it is working. Can anyone please guide me to resolve this issue. I need to run Https enabled URL from my apps.
感谢&最好的问候,
Thanks & Best Regards,
艾哈迈德
推荐答案
我认为您不需要执行步骤3至5.只需运行该项目,然后在浏览器中打开URL https://localhost:44301
.
I think you don't need to do the steps 3 to 5.
Just run the project and open your url https://localhost:44301
in your browser.
现在,由于您的操作,也许您需要删除在ApplicationHost.config文件中创建的虚拟目录
And now, because of your action, maybe you need to remove the virtual directory you created in your ApplicationHost.config file
这篇关于启用SSL的URL(https://localhost:44301/)不适用于ASP.Net MVC站点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!