Tagged: Deploy, IIS, Windows Server
- This topic has 5 replies, 2 voices, and was last updated 1 year, 7 months ago by Eben Monney.
-
AuthorPosts
-
April 26, 2023 at 7:05 pm #53594
I’m not sure how for deploying this application on a Windows server. Could someone please point me in the right direction?
April 28, 2023 at 12:34 pm #53609Hello Arun,
You deploy QuickApp in the same way you’d deploy any other asp.net core application (currently at .net 7).
See this Microsoft Tutorial for how to achieve this: Publish an ASP.NET Core app to IIS
April 28, 2023 at 2:25 pm #53611Thanks for your immediate response,
When I login and click on the settings button, I receive a 401 error.It works fine when run through Visual Studio, but not when deployed in IIS (on a local machine).
Many comments mentioned to change the Application Url and SSL port. I tried altering it, but it didn’t work.
April 29, 2023 at 2:36 am #53624Hello Arun,
Make sure the SSL certificate you’re using in IIS is from a trusted certificate authority. If you’re using a self signed certificate make sure it’s trusted.
Also check the “Logs” folder for more details on the error. Or attach the latest logs here for further assistance.
April 29, 2023 at 5:18 am #53631thanks again.
this is my error log
2023-04-29T09:57:45.5678011+05:30 80000f03-0004-fd00-b63f-84710c7967bb [ERR] Exception occurred while processing message. (d37e9c4d) System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'. at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() 2023-04-29T09:57:45.5684962+05:30 80000353-0004-fa00-b63f-84710c7967bb [ERR] Exception occurred while processing message. (d37e9c4d) System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'. ---> System.IO.IOException: IDX20804: Unable to retrieve document from: 'System.String'. ---> System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:5000) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel) --- End of inner exception stack trace --- at Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(String address, CancellationToken cancel) at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel) at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel) --- End of inner exception stack trace --- at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.AuthenticateAsync()
April 30, 2023 at 10:43 am #53649Hello Arun,
The logs you posted do not contain the relevant entries.- Make sure the certificate from IIS is from a trusted certificate authority or is added to the Trusted Root Certificate Store. This is a common cause for the error you’ve described
- If the above does not resolve your issue configure the application with the appropriate LogLevel and reproduce the error you’ve described so the relevant entries gets written to the logs
Configure LogLevel from appsettings.json file:
"LogLevel": { "Default": "Debug", "Microsoft": "Debug", "Microsoft.Hosting.Lifetime": "Debug" }
-
AuthorPosts
- You must be logged in to reply to this topic.