unplugged_web Posted January 22, 2008 Share Posted January 22, 2008 I've been making some changes to a site that was built with asp. One of the pages, www.thephonecasino.com/thankyou.aspx, just keeps on returning an error and won't load. I've never used asp before so am stuck as to what to doThe code for the page is: <%@ Page CodeBehind="thankyou.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="thephonecasino.thankyou" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML lang="en"> <HEAD> <title>Thank You</title> <script language=javascript><!--function OnButton1(){ var cgistring = document.Form2.number.value; //alert(cgistring) document.Form2.action = "http://content.mxtelecom.com/cmx/servlet/ClientPush?user=promo9web&pass=t4j1nd3r&smsto=69888&network=UNKNOWN&smsmsg=WEBSITE&smsfrom=" + cgistring; document.Form2.target = "iframe1"; document.Form2.submit(); document.Form2.submit(); //onload="OnButton1()"}--></script> </HEAD> <body onLoad="OnButton1()"> <form id="Form1" method="post" runat="server"> <div style="visibility:hidden"> <form name="testform"></form> <form name=Form2 method=post> <input type="text" name="number" value="<%=no2%>" style="height:1px;"> </form> <IFRAME NAME="iframe1" WIDTH="1" HEIGHT="1"></IFRAME> <IFRAME NAME="iframe2" WIDTH="1" HEIGHT="1"></IFRAME> </form> <img src="images/thankyou.jpg" border="0" alt="" usemap="#thankyou_Map" style="margin-top:-55px;margin-left:-9px"> <map name="thankyou_Map"> <area shape="RECT" alt="" coords="469,364,560,388" href="java script:window.close();"> </map></body</html> I think that the problem is being caused by: <%@ Page CodeBehind="thankyou.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="thephonecasino.thankyou" %> but I don't know where to find that file to check it.Thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted January 25, 2008 Share Posted January 25, 2008 ASP.NET is an object-oriented language, so you'll need to find that codebehind file and possibly also the source file for the class that it inherits (thephonecasino.thankyou), wherever that one is. Also, you'll need to give details about the error message including the line number. Link to comment Share on other sites More sharing options...
unplugged_web Posted January 25, 2008 Author Share Posted January 25, 2008 ASP.NET is an object-oriented language, so you'll need to find that codebehind file and possibly also the source file for the class that it inherits (thephonecasino.thankyou), wherever that one is. Also, you'll need to give details about the error message including the line number.Where might I find the codebehind file? I've looked through every file and folder associated with the site, but can't find it. I did find an ASP_client folder, but that just had one htm and two js files in it.The error message I get it:Server Error in '/' Application.Object reference not set to an instance of an object.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] thephonecasino.thankyou.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\thephonecasino\thankyou.aspx.cs:24 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 Link to comment Share on other sites More sharing options...
justsomeguy Posted January 28, 2008 Share Posted January 28, 2008 Just do a search on the server for the filename. Link to comment Share on other sites More sharing options...
unplugged_web Posted January 29, 2008 Author Share Posted January 29, 2008 Just do a search on the server for the filename.I've just done that, but still no file. I did find this line in the error message:thephonecasino.thankyou.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\thephonecasino\thankyou.aspx.cs:24 I guess "c:\inetpub\wwwroot\thephonecasino\thankyou.aspx.cs:24" is where the file is, but how do I get to that directory? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 29, 2008 Share Posted January 29, 2008 I guess you start at the C drive, open inetpub, and go from there. Link to comment Share on other sites More sharing options...
unplugged_web Posted January 30, 2008 Author Share Posted January 30, 2008 I guess you start at the C drive, open inetpub, and go from there.That's the problem, I'm using a mac and have been given all of the files for the site. Is it possible it's on the server and would the host be able to go through that to find it for me? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 30, 2008 Share Posted January 30, 2008 I would hope it's on the server. The error message gave the path to the file on the server. If they gave you all the files for the site then you should have that one as well. If you don't have that one then they didn't give you all the files for the site.How did this error show up? In your first post you said that you were making some changes to the site and the error is showing up. Did one of the changes you made cause the error to appear? Did the site move servers or something and the error showed up then? What changed to cause the error to appear? I assume it was working at one point. Link to comment Share on other sites More sharing options...
unplugged_web Posted January 30, 2008 Author Share Posted January 30, 2008 I would hope it's on the server. The error message gave the path to the file on the server. If they gave you all the files for the site then you should have that one as well. If you don't have that one then they didn't give you all the files for the site.How did this error show up? In your first post you said that you were making some changes to the site and the error is showing up. Did one of the changes you made cause the error to appear? Did the site move servers or something and the error showed up then? What changed to cause the error to appear? I assume it was working at one point.I made a change and got the error message when I tested it so undid the change and was still getting the error. The only change I was trying to make was to add Google Analytics to the bottom of the page. I guess I need to speak to the host about the file.Thanks for helping me Link to comment Share on other sites More sharing options...
Synook Posted January 31, 2008 Share Posted January 31, 2008 Did you find the file? Link to comment Share on other sites More sharing options...
unplugged_web Posted January 31, 2008 Author Share Posted January 31, 2008 Did you find the file?No I haven't found it yet Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.