By default, Windows XP comes with IIS 5.1. There may be situations where you need to install Visual Studio 2010 in your development system which is Windows XP and the production system may be Windows Server 2008 R2 (IIS 7.5). In this case, you need IIS 7.5 in your XP system.
a) Ensure that you have Windows XP SP3 in your system.
b) Install IIS 7.5 express from the following location, http://www.microsoft.com/en-us/download/details.aspx?id=1038
c) Now, to run your web aplication developed in Visual Studio 2010 in IIS 7.5 express, launch the VS2010 and create a new web application.
d) Right click the web application project in solution explorer and select “Use IIS Express”. This will create virtual directory in IIS express.
e) To see the running application, enable the systray using the following command,
C:\\Program Files\IIS Express\iisexpress\systray:true
f) This will enable the IIS express tray icon and use it see the running applications as shown below,
One of my team member was complaining to me that, the application works good at his development system but, when deployed to QC, the particular page throws a null exception.
I found that, the code ‘HttpContext.Current.Session[Constant.SortDirection]’ is causing the error and the Current is null.
Inorder to fix this issue, the Session state should be set properly for the application in IIS.
Earlier, Session state was disabled because of which, the Current object is null. After setting the Session state, it worked correctly.
Recently,one of my colleague asked me the steps to deploy and run an ASP.NET web application developed targeting .NET framework 3.5 in IIS 7.0
Here are the steps,
a. Launch IIS 7, right click ‘Default web site’ and choose ‘Add Application’
b. You will get a dialog as shown below,
c. Map your sources using the above dialog. If needed, create your own app pool or set it to one which targets .NET Framework 2.0 classic or integrated.
Now, you will be able to launch you web application in IIS 7