Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Server Error in '/' Application - ASP.NET

  • 19-10-2006 9:53pm
    #1
    Closed Accounts Posts: 2,585 ✭✭✭


    Hi Everyone,

    can anyone help me please with the following error I am getting when I upload my site to my hosting comany. It works fine on my local machine. The page it is trying to display (default.aspx) is a simple page with a couple of links and no database access. I have copied the source further down.

    The error:
    Server Error in '/' Application.

    Runtime Error
    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    </system.web>
    </configuration>


    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
    </configuration>

    I tired adding the <customErrors mode="Off"/> tag but it made no difference. I emailed the hosting company support desk and they replied and said the acutal error is:
    Server Error in '/' Application.

    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

    Requested Url: /ck_test/default.aspx


    Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

    Now I created the site in Visual Studio 2005 which is framework 2.0. I notice the message at the end of the error says "Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300". Are the hosting company running version 1.1 - is that my problem?

    Source code for default.aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

    <html xmlns="http://www.w3.org/1999/xhtml&quot; >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <a href="page1.aspx">Link to page 1<br />
    </a>
    <br />
    <a href="page2.aspx">Link to page 2</a><br />
    </div>
    </form>
    </body>
    </html>


Comments

  • Registered Users, Registered Users 2 Posts: 7,987 ✭✭✭Trampas


    Have you gone into your IIS and selected your website go to propperites and select the ASP.NET tab and select the 2.0 framework as it might still be pointing to 1.1.....

    Try that


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Trampas wrote:
    Have you gone into your IIS and selected your website go to propperites and select the ASP.NET tab and select the 2.0 framework as it might still be pointing to 1.1.....

    Try that

    This is most likely your problem; I have the same issue with my VS 2005 projects on my hosting account. The folders seem to be set to v1.1 by default, and I have to get them to change it to 2.0 each time I upload a new app. It's annoying that this isn't a configurable option in a lot of control panels.


  • Closed Accounts Posts: 2,585 ✭✭✭HelterSkelter


    Trampas wrote:
    Have you gone into your IIS and selected your website go to propperites and select the ASP.NET tab and select the 2.0 framework as it might still be pointing to 1.1.....

    Try that
    Are you saying I should be doing that on my local machine or on the hosting account?


  • Registered Users, Registered Users 2 Posts: 7,987 ✭✭✭Trampas


    You may need to do it on both.


  • Closed Accounts Posts: 2,585 ✭✭✭HelterSkelter


    Trampas wrote:
    You may need to do it on both.
    Ok thanks. I can't see any options for doing that on the hosting account. I emailed them last night but still haven't heard anything back.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 7,987 ✭✭✭Trampas


    They will have to have the 2.0 .NET framework installed.

    Anyway i think thats your fix.

    Good luck


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Ok thanks. I can't see any options for doing that on the hosting account. I emailed them last night but still haven't heard anything back.

    Like I said, it doesn't appear to be an option on the control panels I have seen


  • Closed Accounts Posts: 2,585 ✭✭✭HelterSkelter


    Thanks lads.


Advertisement