Microsoft Student Partner (MSP) Capacity Build up Training (Session 01) Course Title: Object Oriented Programming with C# Venue: East West University, Dhaka, Bangladesh Date: 28 May, 2016 Speaker / Trainer: Md. Mahedee Hasan, Microsoft MVP, Visual Studio and Development Technologies Software Architect, Leadsoft Bangladesh Limited Trainer, Leads Technology Limited
Category: ASP.NET Technical Solution
ASP.NET Application Performance Tuning and Scalability Improvement (Part – 1)
Every developers and customer wants his/her application performed well. But it is very tricky to improve performance of a web application. It’s actually depends on different parameter like HTML client, HTTP network, Web server, middle-tier components, database components, resource-management components, TCP/IP networks, and database servers. Sometimes performance of the application increases drastically, if you change
Multiple DbContext in a single asp.net mvc applications with EF code first
Is it possible to create multiple DbContext in a single asp.net application with entity framework code first? Yes! Then, How!! This was the questions to me for a couple of weeks. Here is the simple article where you will get all answer. First, I want to say, yes it is possible to create multiple DbContext
bobj is undefined
Problem Statement I have an application developed with the following tools and technologies. MS .NET Framework 4.5 SAP Crystal Report 13.5 ASP.NET Web form SQL Server 2008 R2 In deployment server the report is not displayed. Instead I found a javascript error “bobj is undefined”. But it works fine in development server. Solutions Copy aspnet_client
How to register .NET framework in IIS
If you install IIS after installing framework, you have to register framework in IIS. Otherwise you will get following message after hosting asp.net application in IIS. ASP.NET 4.5 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5 in order for your site to run correctly.
How to configure IIS for different port
1. Open IIS Manager (run -> inetmgr) 2. In the Connections pane, expand the Sites node in the tree, and then click to select the site for which you want to add/edit binding. 3. Right click on the site and click Edit bindings 4. Select Port on the site binding pane 5. Click Edit button 6. In Edit Site Binding pane type port (ex. 1080) and click Ok
Call JavaScript from Asp.net code behind
Suppose you want to display confirmation message by javascript from asp.net code behind after saving data. Write the following code in your button event. protected void btnSaved_Click(object sender, EventArgs e) { string msg = “Data saved sucessfully”; Page.ClientScript.RegisterStartupScript(this.GetType(), “Alert”, “
Which Service is using which port?
Every day we fell in some difficulties and want to know which service is using by which port? Ports are divided into three ranges: The well-known ports (from 0 to 1023), the registered ports (from 1024 to 49151) and Dynamic (Private) ports (from 49152 to 65535). The Internet Assigned Numbers Authority (IANA) is responsible for
HTTP Error 404.3
Did you find the error “HTTP Error 404.3” ? Yes, I found the error at the time of deploying my ASP.NET web application to IIS 7. I found the following error (screen shot). To solve the error follow the following steps: Step 1: Go to Control Panel -> Programs and Features -> Turn Windows
Microsoft Office Excel cannot access the file ‘C:\inetpub\wwwroot\Download\mahedee.xlsx’
I have deployed my application in a 64 bit OS and got the following error at the time of uploading an excel file. Microsoft Office Excel cannot access the file ‘c:\inetpub\wwwroot\ Download \ mahedee.xlsx’. There are several possible reasons: • The file name or path does not exist. • The file is being used by
This application was precompiled with personalization turned off
Some days ago I have deployed one of my asp.net applications in Windows 2003 server. After deploying I could not browse any pages. I was getting the following errors – This application was precompiled with personalization turned off, but it appears to have been turned on after the precompilation, which is not supported. Description: An
Sys.WebForms.PageRequestManagerTimeoutException The server request timed out
Few days ago I found an error when tried to export about 500 reports to pdf. The error is Sys.WebForms.PageRequestManagerTimeoutException The server request timed out. This is not found as exception. It is found on run time as javascript error. I was working on Ajax Control tool kit 3.5. It is occurred because export operation
HTTP/1.0 503 Service Unavailable
Some days ago, I fall in a problem. I could not create an ASP.net project. An error occurred when I press ok button in New project. ERROR: “The Web server reported the following error when attempting to create or open the Web project located at the following URL: ‘http://localhost/MyProjectMahedee’. ‘HTTP/1.0 503 Service Unavailable’.” Solution: Go
Visual Studio 2005 debugger does not work in IE 8!
Do you face debugger problem of Visual studio 2005 in IE 8? Yes, I faced problem. Few days, Debugger of Visual studio 2005 was not working in IE8 in my pc. This is because IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. Older version of
Could not access network location %SystemDrive%\inetpub\wwwroot\”
I have found the message – Could not access network location %SystemDrive%\inetpub\wwwroot\” – When I was trying to install Infragistic NetAdvantage on Windows 7. To solve the problem do the followings. 1. Type “regedit” in the Run From Start Menu dialog box to open the “Registry Editor”. 2. Find the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\PathWWWRoot 3. Change