我已经使用 Dropbox 在 azure 上使用 MySQL 部署了我的 nodeJs RESTFull API。在控制台上,我看到了应用程序开始列出并且数据库已连接的日志。因此,这些行来自我使用 console.log() 记录的代码;当我请求我的 API/资源时,我从服务器收到 500 ERROR 消息。我搜索了很多来解决这个问题,但我无法解决这个问题。
我正在使用来自 git hub web.config 的web.config 示例
最后一件事是从 azure 记录的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IIS Detailed Error - 500.1001 - Internal Server Error</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;}
pre{margin:0;font-size:1.4em;word-wrap:break-word;}
ul,ol{margin:10px 0 10px 5px;}
ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;word-break:break-all;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;}
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;}
legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; …Run Code Online (Sandbox Code Playgroud)