代码之家  ›  专栏  ›  技术社区  ›  XardasLord

ASP。NET Core RESTfull API宿主-500内部服务器错误

  •  0
  • XardasLord  · 技术社区  · 7 年前

    According to this topic 我正在尝试发布和主持我的。NET核心应用程序。当我尝试使用API中的GET请求检索数据时,我收到500个内部服务器错误( example.com/pets/users ). example.com/pets

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <system.webServer>
        <handlers>
          <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
        </handlers>
        <aspNetCore processPath="dotnet" arguments=".\Pets.Api.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
      </system.webServer>
    </configuration>
    

    stdout log说:

    警告:

    用户配置文件和HKLM注册表均不可用。使用临时密钥存储库。受保护的数据在以下情况下不可用: 应用程序退出。

    警告:

    使用内存存储库。密钥不会持久化到存储器中。

    托管环境:生产

    内容根路径:D:\HostingSpaces\xardaslord\example。com\wwroot\pets

    http://localhost:13556

    应用程序已启动。按Ctrl+C组合键关闭。

    到底有什么错?我检查了我的远程数据库连接,它是正确的。

    2 回复  |  直到 7 年前
        1
  •  2
  •   user9375338    7 年前

    上述解决方法 警告错误 :编辑IIS应用程序池以启用用户配置文件加载。应用程序池>高级设置>加载用户配置文件:True

        2
  •  0
  •   XardasLord    7 年前