This is a migrated thread and some comments may be shown as answers.

Prevent web.config from auto-adding to web application.

2 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cary
Top achievements
Rank 2
Cary asked on 29 Jul 2008, 02:46 PM
Hi,

I have a solution with several web applications in it. One of the applications is the "parent web app" and the others are are children of the parent. I have the web.config file in the parent but in the children, by design, there should be no web.config files.. Everything works fine, even with Telerik's controls, this way. However when I go to use the visual editor on a telerik control on the child web app it adds a modified web.config file to the child application.. This then breaks the app until I delete the child apps web.config. How can I prevent the web.config from auto-adding for my child applications.

2 Answers, 1 is accepted

Sort by
0
Cary
Top achievements
Rank 2
answered on 29 Jul 2008, 02:55 PM
Here is the error I get if I don't delete the web.config file.

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.



0
Atanas Korchev
Telerik team
answered on 29 Jul 2008, 04:08 PM
Hello Cary,

This occurs because Visual Studio is trying to add reference to the design time assemblies. Unfortunately there is no known workaround apart from not using design mode.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Cary
Top achievements
Rank 2
Answers by
Cary
Top achievements
Rank 2
Atanas Korchev
Telerik team
Share this question
or