문제

I can't figure out why I keep getting an HTTP/1.1 500 Server Error but only when using JavaScript as the server-side language. If I use VBScript it works just fine. I have other sites running on the same machine using server-side JavaScript with no problem. I can't seem to find any more information through the event viewer, the IIS logs or searching the web.

Below I have small code sample in VBScript as well as in JavaScript.

VBScript (works):

<%@ Language=VBScript %>
<% Response.Write("hello vbscript") %>

JavaScript (500 error):

<%@ Language=JavaScript %>
<% Response.Write("hello javascript"); %>

I'm sure that this a configuration problem but I can't seem to find anything even remotely pertaining to this issue.

도움이 되었습니까?

해결책

After much aging and pulling out my hair, the problem was that javascript requires 32-bit applications. If you right click on application pool in question and set "Enable 32-bit Applications" to True, everything works. As figured, it was a configuration issue but the docs and error message, or rather lack of error messages, left a lot to be desired.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top