Hi, we have several packages running on our localhost including Umbraco Forms and Skybrud.Umbraco.Redirects.
When we run:
dotnet publish --configuration Release
The dlls get generated and everything looks fine. When we deploy the publish directory to the server, none of the packages work. They show as installed, but they don’t show in the backoffice.
It sounds like there might be an issue with how the packages are being deployed. Here are a few things to check:
Ensure the packages are in the correct folder: Make sure the DLLs for Umbraco Forms and Skybrud.Umbraco.Redirects are in the bin folder on the server after deployment. Sometimes the deployment process might miss copying certain files over.
Check for any errors: Look at the server logs to see if any errors are being thrown that could prevent the packages from loading correctly.
Check your Umbraco version: Make sure the version of Umbraco on the server is compatible with the versions of the packages you’re using.
Reinstall the packages: Sometimes the packages might not get fully initialized during deployment. You can try reinstalling them via the Umbraco backoffice.
Verify the permissions: Ensure that the user running the app on the server has the appropriate permissions to load and access the required files.
Give those a shot, and let me know if anything looks off!
If you’re missing the package in the backoffice, it means at the very least that Umbraco didn’t find the umbraco-package.json file. That file is what determines what is present in the ‘packages’ section of Umbraco. So my guess is that the App_Plugin files are not copied over correctly.
My apologies if not related in the slightest, but I am still on version 13+ so far, and I’ve noticed that deploying via Visual Studio sometimes (seems like most of the time) doesn’t include all of the files in the App_Plugins folder. I also checked they are set to copy content.
you can even run that published site locally with (replace www with your project name)
dotnet www.dll --urls=https://localhost:44589/ --configuration Release --environment Live
or .\www.exe urls=https://localhost:44589 --environment Live --configuraton Release