本地 URL 不起作用 - Asp .net core - 本地 iis 服务器
我已将我的 asp .net core 发布到本地文件夹 (D:\le1testing) 中。代码发布没有错误。 另外,在本地 IIS 服务器中创建站点作为 le1testing,并绑定主机,如下所示。 在此处输入图像描述
但是,当我点击本地域链接时,它不起作用。它显示以下附加错误。 在此处输入图片说明 任何人都可以帮我解决这个问题。 谢谢
I have publish my asp .net core into local folder (D:\le1testing). Code published without error.
Also, created site in local IIS server as le1testing, and binding the host like below.
enter image description here
But, when i hit the local domain link, it is not working. it showing the below attached error.
enter image description here
Anyone help me to fix this iisue.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
www.le1testing.com
是公共域名吗?如果没有,则说明没有绑定对应的IP地址。公共 DNS 无法将域映射到特定服务器 IP。如果想通过网络访问域名,需要购买一个公网域名,并将其映射到服务器IP。
如果你想通过局域网或本地机器访问它,你可以编辑hosts文件。该文件的路径是
C:\Windows\System32\drivers\etc
。添加如下记录:127.0.0.1 www.le1testing.com
。然后就可以通过本地机器访问它了。编辑其他机器的host文件,如IIS机器IP www.le1testing.com
可以允许它们通过局域网访问站点。Is the
www.le1testing.com
a public domain name? If not, that means there's no correspond IP address binds to it. Public DNS cannot map the domain to specific server IP.If you want to access the domain through network, you need to buy a public domain name and map it to server IP.
If you want to access it through LAN or local machine, you can edit hosts file. The file's path is
C:\Windows\System32\drivers\etc
. Add a record like this:127.0.0.1 www.le1testing.com
. Then you can access it through local machine. Edit other machines' host file likeIIS machine IP www.le1testing.com
can allow them access site through LAN.