Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# boenar 2/25/2006 11:12 PM
Hi,
I am new here, and need help.
I am creating new template in new folder at Cuyahoga\Templates\MyNewTemplate
I copy .ascx file from Cuyahoga\Templates\AnotherRed\Cuyahoga.ascx and also .css file.
Then registered it at Manage templates at Administration interface.
But when I try to asign that new template on a page, a error message occured, it says:

"An error occured: 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. (D:\Website\dotnetprojetcs\huizetrivelli\Cuyahoga\web.config line 68)"

Anybody can help me with this problem?

And how to delete a template from Manage templates at Administration interface.

Thanks in advance,
I really appreciate any help.

Regards,
Bowo M. Oenar
# martijnb 2/26/2006 5:25 AM (edited 2/26/2006 5:31 AM)
boenar"An error occured: 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. (D:\Website\dotnetprojetcs\huizetrivelli\Cuyahoga\web.config line 68)"

Wow, that's an interesting error, especially because you were able to register the new template. I googled a little bit, but I can't point my finger on the exact issue. I'm sorry I can't help you any more with this. Perhaps anybody else has seen this issue?
And how to delete a template from Manage templates at Administration interface.

You can delete a template after clicking 'edit'.
# tabryant 2/26/2006 10:15 PM
[quote=martijnb]
boenar"An error occured: 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. (D:\Website\dotnetprojetcs\huizetrivelli\Cuyahoga\web.config line 68)"

There are two reasons I can think of that would cause this error.

1. Cuyahoga is not configured as an "application" in IIS.

2. You have nested "web.config" files, and one of the "application level" level keys is defined in both files. This causes a conflict and the error you gave.


# hayz 2/27/2006 6:21 AM
Make sure your new template file wraps content inside the body with the form tag. Compy from other templates.
# boenar 3/2/2006 9:23 AM (edited 3/2/2006 9:39 AM)
Hi,
Sorry guys, it is just a simple error. :$
It alredy fixed.
It looks like I was registered this template using '/Templates/huize'.
After I delete the first '/' (in database tabel 'cuyahoga_template')
and make it 'Templates/huize', it works.
Thanks guys. :d
# martijnb 3/2/2006 10:04 AM
Glad you found it!

It always amazes me how simple typos can result in such frightening error messages :).