How to solve Error 503 Service Unavailable - asp.net

I'm have problem with 503 Service Unavailable. My project is web application and it show data from 5 function by ajax and that function interval each 6 sec and sometime i get 503 error. i use firefox browser to run my application because i have to run autoplay audio too. Have anyone i have same project like me or have the same problem. Please share your solution to fix it. Thank you so much. I don't show my code because it's work fine and i think the problem is overloaded network. If you want to see the code please tell me.

The following list could be the resolve of your problem.
.NET CLR Version & Managed Pipeline Mode
Enable 32-Bit Applications
Also you can Log errors in Application_Error method of global.config.
The Limitation of Your Web Host
complete illustration could be found in the following code.
https://www.bisend.com/blog/resolve-503-error

Related

How to troubleshoot failed API calls to .NET project running over localhost?

I have an API in a .NET project that I'm running with Visual Studio Mac (8.4.3). I run it in release mode, and it opens a browser window with localhost:5000. The browser window says "ok". However, when I try to hit endpoints in that API, it fails very quickly. When I ran this API (ie. same code) from another server and accessed it via proxy, it ran fine. For example, when I ran it on a server whose IP was 162.250.198.98 and proxied into it, I would hit an endpoint like 162.250.198.98:3000/api/user and it would work, but now when I try to run localhost:5000/api/user, either from my app or from Postman, it fails almost instantaneously. When running it in Postman, I tried what it suggested by turning off 'SSL certificate verification' in Settings, but no change.
Can anyone advise me on how to approach troubleshooting this?
Wait, so You are saying that while trying to call API on 162.250.198.98:3000/api/user You are fine but while trying to do the same thing on localhost:5000/api/user You are getting an error? Would it might be possible You have Your API configured to receive calls at 3000? :)?
No, but really - please chech it out, maybe it is that simple, I'm couting on it :).
You can change/check it in Visual Studio: main project > Properties > Debug > App URL.

MVC/iis express failed to load resource the server responded with a status of 500

I have an error when trying to run MVC application in both visual studio 2015/2017.
I know it's not the code because a it's producing the 500 status on the default template, and works fine on the servers.
http://imgur.com/a/zU7c6
The above screen shot is from chrome, and i have tried it on all of the standard browsers.
I have also tried reinstalling iis and i am still getting the same issue, and have been trying to resolve it for best part of a day. any help is appreciated.
Thanks

IISRESET windows 10 (IIS 10) Access denied

I'm just wondering, why I get error during an iisreset in my development machine.
When I execute the command in a Command Prompt some times it wokrs,sometimes it throws an Access Denied Error, and sometimes it throws a file not found exception.
If anyone finds a solution to this anoying problem, I would appreciate a hint how to get rid of it.
In the IIS I'm just hosting an .NET 4.6.1 MVC site.
This stupid error happens randomly and was very annoying especially when you place iisreset inside a script and assume it will do its thing; took me a while to figure it out. It is not related to the service being stopped as can be seen in this picture:
The only thing I use now is:
net stop W3SVC
and
net start W3SVC
Haven't had a problem since then.
I got exactly the same error time ago. Running it in German too. Take a look at this article: https://techcommunity.microsoft.com/t5/iis-support-blog/iis-reset-issue-restart-attempt-failed/ba-p/1031976
Judging from #Giorgi Nakeuri's question about the event logs. The "World Wide Web Publishing" (called only "WWW-Publishingdienst" in German) is very likely not running. You need to start it. The "Windows activity process service" fails because of the first one failing.
I think it says that he was unable to start the service, mainly due to a Problem with authorization. The solution of the problem can be provided in several different ways
1- Configuration causing the authorization error can be corrected
applicationHost.config with XML
2- This authorization can be revoked through the Windows register. Example approach here:
https://stackoverflow.com/a/21036837/914284
3- Machine configuration can be changed in accordance with this
permission. Please continue with the option that suits you :)
https://knowledge.digicert.com/solution/SO1360
i hope it will resolve
Specifying the machine name also helps in some scenarios:
iisreset %ComputerName%

A custom proxy yields Incompatible magic value 1012089682

I have a custom http proxy that one worked. I have made some changes to its authentication process. And now when I try to launch an applet I get "Incompatible magic value 1012089682 in class file ...". Regular html files are transferred without any errors.
In my other web research I found this article http://arstechnica.com/civis/viewtopic.php?t=313827 discussing an ascii vs binary transfer issue.
My problem with debugging this is that the get of the jar file doesn't show up in tamper data on the browser nor in the access log of the webserver containing the proxy, nor in my proxy error log. So I am some what baffled. any help in how to get more information to solve this would be appreciated.
The technology is antique, but the company doesn't want to pay for upgrades. The proxy is an NSAPI plugin running in IWS 6 (SunOne webserver)
Thank you.
There was indeed a bug in my proxy code. I am not exactly sure what caused the symptoms described above, but fixing the code so that it didn't re-authenticate every time fixed my issue.

ReportViewer - 401: Unauthorized

I have an ASP.NET website that uses the ReportViewer control. The reporting services are on another machine on the local network. This has been working fine for over six months, but all of a sudden I'm getting the following error in my ReportViewer control:
The request failed with HTTP status 401: Unauthorized.
As far as I'm aware, nothing has changed on either of these machines, except that I installed the IIS 'URL Rewrite' module for use with another project. Could this be a factor?
Any other assistance would be appreciated.
Very odd. I ran out of ideas and just restarted the server to see if it made a difference. It did. I don't know what the problem was, but maybe this'll save someone a few hours trying to fix the same problem.

Resources