Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 4.x > Installation and deployment > web.config error efter installment View modes: 
User avatar
Member
Member
maddragon-siriusvej - 9/14/2009 4:23:09 AM
   
web.config error efter installment
hi there i just installed the free edition and when its finished copying the files and then press the link to the site the site gives me this error :

Internet Information Services 7.0
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x800700b7
Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
Config File \\?\c:\Inetpub\wwwroot\KenticoCMS\web.config
Requested URL http://localhost:80/KenticoCMS
Physical Path c:\Inetpub\wwwroot\KenticoCMS
Logon Method Not yet determined
Logon User Not yet determined
Config Source

5: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
6: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
7: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

out from what i can see it complains about a dublication in the web.config file ? is there a fix for this ?

regards jens

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 9/15/2009 6:03:08 AM
   
RE:web.config error efter installment
Hi,

This issue seems to be related to web.config settings. Could you please let me know if there is another web.config in 'c:\Inetpub\wwwroot' folder?

Best Regards,
Miroslav Remias.

User avatar
Member
Member
maddragon-siriusvej - 9/16/2009 5:34:21 AM
   
RE:web.config error efter installment
hi miroslav yes there is another web.config in the wwwroot itselfe do that im runnig multiple applications and i got my main asp.net/c# one running in the main wwroot hence why im running yours in a subfolder tho i never seen it complain about that before tho.

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 9/16/2009 6:44:52 AM
   
RE:web.config error efter installment
Hi,

So, this might be the reason of the error message. I would recommend you to set up your web sites in different way. You can try to read following Blog post from our CTO on how to do this:

http://devnet.kentico.com/Blogs/Martin-Hejtmanek/June-2009/How-to-setup-two-nested-web-sites-with-Kentico-CMS.aspx

Best Regards,
Miroslav Remias.

User avatar
Member
Member
edisonguoyi-yahoo - 11/9/2010 7:29:14 PM
   
RE:web.config error efter installment
hi
I met the same problem, but I only have one web.config in the wwwroot, could you help me figure out the problem.

I can look at the website through localhost:49878/wwwroot/default.aspx, but when I type localhost or 127.0.0.1, I got that error page

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 11/16/2010 6:04:28 AM
   
RE:web.config error efter installment
Hi,

Are you sure that your web site on your IIS is correctly registered?

Are you running the web site in root of your default web site on your IIS or in some virtual directory?

Have you tried to read our documentation about running web site in virtual directory?

http://devnet.kentico.com/docs/devguide/creating_a_virtual_directory.htm

Could you please post the exception which you are getting?

Best regards,
Miroslav Remias.

User avatar
Member
Member
seth_magee-cable.comcast - 7/10/2013 6:52:38 AM
   
RE:web.config error efter installment
I have the same error. I just downloaded the installer for Kentico 6 (but it downloaded Kentico 7) then I installed it to wwwroot. The first error I saw was "Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded." I went into IIS manager and made sure absolutely everything was pointing at asp.net 4. Then the error changes to the one mentioned above. I don't have two web.config files. All the same problems when I tried on a fresh amazon ec2 instance also. Any help would be much appreciated.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 7/11/2013 5:37:25 PM
   
RE:web.config error efter installment
Hello,

Could you please be more specific what error are you getting with "Then the error changes to the one mentioned above."

Also this thread is related to Kentico version 4 which is actually not supported anymore, so in the future, please create a new thread under appropriate version.

Were you installing Kentico on your local machine? Do you have .NET 4.0 installed? And did you install the Kentico with this version during the installation process?

Best Regards,
Martin Danko