简体   繁体   English

在IIS上发布时的HTTP 404 IIS

[英]HTTP 404 IIS when publishing on IIS

I'm having some troubles trying to find out what to do: 我在尝试找出解决方法时遇到了一些麻烦:

  • I published a directory with some .aspx pages on IIS on :8081 : image - localhost:8081 我在:8081上的IIS上发布了包含一些.aspx页面的目录: image-localhost:8081

  • But when i click on a page or try typing it, i get an http 404 : 但是,当我单击页面或尝试键入页面时,我得到了http 404:

http 404 - image HTTP 404-图片

Maybe some IIS configurations, but i cant find it anywhere, if someone could help me i would really appreciate! 也许有一些IIS配置,但是我找不到任何地方,如果有人可以帮助我,我将不胜感激! Thank you all! 谢谢你们!

You can setup your bindings by following the instructions in this post: 您可以按照这篇文章中的说明设置绑定:

How to access multiple website using different bindings on IIS 7.5 如何在IIS 7.5上使用不同的绑定访问多个网站

Also, IIS Express will assign a random port when debugging, and this will not work when the app is actually published. 此外,IIS Express会在调试时分配一个随机端口,并且在实际发布该应用程序时将不起作用。

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

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