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

3 posts, 0 answers
  1. Cary
    Cary avatar
    18 posts
    Member since:
    Feb 2008

    Posted 29 Jul 2008 Link to this post

    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. Cary
    Cary avatar
    18 posts
    Member since:
    Feb 2008

    Posted 29 Jul 2008 Link to this post

    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.



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 29 Jul 2008 Link to this post

    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.
Back to Top