Author Archives: quysnhat

How To Map A Domain To Tomcat’s Web Application

When you deployed your application in Tomcat server you can view your app by the link like: http://localhost:port/appName. You can mapping a domain to Tomcat’s web application to access your application according by your domain (ex: http://yourdomain.com) after you reference … Continue reading

Posted in Uncategorized | Leave a comment

How to fix error HTTP Status 500 – java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl in Tomcat version 7.x

After run tomcat server and then view tomcat manager screen I received error: HTTP Status 500 – java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl type Exception report message java.lang.ClassCastException: org.apache.jasper.el.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl description The server encountered an … Continue reading

Posted in Tomcat | Leave a comment

Config dcomcnfg to download Excel file using Microsoft.Office.Interop.Excel library

When I used Microsoft.Office.Interop.Excel library to download excel file from website is hosted in IIS, I received error: “Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered”. This is … Continue reading

Posted in Uncategorized | Leave a comment

Error: The target “GatherAllFilesToPublish” does not exist in the project

When I publish web application project in vs 2012, i have received error: “The target “GatherAllFilesToPublish” does not exist in the project”. This is the solution to fix this bug: 1. Right click project and select Unload Project. 2. Right … Continue reading

Posted in Uncategorized | Leave a comment

WebAPI Save not working – 405 Method Not Allowed

I have a web api controller with a Save method. The method executes fine on my local machine running IIS Express (Windows 8) but as soon as I deployed it to the live IIS server (Windows Server 2008 R2) it … Continue reading

Posted in Uncategorized | 1 Comment

Entity framework with Oracle inserting parent with child

To insert data to two tables have parent and child relationship we will doing flow steps: 1. Create two tables: Table CUSTOMER Table INVOICE 2. Create sequences 3. Create Triggers 3. Create a Entity Data Model 4. Open .edmx file … Continue reading

Posted in Entity framework | Leave a comment

Using Entity framework to call Oracle Stored Procedure in ASP.NET MVC3

This tutorial I will intro about how to using Entity framework to call Oracle Stored Procedure in ASP.NET MVC3. In this tutorial I use oracle database with username is SCOTT. Requirements: Oracle client 11g ODAC 11.2.0.3 for visual studio. you … Continue reading

Posted in ASP.NET MVC | 4 Comments