Fixed System.MethodAccessException: Attempt by security transparent method ‘WebApplication1.WebApiApplication.Application_Start()’ to access security critical method ‘System.Web.Mvc.AreaRegistration.RegisterAllAreas()’ failed

Exception Details: System.MethodAccessException: Attempt by security transparent method ‘WebApplication1.WebApiApplication.Application_Start()’ to access security critical method ‘System.Web.Mvc.AreaRegistration.RegisterAllAreas()’ failed. Resolution : Add <trust level=”Full”/> under <system.web> in web.config <system.web> <trust level=”Full”/> … </system.web> [Read more about ASP.NET Trust Level]

Creating database diagram of Oracle database using Oracle SQL Developer

Introduction In this post I will explain how to create database diagram of Oracle database using “Oracle SQL Developer” Description We can use Oracle SQL Developer to generate database diagram of an Oracle database. Please follow these steps to generate database diagram of an Oracle 11g Express Edition database. You can refer to this article… Read More »

Fix “System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.” error in .NET

Introduction In this article I will explain cause and resolution of “System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.” error Cause This error generally occurs when you deploy an application on the server that access Oracle database using “System.Data.OracleClient” library and it doesn’t find the library on the server. Resolution To resolve this error… Read More »

Creating 3D (Three Dimensional) charts in ASP.NET

IntroductionIn this article I will explain how to 3D (Three Dimensional) maps in ASP.NET DescriptionChart control in ASP.NET 4.0 displays charts in 2D (Two-Dimensional) by default. ASP.NET provides some properties with the ChartArea inside the Chart control that we can use to render charts in 3D. You can refer to my previous article on how… Read More »

How to change type of chart of a Chart control in ASP.NET 4.0 programmatically

Introduction In this article I will explain how to change CharType of a Chart control in ASP.NET 4.0 dynamically at runtime Description Type of a Chart control can be changed by changing the ChartType property of the Series component inside the Series collection. ChartType property is set to SeriesChartType enum. Example: chartProducts.Series[“ProductSeries”].ChartType = SeriesChartType.Pie; Here… Read More »

How to create charts in ASP.NET 4.0 using built-in Chart control

Introduction In this article I will explain how to create charts in ASP.NET 4.0 using the Chart control introduced in ASP.NET 4.0 Description ASP.NET 4.0 introduced a new data control “Chart” with Visual Studio 2010. Chart control can be used to create around 35 types of interactive charts. Data in the chart controls can be… Read More »

Data binding in ASP.NET Repeater control from code-behind using DataView

Introduction In this article I will explain how to bind data to a Repeater control in ASP.NET from code-behind using DataView to render a DIV layout Description In this article we will create a DIV layout using Repeater control to display product list with their images. We will use DataView to sort and bind data… Read More »

Data binding in ASP.NET Repeater control using SQLDataSource control

Introduction In this article I will explain how to bind data to a repeater control in ASP.NET Description Repeater control displays repeated set of data from the data source. It can display data in any form as per our need, in a table layout, a div layout, a comma-separated list, an xml format, ordered list,… Read More »

Displaying alert message from code-behind in ASP.NET

In this post I will explain how to display alert message in ASP.NET from code-behind. We will create a function in the code-behind file to display alert message dynamically. We will register Javascript dynamically at runtime using ScriptManager.RegisterStratupScript method and display a Javascript alert message from the code-behind. Create a new ASP.NET Application and add… Read More »