pyotrek
asked on
500 - Internal server error. IIS 7 asp problems
Hello,
I just moved a "asp" website to the IIS7.
At first I was not even eble to get the index.asp to dispaly.
It turned out the I had IIS7 installed without asp. After correcting that I am ab;e to display index.asp, but nothing past that.
I have created a test1.asp file that is located in the root of the folder,but when trying to access http://wesitename/test1.asp I get :
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
I just moved a "asp" website to the IIS7.
At first I was not even eble to get the index.asp to dispaly.
It turned out the I had IIS7 installed without asp. After correcting that I am ab;e to display index.asp, but nothing past that.
I have created a test1.asp file that is located in the root of the folder,but when trying to access http://wesitename/test1.asp I get :
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
devlab2012:
I have applied the changes to IIS and my browser and still I am getting the same message:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
as if nothing changed - I take it - there is no problem with the test1.asp file.
Here is a code from test1.asp:
<html>
<body>
<%
document.write ("hello");
%>
</body>
</html>
I have applied the changes to IIS and my browser and still I am getting the same message:
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
as if nothing changed - I take it - there is no problem with the test1.asp file.
Here is a code from test1.asp:
<html>
<body>
<%
document.write ("hello");
%>
</body>
</html>
ASKER
carrzkiss:
I went trough the steps from :
https://www.experts-exchange.com/A_3730.html
and I have everything now setup as it is in the article above - still no change.
I went trough the steps from :
https://www.experts-exchange.com/A_3730.html
and I have everything now setup as it is in the article above - still no change.
Give this a shot.
http://internetoptimizers.com/2010/01/24/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy/
Good Luck
Carrzkiss
http://internetoptimizers.com/2010/01/24/classic-asp-using-iis7-error-handling-500-internal-server-error-godaddy/
Good Luck
Carrzkiss
You should be seeing the error below with that code:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/filename.asp, line 2
document.write ("hello");
you do not end syntax with a ; in ASP :-)
You still need to get the error to the browser
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/filename.asp, line 2
document.write ("hello");
you do not end syntax with a ; in ASP :-)
You still need to get the error to the browser
The Article is for Windows 7 and IIS7
If you are running IIS7 through Win2k8 then there is a change that needs to be made in the web.config file
So hopefully the last link I provided will help you out.
Good Luck
Carrzkiss
If you are running IIS7 through Win2k8 then there is a change that needs to be made in the web.config file
So hopefully the last link I provided will help you out.
Good Luck
Carrzkiss
to go with tobzzz
It is best to do the asp as:
<%response.write"Hello"%>
It is best to do the asp as:
<%response.write"Hello"%>
To get detailed error messages please see my screengrab for IIS7 in this question:
https://www.experts-exchange.com/questions/26133696/IIS7-Useful-Error-Messages.html
https://www.experts-exchange.com/questions/26133696/IIS7-Useful-Error-Messages.html
You are writing the javascript code and using html DOM. The correct file in ASP will be:
<html>
<body>
<%
response.write "hello"
%>
</body>
</html>
<html>
<body>
<%
response.write "hello"
%>
</body>
</html>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
carrzkiss:
yes - I have fixed the code in my test1.asp file and it seems to display correctly now - thank you.
So that confirms that my asp is working fine.
That takes me back to the original problem.
When you open index.asp you are presented with a logon page to the rest of the site.
It is connected to the SQL server and I have copied settings from the old IIS server to the ODBC settings.
I have created system DSN that passess the conectivity test.
yet when I am trying to logon I get following:
Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
/index.asp, line 15
any ideas?
yes - I have fixed the code in my test1.asp file and it seems to display correctly now - thank you.
So that confirms that my asp is working fine.
That takes me back to the original problem.
When you open index.asp you are presented with a logon page to the rest of the site.
It is connected to the SQL server and I have copied settings from the old IIS server to the ODBC settings.
I have created system DSN that passess the conectivity test.
yet when I am trying to logon I get following:
Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
/index.asp, line 15
any ideas?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@pyotrek
Since you are not new here we should not have to tell you the following.
#1: Your Question was answered somewhere before here: http:#a33985905
There for, you should have awarded points to the Qualified suggested information.
#2: In this post, http:#a33985905 you said that it was fixed and that you was getting another issue.
There for, you should have started a new Thread.
I am going to report this question in for further review, as you did not properly award points correctly.
Carrzkiss
Since you are not new here we should not have to tell you the following.
#1: Your Question was answered somewhere before here: http:#a33985905
There for, you should have awarded points to the Qualified suggested information.
#2: In this post, http:#a33985905 you said that it was fixed and that you was getting another issue.
There for, you should have started a new Thread.
I am going to report this question in for further review, as you did not properly award points correctly.
Carrzkiss
ASKER
carrzkiss:
I am not sure where I messed up with avarding points?
1. If you refer to fixing code in test1.asp than I realized where the problem was and I had fixed that myself before, I ve got any answers from the experts.
devlab2121.s answer was eventually the right one for the issue that I was facing from the start - test1.asp question was just a troubleshooting step.
2. I had setup another thread, but there was no responses, and eventually I had figured out the soultion myself - creating ODBC using SQL authentication.
Eventually (after I had my issue resolved already) I noticed the note from devlab2012 - which was correct so I awarded the points. Should I have closed the question without awarding the points?
I am not sure where I messed up with avarding points?
1. If you refer to fixing code in test1.asp than I realized where the problem was and I had fixed that myself before, I ve got any answers from the experts.
devlab2121.s answer was eventually the right one for the issue that I was facing from the start - test1.asp question was just a troubleshooting step.
2. I had setup another thread, but there was no responses, and eventually I had figured out the soultion myself - creating ODBC using SQL authentication.
Eventually (after I had my issue resolved already) I noticed the note from devlab2012 - which was correct so I awarded the points. Should I have closed the question without awarding the points?
@pyotrek: I was first to point out you needed errors to be shown in the browser, I was also first to point out your syntax was incorrect, which was clarified and expanded on by Carzkiss. I think assistant points would have been appropriate for this element. We couldn't possibly know what the end solution could be from a 500 error but together we got you to the stage where you could see the error (at which time is was the sleeping hour in Europe and I didn't see this until morning). devlab2012 should also have been awarded some points for the final stage that resolved your problem.
In summary I personally believe the points should have been split as it was a combination of people and answers that resolved your problem.
/ Tobzzz
In summary I personally believe the points should have been split as it was a combination of people and answers that resolved your problem.
/ Tobzzz
ASKER
tobzzz:
point taken - is there a way to fix it?
point taken - is there a way to fix it?
ASKER
Multiple suggestion and troubleshooting points led to final workaround by devlab2012
Please view the following Article
Setting up IIS7.5 in Windows 7 to run Classic ASP Web Sites
https://www.experts-exchange.com/A_3730.html
Carrzkiss