Solved

Server Error in '/' Application Need Help

Posted on 2006-06-26
17
343 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:mindlessacts
17 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 16983295
is your directory configured as an application directory?
0
 
LVL 1

Expert Comment

by:MikeK70
ID: 16984328
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?
0
 
LVL 2

Expert Comment

by:compuken
ID: 16987722
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">
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:compuken
ID: 16987729
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
0
 

Author Comment

by:mindlessacts
ID: 16987902
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
0
 
LVL 2

Expert Comment

by:compuken
ID: 16992336
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>
0
 
LVL 2

Expert Comment

by:compuken
ID: 16992709
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
0
 

Author Comment

by:mindlessacts
ID: 16992905
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
0
 

Author Comment

by:mindlessacts
ID: 16992930
However, I just posted that form into notepad, and I used it to login,and it worked like a charm
0
 

Author Comment

by:mindlessacts
ID: 16992960
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
0
 
LVL 2

Expert Comment

by:compuken
ID: 16993066
I could fix it better with the php file, I put my email in my profile,
0
 

Author Comment

by:mindlessacts
ID: 16993274
Thank you very much, I appreciate it. Email is sent
0
 
LVL 2

Accepted Solution

by:
compuken earned 500 total points
ID: 16993483
ok found the line that was the cause
remove this
<input type=\"hidden\" name=\"__VIEWSTATE\" value=\"dDwtMTY2NTA2NTgwNjt0PDtsPGk8MD47PjtsPHQ8O2w8aTwzPjtpPDQ+O2k8MTA+O2k8MTM+Oz47bDx0PHA8O3A8bDxzcmM7c3R5bGU7PjtsPEltYWdlcy9NZW51SWNvbnMvc3BhY2VyLnBuZzt3aWR0aDo2NFw7IGhlaWdodDo2NFw7IGZpbHRlcjogcHJvZ2lkOkRYSW1hZ2VUcmFuc2Zvcm0uTWljcm9zb2Z0LkFscGhhSW1hZ2VMb2FkZXIoc3JjPScvVGVtcGxhdGVzL0RlZmF1bHQvSW1hZ2VzL01lbnVJY29ucy9Vc2VyLnBuZycsIHNpemluZ01ldGhvZD1zY2FsZSlcOzs+Pj47Oz47dDxwPHA8bDxUZXh0Oz47bDxXZWxjb21lIHRvIFRDQWRtaW47Pj47Pjs7Pjt0PHQ8O3A8bDxpPDA+Oz47bDxwPERlZmF1bHQ7RGVmYXVsdD47Pj47bDxpPDA+Oz4+Ozs+O3Q8cDxwPGw8Q3NzQ2xhc3M7XyFTQjs+O2w8YnV0dG9uRm9yd2FyZDtpPDI+Oz4+O3A8bDxvbkNsaWNrOz47bDxyZXR1cm4gRGlzYWJsZU9uU3VibWl0KHRoaXMsICdCdXR0b25Mb2dpbl9Qcm9jZXNzaW5nJylcOzs+Pj47Oz47Pj47Pj47bDxDaGVja0JveFJlbWVtYmVyTWU7Pj5DsE3b6SOY6CrDmwmzfPq8UADFnQ==\" />

let me know if that fixes it.
0
 

Author Comment

by:mindlessacts
ID: 16993550
worked perfectly.....thank you so much!

Saved me a lot of trouble

I truly appreciate it

Regards, Brad
0
 
LVL 2

Expert Comment

by:compuken
ID: 16993593
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
0
 

Author Comment

by:mindlessacts
ID: 16993688
Great, 100% functioning now!

Thanks once again

Regards, Brad
0
 
LVL 2

Expert Comment

by:compuken
ID: 16993722
Thanks, happy to have helped, I know how fustrating non working websites are.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question