Technical support This forum is closed.
Version 1.x > Technical support > Configuration Error when using ASCX transformations View modes: 
User avatar
Member
Member
janusz - 9/13/2005 10:17:32 AM
   
Configuration Error when using ASCX transformations
Hello!

I am getting weird error like that>

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 92: by Microsoft that offers a single logon and core profile services for member sites.
Line 93: -->
Line 94: <authentication mode="Forms">
Line 95: <forms name="CMSCookie" loginUrl="cmsdesk/Logon.aspx" protection="All" timeout="60">
Line 96: </forms>




When accessing the page that has CMSViewer with transformationname that uses ASCX transformation. When I change to XSLT transformation then the page works well. I think it must be something with default.ascx file being inside the /cmsdesk/metadata/...
I have tried to setup the NTFS permissions to everyone and it does not help. I am not quite sure what I am doing wrong :)

Thanks,

Janusz


User avatar
Guest
admin - 9/13/2005 11:43:43 AM
   
Re: Configuration Error when using ASCX transformations
Hi Janusz,

Do you have both the front-end web site and the CMSDesk application configured as separate web applications or are they using the same web application space and the same web.config file?

Thank you.

Best Regards,

User avatar
Member
Member
janusz - 9/13/2005 12:40:19 PM
   
Re: Configuration Error when using ASCX transformations
I have the same web.config and the same web application space for webproject and cmsdesk.

User avatar
Guest
admin - 9/13/2005 1:10:24 PM
   
Re: Configuration Error when using ASCX transformations
Janusz, does logon to CMSDesk work correctly?

If you're using user controls inserted directly into the text (%%control:...%%), are these displayed correctly?

Thank you.

Best Regards,

User avatar
Member
Member
janusz - 9/13/2005 1:32:37 PM
   
Re: Configuration Error when using ASCX transformations
Yes. The logon and the whole CMSDesk works well.

I am not using the %%control:..%% in this project. But I have just set it up. If I choose the XSLT template and I put some %%control..%% inside then it works well.. However, the .ascx control that I am using is in the project file root.


User avatar
Guest
admin - 9/13/2005 1:44:53 PM
   
Re: Configuration Error when using ASCX transformations
Well, does it happen only with this Kentico CMS installation/on this machine or also with some other. Could you please try to install the sample Corporate Site on the same server (into a subfolder) and check if it works correctly?

Thank you.