Internal Server Error

12 minutes ago|LINK

Hello Guys,

I need help deploying my little website I am designing.

I have my index.html file in the wwwroot folder and my web.config file is there too. the contents of the web.config file are:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="index.html" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>

when I go to my url it retuens:

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

My html file is a simple one btw its just hello world

  <html>
        <head><title>My First Web Page - HTML is simple!</title>
        </head>
        <body bgcolor="#FFFFFF" text="#FF0000">

        <h2>Hello, world. HTML is easy!</h2>

        </body>
        </html>

Your web.config and html file look fine so far. Are you developing this in Visual Studio? If so, Visual Studio comes with a development web server so if you right click your index.html file the local web server should start up and it should display your page. If it does, I would recommend that you take a look at your web server's configuration. Are you running this web server on an IIS server? If so, what version of IIS. Do you have .NET enabled on the server? Check which version of .NET.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.