Category Archives: ASP.Net

ASP.Net articles

Google maps user control for ASP.Net

Download source View Demo Google Maps user control Introduction Lot of us are familiar with Google map. Google has provided a very reach APIs that can be used in web applications via JavaScript. But this requires JavaScript knowledge. I don’t know about others, but for me it was a little difficult to use JavaScript along… Read More »

Virtual directory not being configured as an application in IIS

Problem Configuration ErrorDescription: An error occurred during the processing of a configurationfile required to service this request. Please review the specific errordetails below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory… Read More »

Google Maps Control for ASP.Net – Part 2

Free Open source Control Introduction This is second part in two part series of my article Google Maps User Control for ASP.Net. In first part Google Maps Control for ASP.Net – Part 1 I have explained how to use this control in your ASP.Net application. In this part I am going to explain source code… Read More »

System.InvalidOperationException– Maximum length exceeded

Problem You may receiving this error when you try to use javascript to call web methods defined in ASP.Net Web Service file (.ASMX). This error is usually faced when making javascript calls using ASP.Net AJAX framework. The server method failed with the following error: System.InvalidOperationException– Maximum length exceeded. Cause When you call ASP.Net Web Methods… Read More »

The relative virtual path MyUserControl.ascx is not allowed here error in Web.Config

Problem I am trying to add a user control in Web.Config file as below, {codecitation style=”brush: xml; gutter:false”}<controls> <add tagPrefix=”MyControl” tagName=”MyUserControl” src=”MyUserControl.ascx”/> </controls> {/codecitation} It gives me following error, Configuration Error: The relative virtual path ‘MyUserControl.ascx’ is not allowed here. Solution To resolve this issue, move your WebUserControl from root directory to a sub directory.… Read More »