How to test my ASP.NET page on https://localhost in a development environment? [duplicate]

折月煮酒 提交于 2019-12-07 02:04:16

问题


Possible Duplicate:
HTTPS with Visual Studio's built-in ASP.NET Development Server

I'm writing a C#, ASP.NET web application with the VS 2010 IDE. I do not have the IIS server installed on this Windows 7 machine. All my testing of the web app goes through the "ASP.NET Development Server" that came with Visual Studio 2010. My pages usually load into the web browser with an adress like this: "http://localhost:59215/Default.aspx"

So my question is, can I test it with a HTTPS URL?

And if yes, can someone give me steps?


回答1:


Visual Studio 2010 with SP1 now has IIS Express, which will allow you run on SSL.

See here: http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx

You can also create a self-signed certificate to avoid any issues with buying a certificate.

http://weblogs.asp.net/scottgu/archive/2007/04/06/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates.aspx



来源:https://stackoverflow.com/questions/10779320/how-to-test-my-asp-net-page-on-https-localhost-in-a-development-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!