Archives for Tech Solutions - Page 3
log4net.Config.XmlConfigurator.Configure() taking too much time
Hi All, Recently, I came across a strange issue with my log4net configuration. When I run my application it's taking almost 15 to 30 seconds at following statement and it…
How to secure your entire MVC application with “Authorize” attribute ?
Scenario: If you would like to secure your admin pages, you would add “Authorize” attribute for all your admin controllers. However, you might get a situation like; you need to…
404 Error encountered while cloning the remote GitHub repository
Error Message: Error encountered while cloning the remote repository: Response status code does not indicate success: 404 (Not Found). You will get this error message when you are trying to clone…
Problem with ASP.NET using MySQL Connecting through ODBC Driver in some Hosting Servers
Recently I hosted one of my application which is using MySQL as backend and I decided to use MySQL .NET connector to access the MySQL server. I hosted one of the…
How to check if an appSettings key exists or not in web.config?
Problem Statement There might be a chance of missing the appSettings Key and it leads to an runtime exception when system doesn't found particular Key. Solution For this we have…
Issue: The length of the string exceeds the value set on the maxJsonLength property
Problem Statement Many people had faced with their MVC Applications with the following issue. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the…