让服务器以英语运行(必需),我们使用此global.asa示例
设置其IIS实例<script language="vbscript" runat="server">
Sub Session_OnStart
Session.LCID=1036 ' French (standard)
'Session.LCID=1033 ' English
End Sub
</script>
似乎DLL,特别是使用对象WinHttp.WinHttpRequest,以英语返回消息。下面的示例显示何时发生:
Public Function getHttpResponse(url As String)
Dim request As New WinHttpRequest
On Error GoTo errGetHttpResponse
request.Open "HEAD", url
request.Send
getHttpResponse = request.Status
Exit Function
errGetHttpResponse:
getHttpResponse = Err.Description ' <-- Right here
End Function
这是否意味着IIS没有将global.asa设置“传播”到DLL?