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!
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.
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.
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.
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