Showing posts with label Microsoft .Net Framework. Show all posts
Showing posts with label Microsoft .Net Framework. Show all posts

Thursday, 27 November 2014

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list


This command just surprisingly solved it:

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i


This repeats IIS registration\installation although I had no problem while installing it as Windows Feature.

Monday, 8 September 2014

Server Error 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.

I problem which might have kept me overnight in the office!!!

Environment:
Microsoft IIS 7.5
Windows Server 2008 R2

Cause:
Trying to share the root web folder.



Problem:

Server Error
500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.


Trials:
- Removing the share.
- Deleting the Temporary ASP.NET files
- Restating the  IIS

Workaround:
1 - Creating a new web root folder and moving all  the application folders to this new folder.
2 - Configuring all the application folders to point to the new folder.



Sunday, 14 July 2013

Performance Tip: ASP.NET HTTPResponse.Redirect(newURL, FALSE) is the way to redirect

Try to always use the second parameter endResponse for the method:

   HTTPResponse.Redirect(newURL, FALSE)

endResponse when set to true results in throwing the exception ThreadAbortException. Typically, exceptions propagations are expensive with respect to processing and results in performance degradation. Alternatively, it is recommended whenever possible to set endResponse to false and provide a graceful logical end to your thread following the redirection procedure.


Thanks goes to Mike Volodarsky's blog.
For details: MSDN