Link to home
Start Free TrialLog in
Avatar of mindlessacts
mindlessactsFlag for United States of America

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><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=\"\" /><input type=\"hidden\" name=\"__VIEWSTATE\" value=\"dDwtMTY2NTA2NTgwNjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwzPjtpPDQ+O2k8MTA+O2k8MTM+Oz47bDx0PHA8O3A8bDxzcmM7c3R5bGU7PjtsPEltYWdlcy9NZW51SWNvbnMvc3BhY2VyLnBuZzt3aWR0aDo2NFw7IGhlaWdodDo2NFw7IGZpbHRlcjogcHJvZ2lkOkRYSW1hZ2VUcmFuc2Zvcm0uTWljcm9zb2Z0LkFscGhhSW1hZ2VMb2FkZXIoc3JjPScvVGVtcGxhdGVzL0RlZmF1bHQvSW1hZ2VzL01lbnVJY29ucy9Vc2VyLnBuZycsIHNpemluZ01ldGhvZD1zY2FsZSlcOzs+Pj47Oz47dDxwPHA8bDxUZXh0Oz47bDxXZWxjb21lIHRvIFRDQWRtaW47Pj47Pjs7Pjt0PHQ8O3A8bDxpPDA+Oz47bDxwPERlZmF1bHQ7RGVmYXVsdD47Pj47bDxpPDA+Oz4+Ozs+O3Q8cDxwPGw8Q3NzQ2xhc3M7XyFTQjs+O2w8YnV0dG9uRm9yd2FyZDtpPDI+Oz4+O3A8bDxvbkNsaWNrOz47bDxyZXR1cm4gRGlzYWJsZU9uU3VibWl0KHRoaXMsICdCdXR0b25Mb2dpbl9Qcm9jZXNzaW5nJylcOzs+Pj47Oz47Pj47Pj47bDxDaGVja0JveFJlbWVtYmVyTWU7Pj5DsE3b6SOY6CrDmwmzfPq8UADFnQ==\" /><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_account_post_username" || $post_password!="$check_account_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=this[selectedIndex].value;\" 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].checked == true) {
document.login.action = 'http://69.90.113.202/Templates/Default/login.aspx';
}
if(document.login.location[1].checked == 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>Password</strong>:</td>
<td><input type="password" name="PASSWORD"
size="20"></td>
</tr>
<tr>
<td height="59" valign="top"><strong>Location:</strong></td>
<td valign="middle">
<input name="location" type="radio" checked onclick="ActionDeterminator();">
Chicago<br> <input type="radio" name="location" checked onclick="ActionDeterminator();">
New York<br>
</td>
</tr>
</table> <p>&nbsp;</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
Avatar of YZlat
YZlat
Flag of United States of America image

is your directory configured as an application directory?
Avatar of MikeK70
MikeK70

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].checked == true) {
document.login.action = 'http://69.90.113.202/Templates/Default/login.aspx';
}
if(document.login.location[1].checked == 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>Password</strong>:</td>
<td><input type="password" name="PASSWORD"
size="20"></td>
</tr>
<tr>
<td height="59" valign="top"><strong>Location:</strong></td>
<td valign="middle">
<input name="location" type="radio" checked onclick="ActionDeterminator();">
Chicago<br> <input type="radio" name="location" checked onclick="ActionDeterminator();">
New York<br>
</td>
</tr>
</table> <p>&nbsp;</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
Avatar of mindlessacts

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
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.action=this[selectedIndex].value;" name="site"><option value='http://68.183.95.26/Templates/Default/login.aspx'>TCAdmin Panel</option><option value='index.php?page=account&account=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.gif'>
</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
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
However, I just posted that form into notepad, and I used it to login,and it worked like a charm
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><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=\"\" /><input type=\"hidden\" name=\"__VIEWSTATE\" value=\"dDwtMTY2NTA2NTgwNjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwzPjtpPDQ+O2k8MTA+O2k8MTM+Oz47bDx0PHA8O3A8bDxzcmM7c3R5bGU7PjtsPEltYWdlcy9NZW51SWNvbnMvc3BhY2VyLnBuZzt3aWR0aDo2NFw7IGhlaWdodDo2NFw7IGZpbHRlcjogcHJvZ2lkOkRYSW1hZ2VUcmFuc2Zvcm0uTWljcm9zb2Z0LkFscGhhSW1hZ2VMb2FkZXIoc3JjPScvVGVtcGxhdGVzL0RlZmF1bHQvSW1hZ2VzL01lbnVJY29ucy9Vc2VyLnBuZycsIHNpemluZ01ldGhvZD1zY2FsZSlcOzs+Pj47Oz47dDxwPHA8bDxUZXh0Oz47bDxXZWxjb21lIHRvIFRDQWRtaW47Pj47Pjs7Pjt0PHQ8O3A8bDxpPDA+Oz47bDxwPERlZmF1bHQ7RGVmYXVsdD47Pj47bDxpPDA+Oz4+Ozs+O3Q8cDxwPGw8Q3NzQ2xhc3M7XyFTQjs+O2w8YnV0dG9uRm9yd2FyZDtpPDI+Oz4+O3A8bDxvbkNsaWNrOz47bDxyZXR1cm4gRGlzYWJsZU9uU3VibWl0KHRoaXMsICdCdXR0b25Mb2dpbl9Qcm9jZXNzaW5nJylcOzs+Pj47Oz47Pj47Pj47bDxDaGVja0JveFJlbWVtYmVyTWU7Pj5DsE3b6SOY6CrDmwmzfPq8UADFnQ==\" /><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_account_post_username" || $post_password!="$check_account_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=this[selectedIndex].value;\" 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
I could fix it better with the php file, I put my email in my profile,
Thank you very much, I appreciate it. Email is sent
ASKER CERTIFIED SOLUTION
Avatar of compuken
compuken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
worked perfectly.....thank you so much!

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
Great, 100% functioning now!

Thanks once again

Regards, Brad
Thanks, happy to have helped, I know how fustrating non working websites are.