asp.netweb-hostingweb-publishing

Websitepanel: 404 - File or directory not found


I published an asp.net website to a webserver which can be managed through a control panel called websitepanel (websitepanel.net). I published the website through ftp to the web server.

xyzwebsite.com - this works! and shows Default.aspx page

xyzwebsite.com/Default.aspx and xyzwebsite.com/Default - Not working and shows the following but page actually exists and the directory also exists.

404 error

The actual structure as seen in control panel of web server:


The control panel files structure

But in my local IIS it works fine. Do any of you have any insights about this because I am new to this kind of stuff's so any clue will be very much appreciated :)


Solution

  • I just added the following attribute to the <Modules> tag in web.config and that solved my issue.

    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
    .......