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:
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.
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.
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
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?
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:
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.
Hey, did you manage to solve this problem? if, how?
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.
But i don't have any media, should I just make a folder at that location?
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
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?
is working on a reply...