0
votes

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

  1. Access forbidden to domainname.com

  2. 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?

1
For now, ASP.NET requires a Windows machine with IIS - this won't be possible to host on Linuxmarc_s
thank you @marc_s.. can you suggest any alternatives to host a asp.net website on linux based hosting.?Mayur A Muley
If you want ASP.NET - you need to find a Windows hosting offermarc_s
thanks @marc_s.. this basics i should have known..Mayur A Muley

1 Answers

0
votes

Website hosts like godaddy are not able to support asp.net sites on a linux machine. If, however, you have your own linux server (dedicated or virtual) you may have success using mono though there are a number of limitations

Supported Versions

Mono supports ASP.NET 2.0, ASP.NET AJAX and a handful of 3.5 controls.

Limitations

Mono’s ASP.NET does not implement the following features:

Precompiled updatable web sites.

WebParts APIs.