Showing posts with label Windows Vista. Show all posts
Showing posts with label Windows Vista. Show all posts

IIS 7 – Managed pipeline mode – Global.asax redirect not working

I installed Windows 7 and I really like it. I migrated all my applications from my old machine to new. And my old machine is running WS 2003 [iis 6] and new machine is Windows 7 [IIS 7]. In all applications everything ran successful except one. I implemented exception handling in my application. I have Global.asax page and in the Application_Error event, I log the exception details and redirecting the user to the error page. Whenever there is an exception in my application the page never redirect to the error page, it stays there in the same page with exception details on the screen.

The same code ran very successful on my old server and in Windows 7 it's not. I just started thinking what could be the issue. The analysis went in this way. Code not changed, DB not changed and the only part changed is the IIS. Windows 7 has IIS7. So, The problem would be either the isapi dll or the application pool. So, started researching on those and found interesting points.

In IIS 7, application pool has a separate feature named "Managed pipeline mode". This will tell the pool the pipeline mode. [which is of type sint32 in c# and the possible values for it are 0 and 1.]

  • 0 is managed pipeline runs in integration mode.
  • 1 is managed pipeline runs in classic or ISAPI mode. [IIS 6].

In Classic mode, managed application events are executed by using ISAPI. In Integrated mode, ASP.NET request processing integrates directly into the IIS 7 request-processing pipeline. Integrated mode enables you to configure managed modules for Web sites that are developed with unmanaged code.

So, to work your logic correct, go to your site and see under what application pool your site running. Now, go to that application pool, properties and change the pipeline mode to classic mode. Now, you see everything works fine and the page starts redirecting to error page when any exception in your application.

For more details: http://msdn.microsoft.com/en-us/library/microsoft.web.administration.managedpipelinemode.aspx

Hope this helps and new tip today. Do you like this post?

Read More...

How to check what updates are installed on my machine?

This is a general question for administrators and windows users. We have two ways to test it. One is through GUI and another is through command prompt.

  • If your windows installed in full installation mode, then you can directly go to Start –> Windows Update –> View Update History. In that window you can check all the list of updates installed in your machine.
  • If your windows installed in core installation then open command prompt –> type the below command in it and hit enter.

wmic qfe list

Now, in the list it will shows all the list of updates installed in the server. Tested in Windows Vista and Windows Server 2008.

Is this post helpful to you?

Read More...

How do i know my system version. 32 bit or 64 bit?

Hi Guys,

From long time many people asked me about how do I know my system version whether 32 bit or 64 bit. When I was very new to IT industry, at that time I too don’t have any idea about it. But some things will come with experience. Please follow the below points to know your system version.

  • Go to Start button.
  • Type sysdm.cpl and click OK or press enter.
  • Now, it will open a new window. Click on General tab. Here you will find the information about the OS.
  • The only clue that you know, whether my OS is 32-bit or 64-bit is, For 64-bit specially the OS name displayed as "Windows server 2003 64-bit Operating system". Where as 32-bit is simply Windows server 2003.

If you are using Windows Vista OS, then you can directly see the version details by going to computer properties from Start button.

  • Directly go to Start button, and right click on Computer and select Properties. There you find an entry for System Type.
  • OR, you can go to Control Panel and then Go to System.

This information is very helpful many times before install any software to check for version validation. Now, you know what your system type is. Don’t you?

Read More...

File System path for Adobe Connect now in Windows Vista

Hi guys,
Today i have a demo with one of my client to show the work i did. One of my colleague try to connect to Acrobat Connect now from his system [i was busy with some other work at that time]. And it was not opening for him, because of some version mismatch or files are missing in his system. He is using the WS 2003 OS, and connectnow files are storing in c:/.../username/application data/MacroMedia/FlashPlayer/www.MAcroMedia.com/bin. I am using Windows Vista and for me connectnow is working and my idea is to send him the files what i have, because it's working for me. I got the above path from him and when i search for the files in that location in Vista it's not there, because the file system path for Vista is different. After spent some time on it around 7 minutes, i found below location where all the files belongs to the Connectnow.
I sent him the files i have and it's working great. May it will help others....
This is the path for it in Vista....
C:\Users\UserName\AppData\Roaming\Macromedia\Flash Player\www.macromedia.com\bin\acaddin Read More...
Related Posts with Thumbnails
GiF Pictures, Images and Photos