mindlessacts
asked on
Server Error in '/' Application Need Help
Hi I'm getting this error: "Server Error in '/' Application"
For details on this error, just go to my site www.stealthservers.net. Scroll to the bottom, and try and login to TCAdmin with any username and password.
I had to fire my coder due to reliability issues, and have been having trouble finding a new one, so for now I'm on my one.
What this login does, is login to a gaming control panel located on a seperate server then mine.
The direct login to this control panel is located here: http://209.213.120.8/Templates/Default/login.aspx
This is what my code looks like:
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ------
<tr><td height='10'></td></tr><for m name=\"form2\" method=\"post\" action=\"http://209.213.120.8/Templates/Default/login.aspx/\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"hidden\" name=\"__EVENTTARGET\" value=\"\" /><input type=\"hidden\" name=\"__EVENTARGUMENT\" value=\"\" /><input type=\"hidden\" name=\"__VIEWSTATE\" value=\"dDwtMTY2NTA2NTgwNj t0PDtsPGk8 MD47PjtsPH Q8O2w8aTwz PjtpPDQ+O2 k8MTA+O2k8 MTM+Oz47bD x0PHA8O3A8 bDxzcmM7c3 R5bGU7Pjts PEltYWdlcy 9NZW51SWNv bnMvc3BhY2 VyLnBuZzt3 aWR0aDo2NF w7IGhlaWdo dDo2NFw7IG ZpbHRlcjog cHJvZ2lkOk RYSW1hZ2VU cmFuc2Zvcm 0uTWljcm9z b2Z0LkFscG hhSW1hZ2VM b2FkZXIoc3 JjPScvVGVt cGxhdGVzL0 RlZmF1bHQv SW1hZ2VzL0 1lbnVJY29u cy9Vc2VyLn BuZycsIHNp emluZ01ldG hvZD1zY2Fs ZSlcOzs+Pj 47Oz47dDxw PHA8bDxUZX h0Oz47bDxX ZWxjb21lIH RvIFRDQWRt aW47Pj47Pj s7Pjt0PHQ8 O3A8bDxpPD A+Oz47bDxw PERlZmF1bH Q7RGVmYXVs dD47Pj47bD xpPDA+Oz4+ Ozs+O3Q8cD xwPGw8Q3Nz Q2xhc3M7Xy FTQjs+O2w8 YnV0dG9uRm 9yd2FyZDtp PDI+Oz4+O3 A8bDxvbkNs aWNrOz47bD xyZXR1cm4g RGlzYWJsZU 9uU3VibWl0 KHRoaXMsIC dCdXR0b25M b2dpbl9Qcm 9jZXNzaW5n JylcOzs+Pj 47Oz47Pj47 Pj47bDxDaG Vja0JveFJl bWVtYmVyTW U7Pj5DsE3b 6SOY6CrDmw mzfPq8UADF nQ==\" /><tr><td valign='top'><table cellspacing='0' cellpadding='0' align='center' width='841'><tr><td><img src='images/icon_gleft.gif '></td><td class='gcontent' width='823'>";
if($post_username=="" || $post_username!="$check_ac count_post _username" || $post_password!="$check_ac count_post _password" || $page!="account" && $account!="login"){
echo"Username: <input type=\"text\" name=\"username\" value=\"\" maxlength=\"50\" size=\"15\"> Password: <input type=\"password\" name=\"password\" size=\"15\" value=\"\" maxlength=\"50\"> Login To: <select onchange=\"document.form2. action=thi s[selected Index].val ue;\" name=\"site\">";
echo"<option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option>";
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --
This is the site where I have the panel through: www.tcadmin.com
Also, this is the code I was given from a tech at that site, but I have no clue how to incorporate it. Any help is MUCH appreciated, I have been working with this for over a week, and I just simply do not have the coding skills to get it working.
Here is the code the tech gave me:
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" language="JavaScript">
function ActionDeterminator()
{
if(document.login.location [0].checke d == true) {
document.login.action = 'http://69.90.113.202/Templates/Default/login.aspx';
}
if(document.login.location [1].checke d == true) {
document.login.action = ' http://panel.greatlakegaming.net/Templates/Default/login.asp x';
}
}
</script>
</head>
<body>
<form name="login" method="POST" action="http://69.90.113.202/Templates/Default/login.aspx">
<table border="0" align="center" id="table1">
<tr>
<td><strong>User:</strong> </td>
<td><input type="text" name="USERID" size="20"></td>
</tr>
<tr>
<td height="27"><strong>Passwo rd</strong >:</td>
<td><input type="password" name="PASSWORD"
size="20"></td>
</tr>
<tr>
<td height="59" valign="top"><strong>Locat ion:</stro ng></td>
<td valign="middle">
<input name="location" type="radio" checked onclick="ActionDeterminato r();">
Chicago<br> <input type="radio" name="location" checked onclick="ActionDeterminato r();">
New York<br>
</td>
</tr>
</table> <p> </p>
<p align="center">
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset"
name="B2">
</form>
</body>
</html>
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---
Let me know if any further info is needed.
Thanks A lot, Brad
For details on this error, just go to my site www.stealthservers.net. Scroll to the bottom, and try and login to TCAdmin with any username and password.
I had to fire my coder due to reliability issues, and have been having trouble finding a new one, so for now I'm on my one.
What this login does, is login to a gaming control panel located on a seperate server then mine.
The direct login to this control panel is located here: http://209.213.120.8/Templates/Default/login.aspx
This is what my code looks like:
--------------------------
<tr><td height='10'></td></tr><for
if($post_username=="" || $post_username!="$check_ac
echo"Username: <input type=\"text\" name=\"username\" value=\"\" maxlength=\"50\" size=\"15\"> Password: <input type=\"password\" name=\"password\" size=\"15\" value=\"\" maxlength=\"50\"> Login To: <select onchange=\"document.form2.
echo"<option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option>";
--------------------------
This is the site where I have the panel through: www.tcadmin.com
Also, this is the code I was given from a tech at that site, but I have no clue how to incorporate it. Any help is MUCH appreciated, I have been working with this for over a week, and I just simply do not have the coding skills to get it working.
Here is the code the tech gave me:
--------------------------
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" language="JavaScript">
function ActionDeterminator()
{
if(document.login.location
document.login.action = 'http://69.90.113.202/Templates/Default/login.aspx';
}
if(document.login.location
document.login.action = ' http://panel.greatlakegaming.net/Templates/Default/login.asp x';
}
}
</script>
</head>
<body>
<form name="login" method="POST" action="http://69.90.113.202/Templates/Default/login.aspx">
<table border="0" align="center" id="table1">
<tr>
<td><strong>User:</strong>
<td><input type="text" name="USERID" size="20"></td>
</tr>
<tr>
<td height="27"><strong>Passwo
<td><input type="password" name="PASSWORD"
size="20"></td>
</tr>
<tr>
<td height="59" valign="top"><strong>Locat
<td valign="middle">
<input name="location" type="radio" checked onclick="ActionDeterminato
Chicago<br> <input type="radio" name="location" checked onclick="ActionDeterminato
New York<br>
</td>
</tr>
</table> <p> </p>
<p align="center">
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset"
name="B2">
</form>
</body>
</html>
--------------------------
Let me know if any further info is needed.
Thanks A lot, Brad
is your directory configured as an application directory?
looks like a permission issue to me - does the ASPNET (IIS5) or NETWORK SERVICE (IIS6) user have access to the directory where the app is hosted, and as YZlat mentioned, is the directory configured as an application directory?
if you change these lines:
http://69.90.113.202/Templates/Default/login.aspx
http://panel.greatlakegaming.net/Templates/Default/login.asp x
http://69.90.113.202/Templates/Default/login.aspx
with this line:
http://68.183.95.26/Templates/Default/login.aspx
so it looks like this
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" language="JavaScript">
function ActionDeterminator()
{
if(document.login.location [0].checke d == true) {
document.login.action = 'http://69.90.113.202/Templates/Default/login.aspx';
}
if(document.login.location [1].checke d == true) {
document.login.action = 'http://68.183.95.26/Templates/Default/login.aspx';
}
}
</script>
</head>
<body>
<form name="login" method="POST" action="http://68.183.95.26/Templates/Default/login.aspx">
<table border="0" align="center" id="table1">
<tr>
<td><strong>User:</strong> </td>
<td><input type="text" name="USERID" size="20"></td>
</tr>
<tr>
<td height="27"><strong>Passwo rd</strong >:</td>
<td><input type="password" name="PASSWORD"
size="20"></td>
</tr>
<tr>
<td height="59" valign="top"><strong>Locat ion:</stro ng></td>
<td valign="middle">
<input name="location" type="radio" checked onclick="ActionDeterminato r();">
Chicago<br> <input type="radio" name="location" checked onclick="ActionDeterminato r();">
New York<br>
</td>
</tr>
</table> <p> </p>
<p align="center">
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset"
name="B2">
</form>
</body>
</html>
open notepad, then save as something.html
now open that up with your browser, it should have a login page, if you enter invalid entry, it will go to your login page and say invaild, if you enter a valid password/username you should get logged in. If that works then all you have to do is edit your main page: www.stealthservers.net - i think you have it as an .aspx page, anyway look where it has the username and password passing to page: http://68.183.95.26/Templates/Default/login.aspx
there is your problem and the html page you just made has the answer hidden within it.
look around
<form name="login" method="POST" action="http://68.183.95.26/Templates/Default/login.aspx">
http://69.90.113.202/Templates/Default/login.aspx
http://panel.greatlakegaming.net/Templates/Default/login.asp x
http://69.90.113.202/Templates/Default/login.aspx
with this line:
http://68.183.95.26/Templates/Default/login.aspx
so it looks like this
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" language="JavaScript">
function ActionDeterminator()
{
if(document.login.location
document.login.action = 'http://69.90.113.202/Templates/Default/login.aspx';
}
if(document.login.location
document.login.action = 'http://68.183.95.26/Templates/Default/login.aspx';
}
}
</script>
</head>
<body>
<form name="login" method="POST" action="http://68.183.95.26/Templates/Default/login.aspx">
<table border="0" align="center" id="table1">
<tr>
<td><strong>User:</strong>
<td><input type="text" name="USERID" size="20"></td>
</tr>
<tr>
<td height="27"><strong>Passwo
<td><input type="password" name="PASSWORD"
size="20"></td>
</tr>
<tr>
<td height="59" valign="top"><strong>Locat
<td valign="middle">
<input name="location" type="radio" checked onclick="ActionDeterminato
Chicago<br> <input type="radio" name="location" checked onclick="ActionDeterminato
New York<br>
</td>
</tr>
</table> <p> </p>
<p align="center">
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset"
name="B2">
</form>
</body>
</html>
open notepad, then save as something.html
now open that up with your browser, it should have a login page, if you enter invalid entry, it will go to your login page and say invaild, if you enter a valid password/username you should get logged in. If that works then all you have to do is edit your main page: www.stealthservers.net - i think you have it as an .aspx page, anyway look where it has the username and password passing to page: http://68.183.95.26/Templates/Default/login.aspx
there is your problem and the html page you just made has the answer hidden within it.
look around
<form name="login" method="POST" action="http://68.183.95.26/Templates/Default/login.aspx">
so your login.aspx page is fine, its just your main page isn't passing the username and password variables to your aspx page correctly
ASKER
Ok, Thanks compuken. I got that far, but was really trying to incorporate that into my current panel on my home page. I had this coded for me, so I don't understand most of it .
I want to incorporate that code into the panel that I already have on my home page.
echo"<option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option>";
For that option I would like it to login here: http://209.213.120.8/Templates/Default/login.aspx
Tha code was written for soeone else, so I do not need the option to select a location.
If you could provide me any details on how I would do this, I would greatly appreciate it
I want to incorporate that code into the panel that I already have on my home page.
echo"<option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option>";
For that option I would like it to login here: http://209.213.120.8/Templates/Default/login.aspx
Tha code was written for soeone else, so I do not need the option to select a location.
If you could provide me any details on how I would do this, I would greatly appreciate it
Ok i took a look at your index.php page source (well the html rendering)
so go into your Main page index.php (I think is what you have)
Backup file before continuing.
and near the bottom you should see <Form> code code code </form>
and try cutting out <form name ="form .... </form> and all inbetween and pasting this:
<form name="form2" method="post" action="http://209.213.120.8/Templates/Default/login.aspx/">
<input type="hidden" name="op" value="login">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<tr>
<td valign='top'>
<table cellspacing='0' cellpadding='0' align='center' width='841'>
<tr>
<td>
<img src='images/icon_gleft.gif '>
</td>
<td class='gcontent' width='823'>
Username: <input type="text" name="username" value="" maxlength="50" size="15">
Password: <input type="password" name="password" size="15" value="" maxlength="50">
Login To:<select onchange="document.form2.a ction=this [selectedI ndex].valu e;" name="site"><option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option><option value='index.php?page=acco unt&accoun t=login2'> Client Panel</option><option value='http://stealthservers.net/billing/index.php'>Modern Bill</option></select> </input>
<input type='submit' value='Submit' name='ButtonLogin'>
</td>
<td>
<img src='images/icon_gright.gi f'>
</td>
</tr>
</table>
</td>
</tr>
</form>
so go into your Main page index.php (I think is what you have)
Backup file before continuing.
and near the bottom you should see <Form> code code code </form>
and try cutting out <form name ="form .... </form> and all inbetween and pasting this:
<form name="form2" method="post" action="http://209.213.120.8/Templates/Default/login.aspx/">
<input type="hidden" name="op" value="login">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<tr>
<td valign='top'>
<table cellspacing='0' cellpadding='0' align='center' width='841'>
<tr>
<td>
<img src='images/icon_gleft.gif
</td>
<td class='gcontent' width='823'>
Username: <input type="text" name="username" value="" maxlength="50" size="15">
Password: <input type="password" name="password" size="15" value="" maxlength="50">
Login To:<select onchange="document.form2.a
<input type='submit' value='Submit' name='ButtonLogin'>
</td>
<td>
<img src='images/icon_gright.gi
</td>
</tr>
</table>
</td>
</tr>
</form>
oh and if you want to change the destination of TCAdmin Panel from
http://68.183.95.26/Templates/Default/login.aspx
to
http://209.213.120.8/Templates/Default/login.aspx
just change the 68.183.95.26 to 209.213.120.8
http://68.183.95.26/Templates/Default/login.aspx
to
http://209.213.120.8/Templates/Default/login.aspx
just change the 68.183.95.26 to 209.213.120.8
ASKER
Now I get this error when I try to access my website:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mindless/public_html /index.php on line 814
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mindless/public_html
ASKER
However, I just posted that form into notepad, and I used it to login,and it worked like a charm
ASKER
Sorry to triple post, here is my exact current code. Of this, what would I delete and what would I leave:
---------------
<tr><td height='10'></td></tr><for m name=\"form2\" method=\"post\" action=\"http://209.213.120.8/Templates/Default/login.aspx/\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"hidden\" name=\"__EVENTTARGET\" value=\"\" /><input type=\"hidden\" name=\"__EVENTARGUMENT\" value=\"\" /><input type=\"hidden\" name=\"__VIEWSTATE\" value=\"dDwtMTY2NTA2NTgwNj t0PDtsPGk8 MD47PjtsPH Q8O2w8aTwz PjtpPDQ+O2 k8MTA+O2k8 MTM+Oz47bD x0PHA8O3A8 bDxzcmM7c3 R5bGU7Pjts PEltYWdlcy 9NZW51SWNv bnMvc3BhY2 VyLnBuZzt3 aWR0aDo2NF w7IGhlaWdo dDo2NFw7IG ZpbHRlcjog cHJvZ2lkOk RYSW1hZ2VU cmFuc2Zvcm 0uTWljcm9z b2Z0LkFscG hhSW1hZ2VM b2FkZXIoc3 JjPScvVGVt cGxhdGVzL0 RlZmF1bHQv SW1hZ2VzL0 1lbnVJY29u cy9Vc2VyLn BuZycsIHNp emluZ01ldG hvZD1zY2Fs ZSlcOzs+Pj 47Oz47dDxw PHA8bDxUZX h0Oz47bDxX ZWxjb21lIH RvIFRDQWRt aW47Pj47Pj s7Pjt0PHQ8 O3A8bDxpPD A+Oz47bDxw PERlZmF1bH Q7RGVmYXVs dD47Pj47bD xpPDA+Oz4+ Ozs+O3Q8cD xwPGw8Q3Nz Q2xhc3M7Xy FTQjs+O2w8 YnV0dG9uRm 9yd2FyZDtp PDI+Oz4+O3 A8bDxvbkNs aWNrOz47bD xyZXR1cm4g RGlzYWJsZU 9uU3VibWl0 KHRoaXMsIC dCdXR0b25M b2dpbl9Qcm 9jZXNzaW5n JylcOzs+Pj 47Oz47Pj47 Pj47bDxDaG Vja0JveFJl bWVtYmVyTW U7Pj5DsE3b 6SOY6CrDmw mzfPq8UADF nQ==\" /><tr><td valign='top'><table cellspacing='0' cellpadding='0' align='center' width='841'><tr><td><img src='images/icon_gleft.gif '></td><td class='gcontent' width='823'>";
if($post_username=="" || $post_username!="$check_ac count_post _username" || $post_password!="$check_ac count_post _password" || $page!="account" && $account!="login"){
echo"Username: <input type=\"text\" name=\"username\" value=\"\" maxlength=\"50\" size=\"15\"> Password: <input type=\"password\" name=\"password\" size=\"15\" value=\"\" maxlength=\"50\"> Login To: <select onchange=\"document.form2. action=thi s[selected Index].val ue;\" name=\"site\">";
echo"<option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option>";
-------------------------- ---------
Also if you would be willing, I could send you the index.php via email. If not, I understand. Anyways thanks for the continued help. I really appreciate it. Well let me know
---------------
<tr><td height='10'></td></tr><for
if($post_username=="" || $post_username!="$check_ac
echo"Username: <input type=\"text\" name=\"username\" value=\"\" maxlength=\"50\" size=\"15\"> Password: <input type=\"password\" name=\"password\" size=\"15\" value=\"\" maxlength=\"50\"> Login To: <select onchange=\"document.form2.
echo"<option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option>";
--------------------------
Also if you would be willing, I could send you the index.php via email. If not, I understand. Anyways thanks for the continued help. I really appreciate it. Well let me know
I could fix it better with the php file, I put my email in my profile,
ASKER
Thank you very much, I appreciate it. Email is sent
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
worked perfectly.....thank you so much!
Saved me a lot of trouble
I truly appreciate it
Regards, Brad
Saved me a lot of trouble
I truly appreciate it
Regards, Brad
well you still have to change the one http://68.183.95.26/Templates/Default/login.aspx to http://209.213.120.8/Templates/Default/login.aspx
oh and if you enter wrong password it messes it up its because of the / after login.aspx remove the / and you should be fine
oh and if you enter wrong password it messes it up its because of the / after login.aspx remove the / and you should be fine
ASKER
Great, 100% functioning now!
Thanks once again
Regards, Brad
Thanks once again
Regards, Brad
Thanks, happy to have helped, I know how fustrating non working websites are.