404 not found on server running .NET

Discussion in 'C#' started by millworx, Oct 21, 2008.

  1. #1
    So I have a client who has a site all programmed in ASP.net C#

    Well I only know ASP.

    So I programmed a form page for him uploaded it to the server. Tried viewing the page... IIS said that there was an error in the ASP code, So I fix the error on Line 138. Refresh.... 404 file not found!

    What could I possibly be overlooking? I thought you can run ASP and ASP.NET files on the same server.

    This is on shared hosting plan through webhost4life

    Thanks!
     
    millworx, Oct 21, 2008 IP
  2. Sean@WMS

    Sean@WMS Peon

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes, you can run classic ASP and ASP.NET on the same site/server (assuming that the host provides both, which is a reasonable assumption).

    So, are you getting an IIS 404 error page or a .NET 404 error page? I'd assume the former, and if that's the case, then the is not there ( or got corrupted on upload -- chack for a file size of 0 kb ). There really aren't many other possibilities here.
     
    Sean@WMS, Oct 22, 2008 IP
  3. millworx

    millworx Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes I figured you can run legacy asp code on an asp.net server

    The file is fine.. In fact it tried executing it an I got an syntax error on one line, i corrected the error reuploaded and now it simple says 404. So I dont know if it is something on the server. I guess I'm not entirely sure because I always use linux/php.
     
    millworx, Oct 27, 2008 IP
  4. Sean@WMS

    Sean@WMS Peon

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What's the URL? I want to see if it's ACTUALLY a 404 error page (as opposed to say a 500.100 error), and if so, is it an IIS 404 page or a .NET 404 page.
     
    Sean@WMS, Oct 27, 2008 IP
  5. wren

    wren Guest

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    this happen to me once, my solution was taking out the '~' tags from my url strings for instance:

    <asp:HyperLink ID="HyperLink1" runat="server"
    NavigateUrl="~/Account.aspx?t=Settings"> to <asp:HyperLink ID="HyperLink1" runat="server"
    NavigateUrl="Account.aspx?t=Settings">

    or it could be a problem in ya webconfig, hard to really know without seeing the error message
     
    wren, Oct 30, 2008 IP
  6. Sean@WMS

    Sean@WMS Peon

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Except that @ millworx says he's using classic ASP, not ASP.NET ;)
     
    Sean@WMS, Oct 30, 2008 IP
  7. wren

    wren Guest

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    oh my mistake :
     
    wren, Nov 1, 2008 IP