Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The following are the steps i followed while deploying the website.

Step 1:Publish the Website.
Step 2:Place that in wwwroot folder.
Step 3:Create an application pool having asp.net v4.0 and integrated pipeline.
Step 4:Convert to application and browse from advanced setting.

It is giving me an error: :
VB
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list


Please suggest any help would be appreciated.
Posted

check the ISAPI and CGI Restriction
go to ControlPanel/Administrative tools/IIS Manager
click on the server name in the left panel
double click the ISAPI and CGI Restriction
no in the middle see the isapi restriction if it is allowed then it is ok
if it is not allowed.
To Allow it select each aspnet_isapi.dll. and from the right action panel click on allow
 
Share this answer
 
Comments
Amit Karyekar 23-Jul-13 2:28am    
I saw the location where you specified it and found that it is allowed.However it is version 2 whereas i am using version 4.is it something to do with that?
Zafar A khan 23-Jul-13 2:30am    
yes do it for 4.0 also
Since the error message says bad module "ManagedPipelineHandler" in the module list. There is some problem in installation of IIS

please run below command in command prompt to fix the installation issues

For 64 bit machine:

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

For 32 bit machine:

%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i
 
Share this answer
 
Comments
Amit Karyekar 23-Jul-13 2:39am    
@vinayoukiri:This worked fine it getting deployed properly now the problem is that it cannot established connection with database.How to give a connection string in IIS?
vinayoukuri 23-Jul-13 3:01am    
You can specify them in web.config. If you want to set it in IIS, Click on ConnectionStrings icon under Asp.net section.There you can click on existing connection string and edit it or click Add on Actions and the interface is intuitive where you can cofigure the connectionstring easily.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900