Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Switch from VS Server to IIS server View modes: 
User avatar
Member
Member
frank-bitwizards - 10/11/2010 2:27:17 PM
   
Switch from VS Server to IIS server
Hi All,
I successfully installed and am running Kentico 5.5 on my Windows 7 development machine. While installing, I selected the 'I am using .NET Framework 4.0 or Visual Studio 2010" and when I debug, the site runs ion the VS ASP.NET Development Server. I'd like to edit the site to run on the IIS server do that the url is simply http://localhost/mysitename. I tried setting the start options in VS to use a custom server and setthe base url to http://localhost/KenticoCMS

When I try to run the site I get the following. How can I resolve this?

HTTP Error 500.22 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. Detailed Error InformationModule ConfigurationValidationModule
Notification BeginRequest
Handler PageHandlerFactory-Integrated-4.0
Error Code 0x80070032
Requested URL http://localhost:80/KenticoCMS/cmsinstall/install.aspx
Physical Path c:\Inetpub\wwwroot\KenticoCMS\cmsinstall\install.aspx
Logon Method Not yet determined
Logon User Not yet determined
Most likely causes:
This application defines configuration in the system.web/httpModules section.


Thanks in advance for any help,
F

User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/18/2010 1:58:46 AM
   
RE:Switch from VS Server to IIS server
Hello.

This error indicates that your application is not coded to run in Integrated Pipeline Mode.

To resolve this issue you must either:

- Update your code to run in Integrated Pipeline Mode.
- Or log into your Control Panel and go to your Site Info Manager and change the pipeline mode from Integrated to Classic.

Please see Knowledge Base article on Application Pool Pipeline Mode in IIS 7.

Best Regards,
Radek Macalik

User avatar
Member
Member
Webcoda - 2/14/2011 2:13:51 AM
   
RE:Switch from VS Server to IIS server
Hi,

I am getting the seame error in the blank Kentico project.
I ran installer, selected ASP.NET 4 and completed the installation. Then created IIS site .NET 4, integrated pipeline and got the same error. NO code added to the site at this point. In fact database configuration is not run yet.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 2/14/2011 2:52:29 AM
   
RE:Switch from VS Server to IIS server
Hello.

Yes, application pool under which your web site is running should be set to "Integrated" mode.

I found other forum post related to this problem: http://devnet.kentico.com/Forums.aspx?forumid=46&threadid=16293

Could you please follow it? This issue seems to be more related to IIS configuration, than Kentico CMS itself. Could you please read this as well? http://mvolo.com/blogs/serverside/archive/2007/12/08/IIS-7.0-Breaking-Changes-ASP.NET-2.0-applications-Integrated-mode.aspx

In general, I would recommend you to google for "HTTP Error 500.22 - Internal Server Error" search phrase, as this is really related to IIS configuration, so you can find many articles dealing with this issue. Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
adween - 4/26/2011 11:00:04 AM
   
RE:Switch from VS Server to IIS server
I think the problem is with the .net 4 web config. to fix it on my server I removed these two sections...

<httpModules>
<add name="XHtmlModule" type="CMS.CMSOutputFilter.OutputFilterModule, CMS.OutputFilter"/>
</httpModules>

and here...

<httpHandlers>
<clear/>
<add verb="*" path="*" type="CMS.WebDAV.WebDAVHandler, CMS.WebDAV"/>
</httpHandlers>

the site now loads. have these web config settings been moved in .net 4? Do they appear under system.webServer now??

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/10/2011 8:01:49 AM
   
RE:Switch from VS Server to IIS server
Hello.

Yes, web.config for .NET 4.0 is different from previous version. Basically, it is much simpler. You can install any asp.net application for both version and compare their web.config files. Anyway, since this is .NET related issue, there is many public resources related to what is new in .NET 4.0 and web.config. You can read e.g. http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes, or many other public resources. Thank you.

Best Regards,
Radek Macalik