Thursday, November 29, 2012

Could not Load Type from Assembly

Error: Could not load type 'xxxxxx' from assembly 'AssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. This error occurs when trying to open a webpage. The project is built successfully. However, when accessing particular page, the error pops out. The error message is actually quite long. This is only part of the error message. Solution: On...
Share:

Wednesday, October 3, 2012

DatePicker Calendar Appears on Top of Page

Problem: On page load, datepicker calendar appear on top of a web page which contains datepicker textbox (either visible or hidden). This issue appears to be happening on Chrome browser. Some may experience it in Internet Explorer. Source of the problem: 1. There could be more than 1 element on the page which use the same ID. 2. Another possibility...
Share:

Monday, October 1, 2012

Skip RedirectFromLoginPage in ASP.Net

Problem: You have a web application that has a specific redirect page after user logs into the application. But, in certain circumstances, you want to skip it and redirect the user to another page instead of the default page specified after user usually logs into the application. Solution: Thanks to a thread from VelocityReviews, I find the solution....
Share:

Friday, September 28, 2012

Conflict in Namespace

Error: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30175: module 'ContextMenuHelpers' and module 'ContextMenuHelpers', declared in 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary...
Share:

Thursday, September 13, 2012

GetJSON Only Runs Once

Problem: $getJSON() method only runs once Solution: If you are using jQuery, and multiple $.getJSON() methods are called in the web page, but can only get one of the getJSON method working, then you will need to add in this code to refresh the cache, before each of the getJSON method. $.ajaxSetup({ cache: false }); PS: This problem usually occurs...
Share:

Tuesday, July 31, 2012

Check if a Function Exists in Javascript

There are times when we want to call a JavaScript function, and in certain circumstances, we want to make sure that the function does exist. e.g. When a dialog window can be opened from more than one page. And, we want to refresh the component of the the parent page from the dialog window. Thus, we need to check if the function really exists. This...
Share:

Friday, July 20, 2012

The Server Was Unable to Process The Request Due to an Internal Error

Error: Message: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the...
Share:

Thursday, July 12, 2012

Get The First and The Last Day of The Month

Just saw a question from someone on a mailing list I join asking for how to get the transactions occurring for the last three months (in other words, three months from current date). First, you may want to do something simple. To get the first day and the last day of the month, we can use: SELECT DATEADD(month, DATEDIFF(month, 0, GETDATE()), 0), DATEADD(month,...
Share:

Wednesday, July 11, 2012

Select Several Rows into One Row in SQL

In SQL Server, there are times when we want to consolidate the content of several rows into one row. Though it is not meant for sophisticated purposes, there is actually a simple and easy way to do this. Suppose we have a Member table containing  MemberID and Name fields. To...
Share:

Friday, June 15, 2012

Formulas Not Calculating in Excel 2007

I just encountered a weird problem. When I open an excel document, the formula does not seem to calculate. I have a cell containing formula. When I change the value of other cells which form the formula, the cell containing the formula does not change. Find the solution. Somehow,...
Share:

Wednesday, May 9, 2012

Access to Temp Directory is Denied

Error: When deploying application and viewing the web page, the following error occurs: Access to the temp directory is denied.Identity 'IIS APPPOOL\WebAppPool' under which XmlSerializer is running does not have sufficient permission to access the temp directory. CodeDom will use the user account the process is using to do the compilation, so if the...
Share:

Cannot Display Web Page on IIS due to Configuration Error

Error: HTTP Error 500.19 - Internal Server ErrorThe requested page cannot be accessed because the related configuration data for the page is invalid.Config Error: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined Config File: ...
Share:

Thursday, March 22, 2012

Data Type Exception Error

Error: This is only part of the errors, since it is quite long, I will just quote the core part. System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: DataReader.GetFieldType(5) returned null. This happens when I deploy a web application developed under Visual...
Share:

You may be intersted in

Related Posts

Updating Table Containing Xml Column via LinkedServer

If you are trying to update a table containing XML column via Linked Server in SQL Server, and you are not able to, you are not alone. There...

About Me

My photo
Is an ordinary man, with a little knowledge to share and high dreams to achieve. I'd be glad if I can help others, 'coz the only thing for the triumph of evil is for a good man to do nothing.

About Blog

You can find a lot of debugging and deploying problems while developing applications in .NET and Visual Basic here. There are also some querying tips in SQL and typical source codes which might be useful shared here.

Popular Posts

Blogroll

Followers

Leave a Message