locked
Azure 'targetFramework' attribute is not allowed RRS feed

  • Question

  • User-1286266314 posted

    I have created a new ASP.NET Web Application project, and have published it on MS Azure.

    It is currently hosted on Azure, but I have tried to make further changes and then publish these changes.

    The following errors have since occurred:

    However, when I try to publish I get the following error:

    1. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

    I don't understand why this is occurring because this error didn't appear the first time I published, and the only changes were just changing plain text.

    Another error occurs on each ASPX page - one line is underlined in blue, when I hover over that line this message appears:

    1. ASP.NET runtime error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

    Finally, when I go to Web.Config under system.web, "targetFramework" is underlined and when I hover over it I receive this message:

          3. The 'targetFramework' attribute is not allowed

    Can anyone help me to fix these problems? Thanks.

    Tuesday, February 14, 2017 4:51 PM

All replies