Category - Issues and Exceptions
Results 1 - 20 of 113
02 Jun 2022 02 Jun 2022 1 Comments  12330 Views
Here Mudassar Khan has explained how to solve the issue when Gmail server denies POP3 access for the given Username and Password.
01 Jun 2022 01 Jun 2022 3 Comments  19100 Views
Here Mudassar Khan has explained how to resolve the error: The server did not respond with a +OK response. The response was: "-ERR [AUTH] Username and password not accepted." in ASP.Net Application when trying to access Gmail Mailbox using POP3.
01 Jun 2022 01 Jun 2022 0 Comments  2990 Views
Here Mudassar Khan has explained how to resolve the error: The server did not respond with a +OK response. The response was: "-ERR [AUTH] Application-specific password required" in ASP.Net Application when trying to access Gmail Mailbox using POP3.
10 May 2022 10 May 2022 0 Comments  9719 Views
Here Mudassar Khan has explained with an example, how to solve the error which occurs when using AntiForgery Token with jQuery AJAX in ASP.Net MVC.

The required anti-forgery form field "__RequestVerificationToken" is not present.

The above error is caused when AntiForgery Token is not correctly passed to the Controller when with jQuery AJAX in ASP.Net MVC.
27 Apr 2022 27 Apr 2022 0 Comments  11732 Views
Here Mudassar Khan has explained how to resolve the following error in ASP.Net MVC.

The required anti-forgery cookie "__RequestVerificationToken" is not present.

The above error occurs when the ValidateAntiForgeryToken attribute is added but the anti-forgery cookie is missing.
02 Feb 2022 02 Feb 2022 0 Comments  11556 Views
Here Mudassar Khan has explained how to solve the problem: This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet in ASP.Net MVC Razor.
16 Jul 2021 16 Jul 2021 0 Comments  4567 Views
Here Mudassar Ahmed Khan has explained how to solve the following error in ASP.Net application when hosted on IIS server.

HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.

The above error occurs when one tries to upload a file larger than the maximum allowed limit.
06 May 2021 06 May 2021 0 Comments  29351 Views
Here Mudassar Ahmed Khan has explained with an example, how to return Exception Error Message when using JSON and AJAX in ASP.Net MVC Razor.

This article will illustrate how to return the Exception Error Message using JSON from the Controller when calling the Controller using jQuery AJAX in ASP.Net MVC Razor.
20 Apr 2021 20 Apr 2021 0 Comments  20775 Views
Here Mudassar Ahmed Khan has explained with an example, how to prevent / avoid / stop Form Resubmission (Resubmit) when Refresh button clicked in Browser in ASP.Net MVC Razor.

The problem is that when browser refresh button or F5 or CTRL + F5 function keys are pressed, the last executed event is again executed.

For example, if you have a Form submission on Button click and after clicking button, page is refreshed by the user then the Form is resubmitted and again same Action method gets called.
08 Feb 2021 08 Feb 2021 1 Comments  55629 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class along with SSL3 Security Protocol in C# and VB.Net.

Error: The client and server cannot communicate, because they do not possess a common algorithm

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service and hence there is mismatch in the cryptographic algorithm.
08 Feb 2021 08 Feb 2021 0 Comments  43542 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the error when using DownloadString method of the .Net WebClient class in C# and VB.Net.
Error: Could not create SSL/TLS secure channel

The above error is caused when TLS 1.2 protocol is not used before calling an API or Service which uses TLS 1.2 protocol for establishing secure channel for communication.
05 Feb 2021 05 Feb 2021 1 Comments  20250 Views
Here Mudassar Ahmed Khan has explained with an example, how to use TLS1.2 in projects using .Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 with C# and VB.Net.

But, the support for TLS 1.2 is available in .Net 4.5 onwards and hence this article will demonstrate how to use it in projects other Frameworks such as Net 2.0, .Net 3.0, .Net 3.5 and .Net 4.0 without upgrading them.
09 Oct 2020 09 Oct 2020 0 Comments  29622 Views
Here Mudassar Ahmed Khan has explained how to solve the following error in ASP.Net Core.

HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.
14 Jul 2020 14 Jul 2020 0 Comments  32777 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the issue of Lowercase JSON Property Names in ASP.Net Core MVC.

In order to solve this problem, the default ContractResolver needs to be replaced with the ContractResolver of Newtonsoft JSON Serializer in ASP.Net Core MVC.
16 Mar 2020 16 Mar 2020 0 Comments  24901 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the problem of Print and Export Button of Toolbar not working with Crystal Report Viewer in SAP Crystal Reports in ASP.Net.
25 Feb 2020 25 Feb 2020 0 Comments  15793 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the problem of ASP.Net Label value assigned in Client Side not appearing in PostBack.

ASP.Net Label controls do not send values to server and hence their value is lost on PostBack when set on Client Side.

To solve this issue we need to make use of Hidden Field which sends the Client Side modified value to server which can be later retrieved on PostBack in ASP.Net.
14 Feb 2020 14 Feb 2020 0 Comments  33150 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the problem i.e. IFormFile always returns NULL when used in Controller while uploading files in ASP.Net Core MVC.

There are two reasons. First the name of the IFormFile parameter and the name of HTML FileUpload element must be exact same and second that the Form element must be specified with the enctype attribute.
14 Feb 2020 03 Jan 2022 0 Comments  65101 Views
Here Mudassar Khan has explained why HttpPostedFileBase not working in ASP.Net Core and what is the alternative solution for using the functionality which is used for uploading Files in ASP.Net Core.

Microsoft has permanently removed HttpPostedFileBase class from ASP.Net Core and introduced a new interface IFormFile for uploading Files in ASP.Net Core 2.0 and ASP.Net Core 3.0.
29 Jan 2020 29 Jan 2020 0 Comments  31745 Views
Here Mudassar Ahmed Khan has explained why Server.MapPath not working in ASP.Net Core and what is the alternative solution for using the functionality in ASP.Net Core.

Microsoft has permanently removed Server.MapPath function from .Net Core and introduced a new interfaces IHostingEnvironment for .Net Core 2.0 and IWebHostEnvironment for .Net Core 3.0.
30 Sep 2019 30 Sep 2019 0 Comments  26253 Views
Here Mudassar Ahmed Khan has explained how to make solve the problem of ValidateRequest = 'false' not working in .Net 4.0 and 4.5 in ASP.Net.

ValidateRequest = 'false' is used to supress the exception: A potentially dangerous Request.Form value was detected from the client in ASP.Net and allow posting scripts and HTML content in ASP.Net.

The ValidateRequest property is a .Net 2.0 and .Net 3.5 property and hence in order to work on .Net 4.0 and .Net 4.5 an additional property is needed.
Results 1 - 20 of 113