2016-08-01 60 views
3


对于webdev来说,这非常新颖。即时尝试为我的老板构建一个小型演示项目作为概念证明。我已经在VS2015中构建了该站点,并且它可以在VS Webhost中运行/调试。即时通讯现在试图将其更多地转移到为此设置的服务器上。
这里是我已经采取的步骤:
1.)安装IIS,我可以看到默认页面。
2.)我已验证iis用户可以访问物理路径。
3.)我设置了匿名身份验证。
4.)我已启用目录浏览

这里是我开始遇到的问题。当打开浏览器并导航到该地址或右键点击浏览网站选项从iis经理我得到“这个页面无法显示”我查了几个解决方案,没有工作。这是希望的任何向前进步的主要原因之一是进入:
internet选项菜单 - >高级选项卡 - >“浏览”设置框中 - >取消选中“显示友好HTTP错误信息”

甚至与此选项未选中,我仍然看到“此页面无法显示”。如果页面继续显示错误,则没有其他反馈或解决方案。我已尝试重新启动iis浏览器和物理服务器都没有任何更改。即时通讯希望有人以前有过这个问题,解决方案是直截了当的,我很想念它,只是因为我还是新手。此页面无法在IIS中显示

FILE:Default.aspx的

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
<title>CommonUse Web Demo</title> 
<link href="App_Code/PageStyle.css" rel="stylesheet" type="text/css" /> 
</head> 
<style> 
.VerticalLine 
{ 
border-left: thick solid #000000; 
}  
th, td 
{ 
padding: 5px; 
text-align: left; 
} 
.TableLayoutSideBar 
{ 
width: 200px; 
} 
.TableLayoutMainBar 
{ 
width: 1000px; 
} 
.TBL_VerticalHeader { 
    width: 75px; 
} 
</style> 
<body> 
<form id="form1" runat="server"> 
    <div> 
     <table cellpadding="0" cellspacing="0"> 
      <tr> 
       <th class="TableLayoutSideBar">      
       </th> 
       <th class="TableLayoutMainBar"> 
       <h1 style="text-align:center;">Common Use Web Demo</h1> 
       </th> 
       <th class="TableLayoutSideBar">      
       </th> 
      </tr> 
      <tr> 
       <td class="TableLayoutSideBar"> 
       </td> 
       <td class="TableLayoutMainBar"> 
        <table cellpadding="0" cellspacing="0"> 
        <tr> 
         <th class="TBL_VerticalHeader"> 
          <asp:Label runat="server" Text="Input"/>     
         </th> 
         <td class="TableLayoutSideBar">   
          <asp:Label runat="server" Text="Input Range: 0-9"/>      
          <asp:TextBox ID="Tbx_Input" runat="server" Width="100px"/>        
         </td> 
         <td class="TableLayoutSideBar">         
          <asp:Button ID="Btn_Submit" runat="server" Text="Submit" OnClick="Btn_Submit_Click" />        
         </td> 
        </tr> 
        <tr> 
         <th class="TBL_VerticalHeader"> 
          <asp:Label runat="server" Text="Output:"/> 
         </th> 
         <td class="TableLayoutSideBar" colspan="2"> 
          <asp:Label ID="Lbl_Output" runat="server" Text="Please Input a Number"/> 
         </td> 
        </tr>     
       </table> 
       </td> 
       <td class="TableLayoutSideBar"> 
       </td> 
      </tr>     
     </table> 
    </div> 
</form> 
</body> 
</html> 
+0

第一步是尝试获取HTTP错误代码。看看这个,并尝试找到正在生成的HTTP错误代码:http://blogs.iis.net/ma_khan/troubleshooting-iis-6-status-and-substatus-codes。有时打开F12控制台,转到网络选项卡也会提供更多有用的信息 –

+0

地址栏中的URL是什么?将它与IIS端的坐标绑定比较 –

+0

@LexLi,我不知道你在问什么,当我运行它VS2015时,地址只是'localhost:xxxx',即时试图设置iis为'演示.commonuse.com',它应该默认为'\ deafult.aspx'页面。 – mmp786

回答

2

我已经找到了我自己的问题......我尝试尽快成立一个地址。我从绑定中删除了“demo.commonuse.com”,现在它已经很好了。又因为我还没有为它设置一个域,因此它需要使用机器IP作为地址。感谢大家的帮助。