Solved

Server Error in '/' Application Need Help

Posted on 2006-06-26
17
335 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
Comment Utility
is your directory configured as an application directory?
0
 
LVL 1

Expert Comment

by:MikeK70
Comment Utility
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
Comment Utility
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
 
LVL 2

Expert Comment

by:compuken
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:mindlessacts
Comment Utility
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
Comment Utility
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
Comment Utility
I could fix it better with the php file, I put my email in my profile,
0
 

Author Comment

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

Accepted Solution

by:
compuken earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Great, 100% functioning now!

Thanks once again

Regards, Brad
0
 
LVL 2

Expert Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Read about why website design really matters in today's demanding market.
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now