I'm new to Blazor.
I'm hosting a Blazor Server app on Window 2016 machine(IIS). If I leave the app hanging for a long time on the browser, then it shows this error message 'An error has occurred. This application may no longer respond until reloaded. Reload'
How can fix this issue? How can I make the app reload if the session times out?
Related
After upgrading an application from .NET Core 1.0 to 2.1, I am receiving the following error when I try to debug it with IIS Express:
Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server request failed with status code 502, Bad Gateway.
However, this only happens every second time I launch the application. Otherwise it works just fine if I just launch it again.
This creates a mild nuisance to my debugging process, as I constantly have to keep closing the error windows popping up.
The full response shows some additional info:
HTTP Error 502.3 - Bad Gateway
The specified CGI application encountered an error and the server terminated the process.
And the error code "0x80072efe" is shown.
Logging is enabled in web.config, but the crashing launches are not shown at logs at all. I have also tried looking Event Viewer for additional information, but I have not found anything.
The only fix for this I have found so far is to set Kestrel use libuv instead of sockets, but I have no idea why it works. Does anyone have any idea how to fix this?
I encountered the same problem after I upgraded, regardless of what I did it would always show the 502 error on the second load. It appears this problem was introduced in ASP.NET Core 2.1. I tracked it down to the asp-prerender-module tag in my view. Remove the prerender and it goes away.
I was able to fix the problem and keep my prerendering by upgrading to ASP.NET Core 2.2.
I have an odd problem. My Web-app is not available on every 10th call or so, if i click refresh its again available.
If i keep hitting the refresh button, sometimes it shows me again that my Page is not Available. I'm getting HTTP Status 404.
Does anyone know where the problem is ?
There wasn't a error with my Code. I deleted the Web-apps from "work/cathalina/localhost" and restarted Tomcat and now everything is working fine.
I just installed Worklight 6.1 Application Center (running on WebSphere 8.5.5.1). When I load up the "Application Center" the page does a non-stop reloading/refreshing of the screen. I've tried Chrome and Internet Explorer. Has anyone seen this and know what's causing it?
Ok so figured it out. Was strange. After the install I opened up the Worklight application center from the server and remotely. It went right into the web app without a login. On the top right it says "unknown user sign out", but I couldn't click on sign out. I guess it somehow had me logged in after install but not really. After awhile I guess it finally timed out maybe, because eventually I loaded it and was at a login prompt and on login it worked fine.
So if you have this problem, it's because you're not really logged in. Possibly restart the service or wait till it times out.
Or go to the /appcenterconsole/login.html directly to login.
I have as ASP.Net 4.0 application that I added a custom route table to in Global.asax. It was working fine for a while. I needed to change one of the routes to point to a new webpage and I did so in the route table but when I run the app - it still navigates to the old page. So I have been debugging to try and discover the issue and I have disovered two very strange things:
1) The code in Global.asax code is no longer firing. I set a breakpoint in Application_Start and then stopped the developement web serveer (VS2010) so that the app would have to restart and then ran the app - it never gets hit.
2) Even though the code does not fire - the routes are still there (pointing to the old page) - being cached somewhere?? I even rebooted the dev box but they are still there...
I scowered the app (team project) for any header files which can over-ride Global.asax and there are none. I don't know what to try next - any ideas?
Some new info - after googling around some more.
Stopped vs web server
Excluded Global.asax from project (Original code without changeing
rout to point to new page).
Rebuilt application.
Ran application and now all the routes are gone - cannot navigate to
any routed url's in app.
Stopped vs web server again.
Included Global.asax back into app.
Build again
Run again and now hits breakpoint in Application_Startup.
Stopped vs web server again
Made code change in route table to point to new page.
Excluded Global again
Built app again
Ran app again - routes gone.
Stopped vs web server again
Included Global again
Built app again
Now - breakpoiont not hit again and old route is back
AM I going crazy?
Using the Silverlight 4 WCF RIA services works just fine via web page. After installing it as an Out Of Browser application, there is a blank screen then an error comes up saying "Load operation failed for query 'GetUser'. The HTTP request to 'http://reports.mywebsite.com/Reports/ClientBin/Reports-Web-AuthenticationService.svc/binary/GetUser' has exceed the allotted timeout..." Using the SqlMembershipProvider with userid/password in the database connection string - using Forms Authenication.
Clicking 'OK' and then the login screen comes up and everything's normal thereafter.
Kinda odd that the timeout happened and then everything's fine. What can I do to prevent that from happening?
Thanks!
This is likely due to your RootVisual not being set to something. See my post here that addresses this issue:
http://blog.virtual-olympus.com/blog/post/2011/04/10/Silverlight-4-Out-of-Browser%E2%80%93Windows-Authentication-Timeout.aspx