ASPX templates
Version 5.x > ASPX templates > Configuration Error View modes: 
User avatar
Member
Member
eric.rovtar-hudsonchapel - 8/5/2010 6:51:24 PM
   
Configuration Error
Hi!

I was trying to put web.config in Debug mode by setting the following line to true:

<compilation debug="false" numRecompilesBeforeAppRestart="100">


Now I keep getting this compilation error:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 53: <error statusCode="404" redirect="~/CMSPages/handler404.aspx" />
Line 54: </customErrors>
Line 55: <authentication mode="Forms">
Line 56: <forms loginUrl="CMSPages/logon.aspx" defaultUrl="Default.aspx" name=".ASPXFORMSAUTH" timeout="60000" slidingExpiration="true" />
Line 57: </authentication>


Please help!

-Eric

User avatar
Kentico Support
Kentico Support
kentico_radekm - 8/9/2010 6:42:12 AM
   
RE:Configuration Error
Hello.


When this issue appears? When you try to access your site? What is the version of your Kentico CMS, please?

So far, it seems as general error message related to your virtual directory´s configuration on IIS.

Could you please follow this article and let me know, if it helped? Thank you.

forums.asp.net/t/769696.aspx

Best Regards,
Radek Macalik

User avatar
Member
Member
eric.rovtar-hudsonchapel - 8/9/2010 8:57:49 AM
   
RE:Configuration Error
Thanks! I figured it out. I accidentally copied the web.config file into a folder without meaning to. Once that was removed, it was happy!

Thanks again!

User avatar
Member
Member
gpending-yahoo - 4/15/2011 12:25:22 PM
   
RE:Configuration Error
Hi,
I am trying to do the multiple websites
http://devnet.kentico.com/docs/devguide/index.html?multiple_web_sites_on_a_single_domain.htm

And receiving the same configuration error.

Any ideas?

User avatar
Member
Member
gpending-yahoo - 4/15/2011 12:45:04 PM
   
RE:Configuration Error
Figured it out. On W7 IIS, it should be webapplications. Not virtual folders. So in IIS right mouse click and convert to Applications. Next update the security at add Modify to IIS_ISRS. Then make sure that in the Site domain name is localhost/mykenticoweb/web1 or localhost/mykenticoweb/web2 and it seems to work.