Showing results for 
Show  only  | Search instead for 
Did you mean: 

RefreshCacheError - The remote server returned an error: (503) Server Unavailable.

We're seeing quite a few of these errors during the work week being generated:

Error Occured during refresh of MVC cache : The remote server returned an error: (503) Server Unavailable. at System.Net.HttpWebRequest.GetResponse()
at AppPortal.Business.SMXCache.Remove(String key)


Any idea on what these may be related to?



(1) Reply
By Level 12 Flexeran
Level 12 Flexeran

    Not sure what might be causing this.. When you save the settings in App Portal, and make changes to catalog items, App Portal will attempt to refresh it's own cache.. Apparently this is failing.. Hard to say if this is consistent, or intermittent.. Let's try a quick test.. Try saving your settings (you don't have to make a change), and also try saving a catalog item (again, no need to make a change).  After doing this, look in the IIS log. you will see something similar to the following if the refresh is successful.

2020-05-05 13:17:20 ::1 GET /apm/Home/RefreshCache referenceId=AppSettings 80 - ::1 - - 200 0 0 32959

OR (in the case of a catalog item save)

2020-05-05 13:23:21 ::1 GET /apm/Home/RefreshCache referenceId=dtPackageCategory 80 - ::1 - - 200 0 0 70

in your case, I'd expect to see a 500 error. Can you post the lines from your IIS logs which pertain to refreshCache?

I'd also be curious to know what happens if you manually try to refresh the cache in a browser session, using the following:


If your App Portal server does not have a https binding, don't bother with the https URL's. One other thing.. Verify that the Site DNS Address setting under settings->website is correct, as I "believe" that this is used for the refreshCache..