Copied to clipboard

Flag this post as spam?

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


  • AWatters 33 posts 174 karma points
    Mar 29, 2022 @ 17:40
    AWatters
    1

    v9 Publishing - missing media folder

    First v9 installation today - got it working locally just fine. Then published and sent contents of publish folder up to server. Installed the SDK and hosting bundle on the server, basically following along with documentation and this video here:

    https://www.youtube.com/watch?v=riO5EQKE0YY

    However when I go to view it I get: HTTP Error 500.30 - ASP.NET Core app failed to start

    I found this SO questeion: https://stackoverflow.com/questions/67211060/http-error-500-30-asp-net-core-5-app-failed-to-start and one suggestion: Navigate to the root directory of the application using CMD. Run the application using the command dotnet run (yourApplicationName).dll

    When I did this I got the following:

    Unhandled exception. System.IO.DirectoryNotFoundException: D:\inetpub\Example\www\wwwroot\media\
    

    And yes indeed, when I look in the publish folder, wwwroot/media is missing. In Visual Studio wwwroot/media (not in publish folder) wasn't "included in project" so I did that and published again, but it's still not in there. Is there something I could do to sort this out?

    ETA - forgot to say, this has a uSkinned theme on it. Not sure if that would be an issue. Tomorrow I will try again without uSkinned.

  • rok 11 posts 91 karma points
    Aug 08, 2022 @ 09:07
    rok
    0

    Hey, did you manage to solve this problem? if, how?

  • AWatters 33 posts 174 karma points
    Aug 08, 2022 @ 11:50
    AWatters
    0

    Hi - I believe I just manually uploaded the media folder to the server. Sorry, no great insights there but it's something I have had to do with a few sites since.

  • rok 11 posts 91 karma points
    Aug 08, 2022 @ 11:52
    rok
    0

    But i don't have any media, should I just make a folder at that location?

  • AWatters 33 posts 174 karma points
    Aug 08, 2022 @ 12:21
    AWatters
    0

    I would just make a folder on your server at wwwroot/media, and copy the individual folders from your local wwwroot/media folder up. I didn't have one in \bin\Release\net5.0\publish\wwwroot but did have one in \wwwroot itself (not the published folder) so just used that. I hope this makes sense.

    Don't forget to sort the permissions on the new media folder

  • Mark Drake 134 posts 458 karma points c-trib
    Sep 16, 2022 @ 15:03
    Mark Drake
    0

    I've tried a number of things with the solution to force Azure Dev Ops to keep the /wwwroot/media/ folder in place - but nothing has worked so far. Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft