当我在azure中使用sql数据库部署我的django应用程序时,它向我显示了The page cannot be displayed because an internal server error has occurred。
但是当我在没有sql数据库的情况下部署它时,它工作得很好。有什么问题吗?
错误日志
最可能的原因是:
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depen
之前,我使用下面的代码获得带有asp.net的客户端ip,但是在我转到VDS之后,这个函数开始只返回子网掩码,即178.18.198.1或178.18.198.2。有人能帮我解决这个问题吗?
Private Function GetIPAddress() As String
Dim sIPAddress As String = Nothing
sIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If String.IsNullOrEmpty(sIPAddress) Then
我已经在一个外部服务器(IIS7)上部署了一个REST服务。当我从Dev服务器上的VS启动服务时,它工作得很好。但是在服务器上我得到:
Request Error, The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service.
如何获取有关此错误的更多详细信息?我已经查看了IIS管理器中此网站的日志记录功能下配置的日志文件目录,但似乎根本没有此网站的文件。