c# (iis mvc webapp) throw exception other than 500 - exception

Is there any possibility to throw an exception in the code of a web application which would not cause error 500 in the IIS logs?

Related

SSRS : the operation has timed out

I try to execute report viewer but does not work. So this is an error log message from ssrs log file.
ERROR:
Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.ClosingRegisteredStreamException:
An error occurred closing a registered stream. --->
Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeClientDisconnectionException:
A client has disconnected from the Report Server Web service application domain
ReportServer_MSSQLSERVER_0-4-131683910836410373.
No corrective action is required. An error code has been submitted to ASP.NET to release the connection.
The error code is 800708CA. ---> System.Runtime.InteropServices.COMException: This network connection does not exist. (Exception from HRESULT: 0x800708CA)
In the web config set the http run time as
<httpRuntime maxRequestLength="2147483647" executionTimeout = "10800"/>

JSF webApplication - glassfish server server encountered an internal error

in brief:
[Problem in glassfish Admin console when I try to Create a new JDBC Connection Pools]
can someone help me please solve this problem :
firstly, I want to develop a JSF application on Netbeans IDE 8.1
when I fill the page of creating a new JDBC Connection Pools glassfish console throws this Exception :
type : Exception report
message :Internal Server Error
description : The server encountered an internal error that prevented it from fulfilling this request.
exception :
java.lang.IllegalStateException: getOutputStream() has already been called for this response
note : The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1.1 logs.
see this pictures for more informations :
glassfish Admin console
domain.XML
I found a solution to my problem in this tutorial :
https://netbeans.org/kb/docs/javaee/javaee-gettingstarted-pf-screencast.html

JDBC exception while connecting to remote database

I have a spring project which connects to remote MySQL database and displays data from it. The app was tested in Eclipse on tomcat localhost server and there were no problems. later on, I extracted the project in .war format and uploaded it on openshift.com server, and it worked for more than 2 weeks. But suddenly, now I get this error when I open it on that server:
HTTP Status 500 - Request processing failed; nested exception is java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
type Exception report
message Request processing failed; nested exception is java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
I immediately opened the same project in Eclipse (connected to that online database) and there was no error. I extracted the app in new .war file and deleted the old one on the server and replaced it with new one. And guess what, still the same exception occurs.
So basically, I have one application, which connects to remote database, and it works fine when I run it on localhost, but suddenly does not work when I put it on some hosting server (it was working on that server for some good time which is weird).
What could have gone wrong?

Application Insights not working - socket exception

I have added Application Insights inside my windows store application and in output i have lot of lines that exception was rised.
I have ApplicationInsight message:
Application Insights Telemetry: {"ver":1,"name":"Microsoft.ApplicationInsights.PageView",.............}
Exceptions like:
A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in System.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in mscorlib.dll
A first chance exception of type 'System.TimeoutException' occurred in Microsoft.ApplicationInsights.winmd
A first chance exception of type 'System.TimeoutException' occurred in mscorlib.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
A first chance exception of type 'System.Net.InternalException' occurred in System.dll
Exception message is:
Message "An attempt was made to access a socket in a way forbidden by its access permissions 23.101.68.210:443"
I really do not know what causing this exception. I tried turn off firewall but with no success. I try develop application in VS 2013 with update 4 and machine is with Windows 2012 R2
Thanks for suggestions.
If this is on a windows store app, have you turned on the capabilities in the manifest that allow the application to make outbound network requests?
see related:
An attempt was made to access a socket in a way forbidden by its access permissions
I had the team that owns the instructions update their page here: http://azure.microsoft.com/en-us/documentation/articles/app-insights-windows-monitor-usage-crashes/, so that if you're following those instructions, it calls out specifically to check this setting. (They investigated, and it seems that windows phone silverlight is the only template that has this setting off by default now, all the current templates have network access on by default?)

wcf restful service with my windows app

We have used WCF restful service end point for Windows phone 8 App, Using HTTP request its running but sometime it throws error by showing "REMOTE SERVER RETURNED ERROR:NOT FOUND". And this error is coming very commonly with "https:" with only "http:" also this error coming but not frequently