I created a web site using VS2010 .NET Framework 4.0
I built the project and published it to the local file system. After uploading all published folders and files to the public_html
directory. Whenever I hit on my domain I got following errors
Access forbidden to domainname.com
XML Parsing Error
XML Parsing Error: not well-formed Location: http://www.example.com/index.aspx Line Number 1, Column 2:<%@ Page Title="My Website" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterHomePage.Master" -^
My web.config
is
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<customErrors defaultRedirect="" />
<compilation strict="false" explicit="true" targetFramework="4.0" />
</system.web>
<system.net>
<mailSettings>
<smtp from="">
<network host="" password="" userName="" />
</smtp>
</mailSettings>
</system.net>
<system.webServer>
<directoryBrowse enabled="true" showFlags="None" />
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
What am I doing wrong?
I don't see any option on godaddy linux hosting cPanel to configure asp.net
One more question I heard that I cannot host asp.net website on linux hosting. Is it true?