Asp.Net Custom Errors Default Redirect not working - asp.net-mvc-5

In my web.config file I added a default error redirect page,
However I get this error,
"Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated."
I tried all suggestions found on internet and did not help me.
My project: MVC 5, Angular 5, Visual studio 2017.
Thank you.

Related

www.server.com/*.aspx returns server error rather than custom error

I have updated my customerr folder to have a common error page which will be displayed for any sort of error.
www.server.com/wrongone
takes to me to the custom error page. -> Working fine
www.server.com/correctone/wrongone.aspx -> This is handled at application level, so I have no problem with this.
But when I hit www.server.com/wrongone.aspx,
It displays Server error. -> I dont want to display server error
What should I do ( at IIS Level) to redirect this to custom error page?
It depend on what status did you get. To set custom error page for .aspx file, you should set .NET error page <customError> instead of error page.
You could find it in IIS manager->site node->.NET error page and you need to add rule for your status code/error page. When you hit the error status code, the page will be redirected to your custom error page. If your status code is 500, then custom page would fail in some case.
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/hh831398(v%3Dws.11)

WKWebView delegate method error message

I am using WKWebView to load and display the content of a web site. After the app was launched and running, the delegate method -webView:didFailNavigation:withError:got called. Following is the error description (error.description) extracted from this delegate method using Xcode debugger:
Error Domain=NSURLErrorDomain Code=-999 "(null)" UserInfo={NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, _WKRecoveryAttempterErrorKey=}
I did some Google search and found that Code=-999 is caused by ErrorCancelled, meaning another request is made before the previous request is completed. So how should I fix this issue in my app? Thanks a lot in advance.

Redirect Joomla errors on Windows Azure IIS

I have a Joomla! site running on Windows Azure and all is fine.
But, everytime someone try do access something that not exist (www.domain.com/xpto) the server returns the error:
jos-Warning: exception 'RuntimeException' with message 'Unknown column 'header' in 'field list' SQL=SELECT new_url,header,published FROM xxx_redirect_links WHERE old_url = 'http://www.domain.com/xpto' LIMIT 0, 1' in
How can I redirect the user to the index everytime an error occurs?
This is a bug in Joomla, try to fix this by:
Click on the Fix button in the Extension Manager -> Database page. If
that fails, a clean installation will need to be done.
ref: https://github.com/joomla/joomla-cms/issues/5953

405 POST Method Not Allowed using asp for Crystal report file

We are moving a project from IIS6, Windows Server 2003 to Windows 7, IIS7, VS2012 now. Part of this project uses old asp files to open crystal report files. It was working fine on our old server. After I moved them to the new server. It throws me an error message: "HTTP Error 405.0 - Method Not Allowed."
We have a Report.asp file. It uses a form post method to display a crystal report file. Here is the code:
(form method="POST" action="/Reports/InfoNetOverDueDate1.rpt" target="_blank" id=frmOpenReport name=frmOpenReport>
I checked the Headers info. It only Allows GET, HEAD, OPTIONS, TRACE.
Here is what I tried. In IIS, under my Handler Mappings --> Add a Module Mapping. Request Path: .rpt; Module: ProtocolSupportModule; Verbs: GET, POST.
It doesn't throw me any error message, but it doesn't show anything either.
Anybody there can help me with this? Thanks a lot in advance.

After migration to sharepoint 2010 search result error Cannot find ContentPlaceHolder 'SPNavigation'

I am migrating MOSS 2007 portal to sahrepoint 2010. I am not doing visual uplgrade. to check search setting i typed a keyword and pressed enter anfd it threw me below error. please let me know what to do as I am completely new in this.
Do I need to add the "SPNavigaation" placeholder in my master page. I dont know what custom.master page it is refering.
Error:
Server Error in '/' Application.
Cannot find ContentPlaceHolder 'SPNavigation' in the master page '~masterurl/custom.master', verify content control's ContentPlaceHolderID attribute in the content page.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Cannot find ContentPlaceHolder 'SPNavigation' in the master page '~masterurl/custom.master', verify content control's ContentPlaceHolderID attribute in the content page.
Dear all I solved the issue by adding "
<asp:ContentPlaceHolder ID="SPNavigation" runat="server"></asp:ContentPlaceHolder>
"in my master page

Resources