ASP.NET Core RESTfull API hosting - 500 internal server error -


according topic i'm trying publish , host .net core application. getting 500 internal server error when try retrieve data using request api (example.com/pets/users). example.com/pets url api published.

my webconfig looks this:

<?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> 

which believe pretty ok.

stdout log says this:

warn: microsoft.extensions.dependencyinjection.dataprotectionservices[59]

neither user profile nor hklm registry available. using ephemeral key repository. protected data unavailable when application exits.

warn: microsoft.aspnetcore.dataprotection.repositories.ephemeralxmlrepository[50]

using in-memory repository. keys not persisted storage.

hosting environment: production

content root path: d:\hostingspaces\xardaslord\example.com\wwwroot\pets

now listening on: http://localhost:13556

application started. press ctrl+c shut down.

what can wrong? cheked remotely db connection , correct.

i appreciate if me here.

i fixed problem. problem published api on new created virtual directory on server. when published api on subdomain works fine.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -