Tags Posts tagged with "error"



Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 106482 bytes) in…

I was playing with new WordPress plugin. The plugin does not have any issue. However, I faced above issue when I tried to publish a new post. Hmm… Seem like the default 32M WordPress limit was exceeded with this new plugin. How to fix this “Fatal error: Allowed memory size of 33554432 bytes exhausted” issue?

Simple… Just edit your wp-config.php to include the line below:

define(‘WP_MEMORY_LIMIT’, ’64M’);


Do you know to generate error information to Windows Event Log? Most of the Windows application will output error information to Windows Event Logs if there are issues in that application. How do we do that in C#?

We need to use System.Diagnostics namespace.

Codes to generate information to output to Windows Event Logs

EventLog myLog = new EventLog();
myLog.Source = “YourApplication”;
myLog.WriteEntry(“Error Description”, EventLogEntryType.Error);

Enjoy coding… ;)


System.Configuration.ConfigurationErrorsException: Could not load file or assembly ‘Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.

Do you ever see this problem when you try to load ASP.NET web application? Well, based on the error code. It should have something related to ReportViewer. It seem like the ReportViewer component is not found.

I don’t have the problem during development at my development server. However, I faced this problem when I deploy to another machine. Why is this happening?

Here is the solution…

  • Get the required files from your development server – C:\Program Files\Microsoft Visual Studio 8\ReportViewer (default path for Visual Studio 2005).
  • Copy Microsoft.ReportViewer.Common.dll, Microsoft.ReportViewer.WebForms.dll, Microsoft.ReportViewer.WebForms.xml, Microsoft.ReportViewer.WinForms.dll and Microsoft.ReportViewer.WinForms.xml.
  • Paste it at your web application bin folder.

This should do the trick. :D


Do you get Parser Error Message: Unrecognized attribute ‘xmlns’ when you try to deploy web application? Line 2: <configuration xmlns=”http://schemas.microsoft.com/.NetConfiguration/v2.0″></configuration> is red in colour.

Well, it happens all the time when I deploy ASP.NET 2.0 web application on a server with both ASP.NET 1.1 and 2.0 installed. What you need to do? By selecting the correct ASP.NET version at Internet Information Services (IIS) will solve the problem.

  • Right click on your web project and select properties.
  • Select ASP.NET tab.
  • Choose the correct ASP.NET version – 2.0 for this case.
  • That’s all. :D