在经典 ASP 页面上出现内部服务器错误
我正在尝试 http 中提供的代码片段://www.bustercollings.com/source-code-samples/rss-asp-classic-source-code-example.asp 在我们的服务器中,我收到内部服务器错误。我没有收到任何其他错误。
可能是什么原因导致此错误?有人可以测试这段代码并看看它是否适合您?
我已经联系了我们公司的服务器团队人员,但他们根本没有在这方面帮助我,因为简单的 ASP 代码就可以正常工作。他们说问题出在代码上。我觉得我们的服务器中可能没有安装某些组件或其他未知原因。
有人可以帮我吗?
谢谢
I am trying the code snippet provided in http://www.bustercollings.com/source-code-samples/rss-asp-classic-source-code-example.asp in our server and am getting internal server error. I do not get any other errors.
What might be causing this error? Can someone test this code and see whether it works for you?
I have contacted the server team guys in our company and they are not at all helping me on this, as a simple ASP code works fine. They are saying that the problem is with the code. I feel there might be some components which is not installed in our server or some other unknown reason.
Can somebody please help me?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在脚本中创建两个对象。根据您使用的 Windows Server 和/或 ISS 的版本,可能不会安装这些对象(尤其是第二个)。我以前遇到过类似的问题。尝试在第二个 CreateObject() 调用中将 4.0 设为 3.0(因此它读取
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.3.0")
),这对于 2003 年或更早的服务器来说更为常见。它们的版本号最高为 6,其中一些也不是直接的 #.0 版本号,因此您可能需要进行一些测试/猜测/研究。You're creating two objects in the script. Depending on which version of Windows Server and/or ISS you're using these objects might not be installed (especially the second). I've ran into similar issues before. Trying making the 4.0 in the second CreateObject() call 3.0 (so it reads
Set xmlRSSFeed = Server.CreateObject("MSXML2.DomDocument.3.0")
) it's more common for 2003 or earlier servers. They have up to version 6, and a few of them aren't straight #.0 version numbers either, so you'll likely need to do some testing/guessing/research.试试这个,它肯定会起作用:
而不是
Try this, it will definitely work:
instead of