I just started using Visual Studio and tried to duplicate a tutorial by Bob Tabor. Trying to display a HTML file using Browser connect.

Here's what I'm doing:

  1. New project
  2. Web ASP.NET Web Application
  3. Empty
  4. Add new item --> HTML page
  5. Add 'test" to to title and body
  6. Try to view in browser - get http://localhost:51962/HtmlPage1.html with no response

Browser dashboard says no connections

Added to web.config:

<system.webServer>    
<handlers>
  <add name="Browser Link for HTML" path="*.html" verb="*" 
       type="System.Web.StaticFileHandler, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
       resourceType="File" preCondition="integratedMode" />
</handlers>
</system.webServer>

But nothing seems to work. Could someone provide the proper steps?

I think it might be a server issue. localhost is a connection to a MySQL database called final project. BlueWater is the name of my computer. I'm able to connect to the Mysql database. I made sure I was using 4.5.2 and also that our web.config files match. Thanks again for your help. Here's a screenshot of Server Explorer:

enter image description here

Related posts

Recent Viewed