Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • M 36 posts 248 karma points
    Jun 28, 2016 @ 11:37
    M
    0

    Failing to compile when deployed to IIS

    Hi!

    I've been working on a site locally, and my SASS stylesheets compile fine (unless I mess something up!).

    I've built and deployed the site using Team Foundation Server, and it builds fine, but once deployed I'm just getting "Server Error in '/' Application." when viewing the scss file.

    If I attempt to publish the project in Visual Studio I get the following error:

    Error   27  Could not open Source file: Could not find a part of the path
    'C:\..\App_Plugins\Optimus\Views\Web.config;\App_Plugins\Optimus\Views\Web.config'.
    

    I've checked the logs, and I can't see anything obvious in there, certainly no errors and nothing relating to Optimus.

    Any ideas?

    Using Umbraco 7.3.7

    Thanks

  • Jinesh Kaneriya 22 posts 155 karma points
    Jun 28, 2016 @ 12:33
    Jinesh Kaneriya
    0

    Hi,

    I think this is permission issue please check the permission for this files. and give trust level in web.config find out more about trust level What is trust level?

  • M 36 posts 248 karma points
    Jun 28, 2016 @ 12:58
    M
    0

    Hi, Thanks for replying. Do you mean change the site web.config or Optimus?

    Thanks

  • Paul 153 posts 519 karma points
    Jan 31, 2017 @ 09:38
    Paul
    0

    Yep I'm getting this issue too. Going to try the permission amendments.

  • Paul 153 posts 519 karma points
    Jan 31, 2017 @ 11:55
    Paul
    100

    Adding the following to the publish profile seems to resolve this:

    <AutoParameterizationWebConfigConnectionStrings>false</AutoParameterizationWebConfigConnectionStrings>
    

    And

    <ItemGroup>
      <MSDeployParameterValue Include="somestuffhere">
        <UpdateDestWebConfig>False</UpdateDestWebConfig>
      </MSDeployParameterValue>
    </ItemGroup>
    

    Looks like this message presents itself when MSBuild tries to replace connection strings in all web.configs, including those in other folders like XSLT and App_Data.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies