Error upgrading 2SXC content from 11.03 to 11.04 - dotnetnuke

I'm running DNN 9.6.2 in Azure as an App Service app. I have 2SXC content 11.03 installed and running well, but wished to upgrade to 11.04. When attempting to install via Settings-->Extensions-->Install Extension, the installation proceeds but eventually errors out (install log attached). The site using the 2SXC content is no longer viable (the modules no longer display - they are absent from the pages) and the site must be restored from backup to be operational again. After the failed installation, the "installed extensions" page shows 2SXC Content 11.4 installed, while 2SCX App is still at 11.3.
StartJob Starting InstallationInfo Starting Installation - 2SexyContentInfo Starting Installation - ScriptInfo Begin Sql executionInfo Creating backup of previous version - SqlDataProvider\Uninstall.SqlDataProviderInfo Created - SqlDataProvider\Uninstall.SqlDataProviderInfo Finished Sql executionInfo Component installed successfully - ScriptInfo Starting Installation - CleanupInfo Processing Cleanup File - 11.4.0Info Completed Processing of Cleanup File - 11.4.0Info Component installed successfully - CleanupInfo Starting Installation - ModuleInfo Module registered successfully - 2sxcInfo Component installed successfully - ModuleInfo Starting Installation - AssemblyInfo Assembly updated - bin\ImageResizer.dllInfo Creating backup of previous version - bin\ImageResizer.dllInfo Created - bin\ImageResizer.dllInfo Assembly in use by another package - bin\ImageResizer.dllInfo Component installed successfully - AssemblyInfo Starting Installation - AssemblyInfo Assembly already registered - bin\ToSic.SexyContent.dllInfo Creating backup of previous version - bin\ToSic.SexyContent.dllInfo Created - bin\ToSic.SexyContent.dllInfo Assembly already registered - bin\ToSic.Sxc.dllInfo Creating backup of previous version - bin\ToSic.Sxc.dllInfo Created - bin\ToSic.Sxc.dllInfo Assembly already registered - bin\ToSic.Sxc.Dnn.dllInfo Creating backup of previous version - bin\ToSic.Sxc.Dnn.dllInfo Created - bin\ToSic.Sxc.Dnn.dllInfo Assembly already registered - bin\ToSic.SexyContent.Razor.dllInfo Creating backup of previous version - bin\ToSic.SexyContent.Razor.dllInfo Created - bin\ToSic.SexyContent.Razor.dllInfo Assembly already registered - bin\ToSic.SexyContent.WebApi.dllInfo Creating backup of previous version - bin\ToSic.SexyContent.WebApi.dllInfo Created - bin\ToSic.SexyContent.WebApi.dllInfo Assembly already registered - bin\ToSic.Eav.dllInfo Creating backup of previous version - bin\ToSic.Eav.dllInfo Created - bin\ToSic.Eav.dllInfo Assembly already registered - bin\ToSic.Eav.Apps.dllInfo Creating backup of previous version - bin\ToSic.Eav.Apps.dllInfo Created - bin\ToSic.Eav.Apps.dllInfo Assembly already registered - bin\ToSic.Eav.Core.dllInfo Creating backup of previous version - bin\ToSic.Eav.Core.dllInfo Created - bin\ToSic.Eav.Core.dllInfo Assembly already registered - bin\ToSic.Eav.DataSources.dllInfo Creating backup of previous version - bin\ToSic.Eav.DataSources.dllInfo Created - bin\ToSic.Eav.DataSources.dllInfo Assembly already registered - bin\ToSic.Eav.ImportExport.dllInfo Creating backup of previous version - bin\ToSic.Eav.ImportExport.dllInfo Created - bin\ToSic.Eav.ImportExport.dllInfo Assembly already registered - bin\ToSic.Eav.Persistence.Efc.dllInfo Creating backup of previous version - bin\ToSic.Eav.Persistence.Efc.dllInfo Created - bin\ToSic.Eav.Persistence.Efc.dllInfo Assembly already registered - bin\ToSic.Eav.Repository.Efc.dllInfo Creating backup of previous version - bin\ToSic.Eav.Repository.Efc.dllInfo Created - bin\ToSic.Eav.Repository.Efc.dllInfo Assembly already registered - bin\ToSic.Eav.Tokens.dllInfo Creating backup of previous version - bin\ToSic.Eav.Tokens.dllInfo Created - bin\ToSic.Eav.Tokens.dllInfo Assembly already registered - bin\ToSic.Eav.WebApi.dllInfo Creating backup of previous version - bin\ToSic.Eav.WebApi.dllInfo Created - bin\ToSic.Eav.WebApi.dllInfo Assembly already registered - bin\CsvHelper.dllInfo Creating backup of previous version - bin\CsvHelper.dllInfo Created - bin\CsvHelper.dllInfo Binding redirect added for assembly - bin\CsvHelper.dllInfo Assembly already registered - bin\2sxc\Microsoft.EntityFrameworkCore.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.EntityFrameworkCore.dllInfo Created - bin\2sxc\Microsoft.EntityFrameworkCore.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.EntityFrameworkCore.dllInfo Assembly already registered - bin\2sxc\Microsoft.EntityFrameworkCore.Relational.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.EntityFrameworkCore.Relational.dllInfo Created - bin\2sxc\Microsoft.EntityFrameworkCore.Relational.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.EntityFrameworkCore.Relational.dllInfo Assembly already registered - bin\2sxc\Microsoft.EntityFrameworkCore.SqlServer.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.EntityFrameworkCore.SqlServer.dllInfo Created - bin\2sxc\Microsoft.EntityFrameworkCore.SqlServer.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.EntityFrameworkCore.SqlServer.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.Caching.Abstractions.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.Caching.Abstractions.dllInfo Created - bin\2sxc\Microsoft.Extensions.Caching.Abstractions.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.Caching.Abstractions.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.Caching.Memory.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.Caching.Memory.dllInfo Created - bin\2sxc\Microsoft.Extensions.Caching.Memory.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.Caching.Memory.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.DependencyInjection.Abstractions.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.DependencyInjection.Abstractions.dllInfo Created - bin\2sxc\Microsoft.Extensions.DependencyInjection.Abstractions.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.DependencyInjection.Abstractions.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.DependencyInjection.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.DependencyInjection.dllInfo Created - bin\2sxc\Microsoft.Extensions.DependencyInjection.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.DependencyInjection.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.Logging.Abstractions.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.Logging.Abstractions.dllInfo Created - bin\2sxc\Microsoft.Extensions.Logging.Abstractions.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.Logging.Abstractions.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.Logging.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.Logging.dllInfo Created - bin\2sxc\Microsoft.Extensions.Logging.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.Logging.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.Options.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.Options.dllInfo Created - bin\2sxc\Microsoft.Extensions.Options.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.Options.dllInfo Assembly already registered - bin\2sxc\Microsoft.Extensions.Primitives.dllInfo Creating backup of previous version - bin\2sxc\Microsoft.Extensions.Primitives.dllInfo Created - bin\2sxc\Microsoft.Extensions.Primitives.dllInfo Binding redirect added for assembly - bin\2sxc\Microsoft.Extensions.Primitives.dllInfo Assembly already registered - bin\2sxc\Remotion.Linq.dllInfo Creating backup of previous version - bin\2sxc\Remotion.Linq.dllInfo Created - bin\2sxc\Remotion.Linq.dllInfo Binding redirect added for assembly - bin\2sxc\Remotion.Linq.dllInfo Assembly already registered - bin\2sxc\System.Collections.Immutable.dllInfo Creating backup of previous version - bin\2sxc\System.Collections.Immutable.dllInfo Created - bin\2sxc\System.Collections.Immutable.dllInfo Binding redirect added for assembly - bin\2sxc\System.Collections.Immutable.dllInfo Assembly already registered - bin\2sxc\System.Diagnostics.DiagnosticSource.dllInfo Creating backup of previous version - bin\2sxc\System.Diagnostics.DiagnosticSource.dllInfo Created - bin\2sxc\System.Diagnostics.DiagnosticSource.dllInfo Binding redirect added for assembly - bin\2sxc\System.Diagnostics.DiagnosticSource.dllInfo Assembly already registered - bin\2sxc\System.Interactive.Async.dllInfo Creating backup of previous version - bin\2sxc\System.Interactive.Async.dllInfo Created - bin\2sxc\System.Interactive.Async.dllInfo Binding redirect added for assembly - bin\2sxc\System.Interactive.Async.dllInfo Component installed successfully - AssemblyInfo Starting Installation - FileInfo Creating backup of previous version - icon.pngInfo Created - icon.pngInfo Creating backup of previous version - License.txtInfo Created - License.txtInfo Creating backup of previous version - ReleaseNotes.txtInfo Created - ReleaseNotes.txtInfo Component installed successfully - FileInfo Starting Installation - ResourceFileInfo Expanding Resource fileFailure Installation Failed - ResourceFileInfo Rolling back component install - ScriptInfo Restored backup of previous version - SqlDataProvider\Uninstall.SqlDataProviderInfo Component rolled back successfully - ScriptInfo Rolling back component install - CleanupInfo Component rolled back successfully - CleanupInfo Rolling back component install - ModuleInfo Component rolled back successfully - ModuleInfo Rolling back component install - AssemblyInfo Restored backup of previous version - bin\ImageResizer.dllInfo Restored backup of previous version - bin\ImageResizer.dllInfo Component rolled back successfully - AssemblyInfo Rolling back component install - AssemblyInfo Restored backup of previous version - bin\ToSic.SexyContent.dllInfo Restored backup of previous version - bin\ToSic.Sxc.dllInfo Restored backup of previous version - bin\ToSic.Sxc.Dnn.dllInfo Restored backup of previous version - bin\ToSic.SexyContent.Razor.dllInfo Restored backup of previous version - bin\ToSic.SexyContent.WebApi.dllInfo Restored backup of previous version - bin\ToSic.Eav.dllInfo Restored backup of previous version - bin\ToSic.Eav.Apps.dllInfo Restored backup of previous version - bin\ToSic.Eav.Core.dllInfo Restored backup of previous version - bin\ToSic.Eav.DataSources.dllInfo Restored backup of previous version - bin\ToSic.Eav.ImportExport.dllInfo Restored backup of previous version - bin\ToSic.Eav.Persistence.Efc.dllInfo Restored backup of previous version - bin\ToSic.Eav.Repository.Efc.dllInfo Restored backup of previous version - bin\ToSic.Eav.Tokens.dllInfo Restored backup of previous version - bin\ToSic.Eav.WebApi.dllInfo Restored backup of previous version - bin\CsvHelper.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.EntityFrameworkCore.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.EntityFrameworkCore.Relational.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.EntityFrameworkCore.SqlServer.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.Caching.Abstractions.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.Caching.Memory.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.DependencyInjection.Abstractions.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.DependencyInjection.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.Logging.Abstractions.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.Logging.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.Options.dllInfo Restored backup of previous version - bin\2sxc\Microsoft.Extensions.Primitives.dllInfo Restored backup of previous version - bin\2sxc\Remotion.Linq.dllInfo Restored backup of previous version - bin\2sxc\System.Collections.Immutable.dllInfo Restored backup of previous version - bin\2sxc\System.Diagnostics.DiagnosticSource.dllInfo Restored backup of previous version - bin\2sxc\System.Interactive.Async.dllInfo Component rolled back successfully - AssemblyInfo Rolling back component install - FileInfo Restored backup of previous version - icon.pngInfo Restored backup of previous version - License.txtInfo Restored backup of previous version - ReleaseNotes.txtInfo Component rolled back successfully - FileInfo Installation Failed - 2SexyContentInfo Starting Installation - 2SexyContent-AppInfo Starting Installation - ScriptInfo Begin Sql executionInfo Creating backup of previous version - SqlDataProvider\require-2sxc-9.SqlDataProviderInfo Created - SqlDataProvider\require-2sxc-9.SqlDataProviderInfo Executing require-2sxc-9.SqlDataProviderInfo Start Sql execution: require-2sxc-9.SqlDataProvider fileInfo End Sql execution: require-2sxc-9.SqlDataProvider fileInfo Finished Sql executionInfo Component installed successfully - ScriptInfo Starting Installation - ModuleInfo Module registered successfully - 2sxc-appInfo Component installed successfully - ModuleInfo Starting Installation - FileInfo Creating backup of previous version - icon-app.pngInfo Created - icon-app.pngInfo Component installed successfully - FileInfo Starting Installation - ConfigInfo Creating backup of previous version - web.configInfo Config file updated - web.configInfo Component installed successfully - ConfigInfo Config file changes committed - web.configFailure Package Installation abortedInfo Installation Failed - 2SexyContent-AppInfo Starting Installation - 2sic_Imazen_ImageResizerProInfo Starting Installation - ResourceFileInfo Expanding Resource fileInfo Creating backup of previous version - imageresizer_400_00aec4.pngInfo Created - imageresizer_400_00aec4.pngInfo Resource Files createdInfo Component installed successfully - ResourceFileInfo Starting Installation - AssemblyInfo Assembly already registered - bin\ImageResizer.dllInfo Creating backup of previous version - bin\ImageResizer.dllInfo Created - bin\ImageResizer.dllInfo Assembly already registered - bin\ImageResizer.Plugins.DiskCache.dllInfo Creating backup of previous version - bin\ImageResizer.Plugins.DiskCache.dllInfo Created - bin\ImageResizer.Plugins.DiskCache.dllInfo Assembly already registered - bin\ImageResizer.Plugins.WebP.dllInfo Creating backup of previous version - bin\ImageResizer.Plugins.WebP.dllInfo Created - bin\ImageResizer.Plugins.WebP.dllInfo Assembly already registered - bin\Imazen.WebP.dllInfo Creating backup of previous version - bin\Imazen.WebP.dllInfo Created - bin\Imazen.WebP.dllInfo Component installed successfully - AssemblyInfo Starting Installation - ConfigInfo Creating backup of previous version - web.configInfo Config file updated - web.configInfo Component installed successfully - ConfigInfo Config file changes committed - web.configFailure Package Installation abortedInfo Installation Failed - 2sic_Imazen_ImageResizerProInfo Starting Installation - Connect.Dnn.KoiInfo Starting Installation - ResourceFileInfo Expanding Resource fileInfo Creating backup of previous version - icon.pngInfo Created - icon.pngInfo Creating backup of previous version - License.txtInfo Created - License.txtInfo Creating backup of previous version - ReleaseNotes.txtInfo Created - ReleaseNotes.txtInfo Resource Files createdInfo Component installed successfully - ResourceFileInfo Starting Installation - AssemblyInfo Assembly already registered - bin\Connect.Dnn.Koi.dllInfo Creating backup of previous version - bin\Connect.Dnn.Koi.dllInfo Created - bin\Connect.Dnn.Koi.dllInfo Assembly already registered - bin\Connect.Koi.dllInfo Creating backup of previous version - bin\Connect.Koi.dllInfo Created - bin\Connect.Koi.dllInfo Component installed successfully - AssemblyFailure Package Installation abortedInfo Installation Failed - Connect.Dnn.KoiInfo Starting Installation - ToSic.RazorBladeInfo Starting Installation - ResourceFileInfo Expanding Resource fileInfo Creating backup of previous version - icon.pngInfo Created - icon.pngInfo Creating backup of previous version - License.txtInfo Created - License.txtInfo Creating backup of previous version - ReleaseNotes.txtInfo Created - ReleaseNotes.txtInfo Resource Files createdInfo Component installed successfully - ResourceFileInfo Starting Installation - AssemblyInfo Assembly already registered - bin\ToSic.Razor.dllInfo Creating backup of previous version - bin\ToSic.Razor.dllInfo Created - bin\ToSic.Razor.dllInfo Assembly already registered - bin\ToSic.Razor.Dnn.dllInfo Creating backup of previous version - bin\ToSic.Razor.Dnn.dllInfo Created - bin\ToSic.Razor.Dnn.dllInfo Component installed successfully - AssemblyFailure Package Installation abortedInfo Installation Failed - ToSic.RazorBladeInfo Starting Installation - Connect.RazorInfo Starting Installation - ResourceFileInfo Expanding Resource fileInfo Creating backup of previous version - icon.pngInfo Created - icon.pngInfo Creating backup of previous version - License.txtInfo Created - License.txtInfo Creating backup of previous version - ReleaseNotes.txtInfo Created - ReleaseNotes.txtInfo Resource Files createdInfo Component installed successfully - ResourceFileInfo Starting Installation - AssemblyInfo Assembly already registered - bin\Connect.Razor.dllInfo Creating backup of previous version - bin\Connect.Razor.dllInfo Created - bin\Connect.Razor.dllInfo Assembly already registered - bin\Connect.Razor.Dnn.dllInfo Creating backup of previous version - bin\Connect.Razor.Dnn.dllInfo Created - bin\Connect.Razor.Dnn.dllInfo Component installed successfully - AssemblyFailure Package Installation abortedInfo Installation Failed - Connect.RazorInfo Deleted temporary install folderEndJob Installation Failed
I've attempted to "repair" the installation via Settings-->Extensions-->Install Extension with the same results/errors in the install log.
I don't know if this is a bug in 2SXC, or something in particular about my installation. Similar reports of install issues related to unpacking Resources have led me to verify file/folder permissions on the site, but those seem ok.

welcome to StackOverflow :)
This is not a known issue. It seems to fail installing the resources - which is usually normal files in the DesktopModules folder or possibly .pdb files (debug files) in the bin folder.
My guess is that you may have changed security settings like file permissions on the server, which seems to block changes.
For anything else I would need more to go on.

Related

MSB4062 error publishing .NET7 app with publish profile

This is pretty easy to replicate but also code here:
https://github.com/dominicshaw/dotnet-publish-error
create an empty wpf project using .NET7
create a publish profile for ClickOnce
publish via command line (not visual studio)
Publish profile is almost totally standard (view here)
Command line from project directory:
dotnet publish PublishError.csproj -p:PublishProfile=ClickOnceProfile
Subsequent error:
MSBuild version 17.4.0+18d5aef85 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\7.0.100\Microsoft.Common.CurrentVersion.targets(4149,5): error MSB4062: The "Microsoft.Build.Tasks.RequiresFr
amework35SP1Assembly" task could not be loaded from the assembly Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKey
Token=b03f5f7f11d50a3a. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, a
nd that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\Users\shawd\source\repos\PublishError\Publi
shError\PublishError.csproj]
I have the latest SDKs installed and VS2022 up to date. This only happens via command line - I am able to publish from Visual Studio (I am setting up devops, so require command line).
This happens regardless of adding nuget package for Microsoft.Build.Tasks.Core. Note however nuget package v15.1.0.0 is not available - I have tried 15.1.548 and the latest instead.
Totally at a loss! Any ideas very welcome.
Thanks vm
During the tests with your project and files, I finally managed to publish it successfully with the command dotnet publish PublishError.csproj -p:PublishProfile=FolderProfile.
Here is the document for dotnet publish, as is referred,
The preceding example uses the FolderProfile.pubxml file that is found
in the <project_folder>/Properties/PublishProfiles folder. If you
specify a path and file extension when setting the PublishProfile
property, they are ignored. MSBuild by default looks in the
Properties/PublishProfiles folder and assumes the pubxml file
extension.
And I also succeeded with dotnet publish with your project.
==============================
update on 11/19
So I suppose that the issue is resulted from your definition for -p:PublishProfile=ClickOnceProfile,it will change the path where this command would search for the publish file
A partial answer as my workaround for anyone struggling with a similar problem:
I have found it impossible to do this with the dotnet cli but I can do it with MSBuild if I specifically target 17.4 (VS2022). By default, my Azure DevOps Server 2020 capability is the 2019 MSBuild (15.X), so I have to be explicit:
"C:\Program Files\Microsoft Visual Studio\2022\Professional\Msbuild\Current\Bin\MSBuild.exe" /restore /Verbosity:m /t:Publish /p:RuntimeIdentifier=win-x64 /p:configuration=Release /p:PublishProfile=ClickOnceProfile
This works - so in my pipeline I have created a batch file which runs this, then I copy the files to my ClickOnce location.
Not ideal, but a working pipeline.
Interesting side note - this dotnet cli command which should be idenitical (and indeed uses the correct 17.4 MSBuild) - does not work (with the same error):
dotnet msbuild -target:Publish -property:RuntimeIdentifiers=win-x64;Configuration=Release;PublishProfile=ClickOnceProfile

2SXC App and Content modules have different version numbers after upgrade. Can't repair upgrade or upgrade to latest version

DNN 7.4.2
Over a year ago, we upgraded from 2SXC 8.8.0 to 9.2.0. The upgrade took a really long time because have a pretty big DNN instance with many portals. We only use 2SXC on a couple of portals, though. Once the upgrade completed, App was still stuck on 8.8.0 while Content was fine at 9.2.0. At that time, we just left it as it was because we don't use App.
We're looking to upgrade 2SXC to the latest version (at the time of writing this, that version is 9.33.0) but if I try to repair the 9.2.0 or upgrade to 9.33.0, I get an error. See below.
StartJob Starting Installation
Info Starting Installation - 2SexyContent
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version - SqlDataProvider\Uninstall.SqlDataProvider
Failure ExceptionSystem.UnauthorizedAccessException: Access to the path 'M:\inetpub\myspecialwebsite\DesktopModules\ToSIC_SexyContent\SqlDataProvider\Uninstall.SqlDataProvider' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) at DotNetNuke.Common.Utilities.FileSystemUtils.CopyFile(String sourceFileName, String destFileName) at DotNetNuke.Common.Utilities.Internal.RetryableAction.TryIt() at DotNetNuke.Services.Installer.Util.CopyFile(InstallFile installFile, String basePath, Logger log) at DotNetNuke.Services.Installer.Installers.FileInstaller.InstallFile(InstallFile insFile)
Info Finished Sql execution
Failure Installation Failed - Script
Info Installation Failed - 2SexyContent
Info Starting Installation - 2SexyContent-App
Info Starting Installation - Module
Info Module registered successfully - 2sxc-app
Info Component installed successfully - Module
Info Starting Installation - File
Info Creating backup of previous version - icon-app.png
Failure ExceptionSystem.UnauthorizedAccessException: Access to the path 'M:\inetpub\myspecialwebsite\DesktopModules\ToSIC_SexyContent\icon-app.png' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) at DotNetNuke.Common.Utilities.FileSystemUtils.CopyFile(String sourceFileName, String destFileName) at DotNetNuke.Common.Utilities.Internal.RetryableAction.TryIt() at DotNetNuke.Services.Installer.Util.CopyFile(InstallFile installFile, String basePath, Logger log) at DotNetNuke.Services.Installer.Installers.FileInstaller.InstallFile(InstallFile insFile)
Failure Installation Failed - File
Info Rolling back component install - Module
Info Component rolled back successfully - Module
Info Installation Failed - 2SexyContent-App
Info Starting Installation - 2sic_Imazen_ImageResizerPro
Info Starting Installation - Script
Info Begin Sql execution
Info Finished Sql execution
Info Component installed successfully - Script
Info Starting Installation - Assembly
Info Assembly already registered - bin\ImageResizer.dll
Info Assembly registered - bin\ImageResizer.Plugins.DiskCache.dll
Info Creating backup of previous version - bin\ImageResizer.Plugins.DiskCache.dll
Failure ExceptionSystem.UnauthorizedAccessException: Access to the path 'M:\inetpub\myspecialwebsite\bin\ImageResizer.Plugins.DiskCache.dll' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) at DotNetNuke.Common.Utilities.FileSystemUtils.CopyFile(String sourceFileName, String destFileName) at DotNetNuke.Common.Utilities.Internal.RetryableAction.TryIt() at DotNetNuke.Services.Installer.Util.CopyFile(InstallFile installFile, String basePath, Logger log) at DotNetNuke.Services.Installer.Installers.FileInstaller.InstallFile(InstallFile insFile)
Failure Installation Failed - Assembly
Info Rolling back component install - Script
Info Component rolled back successfully - Script
Info Installation Failed - 2sic_Imazen_ImageResizerPro
Info Deleted temporary install folder
EndJob Installation Failed
It was missing IIS_IUSRS (default IIS user) in the folder so my colleague added it and it resolved the issue.

Restoring the entire ampps folder in wordpress installation directory

I have been working in a wordpress project locally with ampps. Unfortunately, my system crashed. But I made a copy of the entire ampps directory and kept it safe. My question is, can I restore this backed directory to a new ampps installation (replacing the ampps directory) so that I can restore the project.
Looking forward to your suggestions
Thanks

Headless build .sqlproj file on TFS build server

I'm attempting to build a .sqlproj on a TFS Build Server. I've followed the instructions here:
http://sqlproj.com/index.php/2012/03/headless-msbuild-support-for-ssdt-sqlproj-projects/
which I was directed to from here:
How to build .sqlproj projects on a build server?
But I still cannot build. The error is:
C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets
(441): The "SqlModelResolutionTask" task could not be instantiated
from "C:\Program Files
(x86)\Common7\IDE\Extensions\Microsoft\SQLDB\Dac\120\Microsoft.Data.Tools.Schema.Tasks.Sql.11.dll".
System.TypeInitializationException: The type initializer for
'Microsoft.Data.Tools.Schema.Tasks.Sql.DataTask' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.Tools.Schema.Sql, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified. at
Microsoft.Data.Tools.Schema.Sql.Extensibility.ToolingShim.ConfigureExtensions()
--- End of inner exception stack trace --- at Microsoft.Data.Tools.Schema.Tasks.Sql.DataTask..ctor()
The SqlTasks.targets file, used by the SQL project, references this:
C:\Program Files (x86)\Common7\IDE\Extensions\Microsoft\SQLDB\Dac\120\Microsoft.Data.Tools.Schema.Tasks.Sql.11.dll
which in turn references the invalid version mentioned above.
However, the files installed by the process in the link above don't install this version. They do install version 10.3.0.0, which is referenced by
C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\Microsoft.Data.Tools.Schema.Tasks.Sql.12.dll
but this file is not the one used by the .targets file.
I don't know what the numbers at the end of this dll mean, but it seems odd to me that the one ending 12.dll references an earlier version of the one ending 11.dll.
I'm using Visual Studio 2013 and SQL Server 2012 - neither of which are installed on the build server, which I believe is the recommended situation. I don't know what the IDE folder is, or why the .targets file is using it.
I've spent about two days now trying to get this to build, but I'm out of ideas. Anyone know what's going on?
If you are running VS2013 SSDT is built into VS as long as you select it on the install screen. Install VS2013 with SSDT onto your build server. create a build definition and under Process > Build > Advanced Add the following to the MSBuild arguments to build the sql proj
/t:Build
if you have a publish profile and want to test publishing to SQL then add the publish switch and provide the link to the profile file
/t:Publish /p:SqlPublishProfilePath=MyDB.publish.xml.
this will publish the db to the server specified in the publish file.
the publish profile file can be created by opening the project in Visual Studio, right click on the project and select publish. Select save once you are happy with the publish options and then check in the file to source control so the build can find it, (project Root).
I was having this issue building a SQL Server project on an Azure DevOps CI/CD pipeline. None of the pre-built build tasks would work for me. And it is not possible to install a VS instance on the build server, I guess.
I solved this by avoiding to add a SQL Server project to the solution.
I achieved this by using an MSBuild SDK, capable of producing a SQL Server Data-Tier Application package (.dacpac) from the set of SQL scripts. By adding this second project to the solution, I managed to continue taking advantage of linking the project to a live database through SQL Server Object Explorer on Visual Studio. I gave a more detailed explanation in this answer.

DNN Custom Authentication provider installation error

i developed a custom login module for my dnn site, i could install custom login in my local host installed dnn version 05.06.01 (238), but when i tried to install it in my Live site installed same dnn version, it failed to install and shows the Error as follows
Package Installation Report
See below for the results of the package installation
Error loading files from temporary folder - see below
StartJob Starting Installation
Info Starting Installation - DNN_CustomLoginAuthentication
Info Starting Installation - AuthenticationSystem
Info Authentication registered successfully - CustomLogin
Info Component installed successfully - AuthenticationSystem
Info Starting Installation - Assembly
Info Assembly registered - bin\Providers\DotNetNuke.Authentication.CustomLogin.dll
Info Created - bin\Providers\DotNetNuke.Authentication.CustomLogin.dll
Info Component installed successfully - Assembly
Info Starting Installation - File
Info Folder Created -
C:\inetpub\vhosts\CITYBROKERS.GR\httpdocs\DesktopModules\AuthenticationServices\CustomLogin\App_LocalResources
Info Created - App_LocalResources\Login.ascx.resx
Info Created - App_LocalResources\Settings.ascx.resx
Info Created - Login.ascx
Info Created - Settings.ascx
Info Created - license.txt
Info Created - CustomLogin_05.00.01_ReleaseNotes.txt
Info Created - trusterror.htm
Info Created - install.css
Info Created - logo.gif
Info Component installed successfully - File
Info Starting Installation - ResourceFile
Info Component installed successfully - ResourceFile
Info Starting Installation - Cleanup
Info Component installed successfully - Cleanup
Info Starting Installation - Config
Info Creating backup of previous version - web.config
Failure ExceptionSystem.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Installer.XmlMerge.UpdateNode(XmlNode rootNode, XmlNode actionNode) at DotNetNuke.Services.Installer.XmlMerge.ProcessNode(XmlNode node) at DotNetNuke.Services.Installer.XmlMerge.ProcessNodes(XmlNodeList nodes, Boolean saveConfig) at DotNetNuke.Services.Installer.XmlMerge.UpdateConfig(XmlDocument target) at DotNetNuke.Services.Installer.Installers.ConfigInstaller.Install()
Failure Installation Failed - Config
Info Rolling back component install - AuthenticationSystem
Info Authentication unregistered successfully - CustomLogin
Info Component rolled back successfully - AuthenticationSystem
Info Rolling back component install - Assembly
Info Assembly unregistered - bin\Providers\DotNetNuke.Authentication.CustomLogin.dll
Info Component rolled back successfully - Assembly
Info Rolling back component install - File
Info Component rolled back successfully - File
Info Rolling back component install - ResourceFile
Info Component rolled back successfully - ResourceFile
Info Rolling back component install - Cleanup
Info Component rolled back successfully - Cleanup
Info Installation Failed - DNN_CustomLoginAuthentication
Info Deleted temporary install folder
EndJob Installation Failed
Info Component rolled back successfully - AuthenticationSystem
It failed update the web.config. Check the config section in the provider's manifest, and see if it's referencing nodes that don't exist. Install the Symbols package onto your live site to get a line number for the exception that occurs (or, even better, get a local copy of your live site and walk through the installation in the debugger).
Check your permissions on the installs folder make sure NETWORK SERVICE/S (cant remember if it has an s) has read/write permissions

Resources