WcfService in x64 using ODP.NET x64 fails (.NET 4.5 and 4.0) - 64-bit

I have Windows 8.1 64 bit, VS 2012 32 bit , IIS 8.5, IIS Express 32 bit.
WcfService project Target Framework: .NET 4.5 - ImageRuntimeVersion: v4.0.30319
Service .NET 4.5 hosted in IIS 8.5 -> References Oracle.DataAccess.dll ProcessorArchitecture: Amd64 Version: 4.121.1.0
ERROR executing OracleConnection.Open
Oracle.DataAccess.Client.OracleException at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
Error for WcfService project with AnyCpu and WcfService project with x64
I test too using DllPath in section oracle.dataaccess.client and I get the same error
The same service NET 4.5 hosted now in IISExpress (x86) -> References Oracle.DataAccess.dll ProcessorArchitecture: X86 Version: 4.121.1.0
OK executing OracleConnection.Open
Any suggestions, how can I debug it or get logs about ODP.NET, and get solution ? is it possible?
I test again using Target Framework: .NET 4.0, and I get the same error (CLR 4.0 - v4.0.30319 the same for .NET 4.0 and 4.5)
I test too using DllPath, but wrong.
<oracle.dataaccess.client>
<settings>
<!-- For X64 -->
<!--<add name="DllPath" value="C:\app\Company\product\12.1.0\client_1\bin" />-->
<!-- For X86 -->
<!--<add name="DllPath" value="C:\app\Company\product\12.1.0\client_2\bin" />-->
</settings>
</oracle.dataaccess.client>
Full logs
Test Name: Obtener_datos_de_OdpNet_con_servicio_AnyCPU_hosted_en_IIS
ERROR select sysdate from dual
Oracle.DataAccess.Client.OracleException at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
*** LOG ***
Environment Data:
ProcessName: w3wp
Is64BitOperatingSystem: True
Is64BitProcess: True
SystemConfigurationFile: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config
ConfigurationFile: C:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfService\web.config
MainModule.FileName: c:\windows\system32\inetsrv\w3wp.exe
MainModule.ModuleName: w3wp.exe
BaseDirectory: C:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfService\
ApplicationBase: C:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfService\
FriendlyName: /LM/W3SVC/2/ROOT-2-130404614116233936
ApplicationName: c36153ea
Assembly Data:
Location: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\2090c609\c36153ea\assembly\dl3\92d3ec19\79a8efa4_4d4acf01\MyCompany.Lite.Frk.Data.Tests.WcfServiceLibrary.dll
ProcessorArchitecture: MSIL
Referenced Assemblies of MyCompany.Lite.Frk.Data.Tests.WcfServiceLibrary
mscorlib - None Location C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll - Amd64
System - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll - MSIL
System.Core - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll - MSIL
Oracle.DataAccess - None Location C:\Windows\Microsoft.Net\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.2.0__89b483f429c47342\Oracle.DataAccess.dll - Amd64
System.Data - None Location C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll - Amd64
System.ServiceModel - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll - MSIL
MyCompany.Lite.Data - None Location C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\2090c609\c36153ea\assembly\dl3\08991152\90904b1f_c349cf01\MyCompany.Lite.Data.dll - MSIL
Microsoft.Practices.EnterpriseLibrary.Data - None Location C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\2090c609\c36153ea\assembly\dl3\261813e9\c453c0e2_d648cf01\Microsoft.Practices.EnterpriseLibrary.Data.dll - MSIL
System.Runtime.Serialization - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll - MSIL
Oracle.DataAccess Data:
Assembly: Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
AssemblyQualifiedName: Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
Module.FullyQualifiedName: C:\Windows\Microsoft.Net\assembly\GAC_64\Oracle.DataAccess\v4.0_4.121.1.0__89b483f429c47342\Oracle.DataAccess.dll
Location: C:\Windows\Microsoft.Net\assembly\GAC_64\Oracle.DataAccess\v4.0_4.121.1.0__89b483f429c47342\Oracle.DataAccess.dll
ProcessorArchitecture: Amd64
Version: 4.121.1.0
FullName: Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
GlobalAssemblyCache: True
PortableExecutableKinds: ILOnly, PE32Plus
ImageFileMachine: AMD64
Creating connnection using Oracle.DataAccess.Client.OracleConnection to MyCompany.ConnectionStrings.Oracle.MYSCHEMA
Connnection False
TestOdpNetConnection using Oracle.DataAccess. Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERDB)(PORT=1523))(CONNECT_DATA=(SID=oas1d)));User Id=XXXXX;Password=XXXXX;
Oracle.DataAccess. Abriendo conexión a Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERDB)(PORT=1523))(CONNECT_DATA=(SID=oas1d)));User Id=XXXXX;Password=XXXXX;
TestOdpNetConnection. Error en la conexión.
Msg: Oracle.DataAccess.Client.OracleException at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
at MyCompany.SourceRepository.OdpNetHelper.TestOdpNetConnection(String connectionString, String& trace) in c:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfServiceLibrary\Common\OdpNetHelper.cs:line 60
Creating connnection using OdpNetDataContext to MyCompany.ConnectionStrings.Oracle.MYSCHEMA
ConnectionString: DATA SOURCE=MyDataSource;PASSWORD=XXXX;PERSIST SECURITY INFO=True;USER ID=MYSCHEMA
Database: data source=MyDataSource;persist security info=true;
DbProviderFactory: Oracle.DataAccess.Client.OracleClientFactory
Executing ExecuteNonQuery
Test Name: Obtener_datos_de_OdpNet_con_servicio_AnyCPU
Test Outcome: Passed
Result StandardOutput:
TestContext Messages:
Result:
OK
*** LOG ***
Environment Data:
ProcessName: iisexpress
Is64BitOperatingSystem: True
Is64BitProcess: False
SystemConfigurationFile: C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config
ConfigurationFile: C:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfService\web.config
MainModule.FileName: C:\Program Files (x86)\IIS Express\iisexpress.exe
MainModule.ModuleName: iisexpress.exe
BaseDirectory: C:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfService\
ApplicationBase: C:\TFS\Main\MyCompany.Lite.Frk\Net4.0\Tests\Apps\WcfService\
FriendlyName: /LM/W3SVC/3/ROOT-5-130404614413883655
ApplicationName: 6e9d8358
Assembly Data:
Location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9aada5e4\6e9d8358\assembly\dl3\12388fd2\79a8efa4_4d4acf01\MyCompany.Lite.Frk.Data.Tests.WcfServiceLibrary.dll
ProcessorArchitecture: MSIL
Referenced Assemblies of MyCompany.Lite.Frk.Data.Tests.WcfServiceLibrary
mscorlib - None Location C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll - X86
System - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll - MSIL
System.Core - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll - MSIL
Oracle.DataAccess - None Location C:\Windows\Microsoft.Net\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.2.0__89b483f429c47342\Oracle.DataAccess.dll - X86
System.Data - None Location C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll - X86
System.ServiceModel - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll - MSIL
MyCompany.Lite.Data - None Location C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9aada5e4\6e9d8358\assembly\dl3\7ec82898\90904b1f_c349cf01\MyCompany.Lite.Data.dll - MSIL
Microsoft.Practices.EnterpriseLibrary.Data - None Location C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\9aada5e4\6e9d8358\assembly\dl3\f06f5054\c453c0e2_d648cf01\Microsoft.Practices.EnterpriseLibrary.Data.dll - MSIL
System.Runtime.Serialization - None Location C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll - MSIL
Oracle.DataAccess Data:
Assembly: Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
AssemblyQualifiedName: Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
Module.FullyQualifiedName: C:\Windows\Microsoft.Net\assembly\GAC_32\Oracle.DataAccess\v4.0_4.121.1.0__89b483f429c47342\Oracle.DataAccess.dll
Location: C:\Windows\Microsoft.Net\assembly\GAC_32\Oracle.DataAccess\v4.0_4.121.1.0__89b483f429c47342\Oracle.DataAccess.dll
ProcessorArchitecture: X86
Version: 4.121.1.0
FullName: Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
GlobalAssemblyCache: True
PortableExecutableKinds: ILOnly, Required32Bit
ImageFileMachine: I386
Creating connnection using Oracle.DataAccess.Client.OracleConnection to MyCompany.ConnectionStrings.Oracle.MYSCHEMA
Connnection True
TestOdpNetConnection using Oracle.DataAccess. Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERDB)(PORT=1523))(CONNECT_DATA=(SID=oas1d)));User Id=XXXXX;Password=XXXXX;
Oracle.DataAccess. Abriendo conexión a Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERDB)(PORT=1523))(CONNECT_DATA=(SID=oas1d)));User Id=XXXXX;Password=XXXXX;
Oracle.DataAccess.OracleConnection State: Open
Oracle.DataAccess.OracleConnection ServerVersion: 11.2.0.3.0
Oracle.DataAccess.OracleConnection DataSource: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=SERVERDB)(PORT=1523))(CONNECT_DATA=(SID=oas1d)))
Oracle.DataAccess.OracleConnection ServiceName: sys$users
Oracle.DataAccess.OracleConnection InstanceName: oas1d
Oracle.DataAccess.OracleConnection HostName: SERVERDB
Oracle.DataAccess.OracleConnection DatabaseName: oas1d
Oracle.DataAccess.OracleConnection DatabaseDomainName: null
Conectado True y cerrando conexión
Creating connnection using OdpNetDataContext to MyCompany.ConnectionStrings.Oracle.MYSCHEMA
ConnectionString: DATA SOURCE=MyDataSource;PASSWORD=xxxxxx;PERSIST SECURITY INFO=True;USER ID=MYSCHEMA
Database: data source=MyDataSource;persist security info=true;
DbProviderFactory: Oracle.DataAccess.Client.OracleClientFactory
Executing ExecuteNonQuery
Result: -1 para select sysdate from dual
My environment:
I use Windows 8.1 64 bits.
I use VS 2012 Ultimate 32bit
I have installed:
64-bit ODAC 11.2 Release 3 (11.2.0.2.1) Xcopy for Windows x64
Location: C:\app\Company\odp.net\bin\2.x\Oracle.DataAccess.dll - ProcessorArchitecture: Amd64
Location: C:\app\Company\odp.net\bin\4\Oracle.DataAccess.dll - ProcessorArchitecture: Amd64
ODAC 11.2 Release 3 (11.2.0.2.1)
Location: C:\app\Company\product\11.2.0\client_2\odp.net\bin\2.x\Oracle.DataAccess.dll - ProcessorArchitecture: X86
Location: C:\app\Company\product\11.2.0\client_2\odp.net\bin\4\Oracle.DataAccess.dll - ProcessorArchitecture: X86
64-bit ODAC 12c Release 2 (12.1.0.1.2) for Windows x64
Location: C:\app\Company\product\12.1.0\client_1\odp.net\bin\2.x\Oracle.DataAccess.dll - ProcessorArchitecture: Amd64
Location: C:\app\Company\product\12.1.0\client_1\odp.net\bin\4\Oracle.DataAccess.dll - ProcessorArchitecture: Amd64
ODAC 12c Release 2 (12.1.0.1.2) and Oracle Developer Tools for Visual Studio
Location: C:\app\Company\product\12.1.0\client_2\odp.net\bin\2.x\Oracle.DataAccess.dll - ProcessorArchitecture: X86
Location: C:\app\Company\product\12.1.0\client_2\odp.net\bin\4\Oracle.DataAccess.dll - ProcessorArchitecture: X86
TNSNames.ora in this paths:
C:\app\Company\Network\Admin
C:\app\Company\product\11.2.0\client_2\Network\Admin
C:\app\Company\product\12.1.0\client_1\Network\Admin
C:\app\Company\product\12.1.0\client_2\Network\Admin
In GAC, I have all these references:
Oracle.DataAccess 32bit - 2.112.2.0 - CLR 2.0
Oracle.DataAccess 32bit - 2.121.1.0 - CLR 2.0
Oracle.DataAccess 64bit - 2.112.2.0 - CLR 2.0
Oracle.DataAccess 64bit - 2.121.1.0 - CLR 2.0
Oracle.DataAccess 32bit - 4.112.2.0 - CLR 4.0
Oracle.DataAccess 32bit - 4.121.1.0 - CLR 4.0
Oracle.DataAccess 64bit - 4.112.2.0 - CLR 4.0
Oracle.DataAccess 64bit - 4.121.1.0 - CLR 4.0
Oracle.ManagedDataAccess MSIL - 4.212.1.0 - CLR 4.0
Oracle.ManagedDataAccessDTC 32bit - 4.212.1.0 - CLR 4.0
Oracle.ManagedDataAccessDTC 64bit - 4.212.1.0 - CLR 4.0
Added:
For Tests.WcfServiceLibrary.csproj I add reference to Oracle.DataAccess x86.
Tests.WcfServiceLibrary.csproj is shared, it used for IIS sites x64 and for IISExpress sites x86.
Anyways, in executime time, it’s x64 loaded from GAC. View log:
*** LOG ***
ProcessName: w3wp
Is64BitOperatingSystem: True
Is64BitProcess: True
Assembly Data:
Location: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\2090c609\c36153ea\assembly\dl3\92d3ec19\fd0dc189_ea4ccf01\Tests.WcfServiceLibrary.dll
ProcessorArchitecture: MSIL
TargetFramework: .NET Framework 4.5
FullName: Tests.WcfServiceLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Referenced Assemblies of Tests.WcfServiceLibrary
Oracle.DataAccess - None Location C:\Windows\Microsoft.Net\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.2.0__89b483f429c47342\Oracle.DataAccess.dll - Amd64
I get this in the code:
var t = typeof(Oracle.DataAccess.Client.OracleConnection);
var assembly = t.Assembly;
var asmName = AssemblyName.GetAssemblyName(assembly.Location);
and the log for Oracle.DataAccess Data:
Assembly: Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
AssemblyQualifiedName: Oracle.DataAccess.Client.OracleConnection, Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
Module.FullyQualifiedName: C:\Windows\Microsoft.Net\assembly\GAC_64\Oracle.DataAccess\v4.0_4.121.1.0__89b483f429c47342\Oracle.DataAccess.dll
Location: C:\Windows\Microsoft.Net\assembly\GAC_64\Oracle.DataAccess\v4.0_4.121.1.0__89b483f429c47342\Oracle.DataAccess.dll
ProcessorArchitecture: Amd64
Version: 4.121.1.0
FullName: Oracle.DataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342
GlobalAssemblyCache: True
OracleException.get_Number gives me error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Oracle.DataAccess.Client.OracleException.get_Number()
at SourceRepository.OdpNetHelper.TestOdpNetConnection(String connectionString, String& trace) in c:\TFS\0.SourceRepository\OdpNet\OdpNetHelper.cs:line 108
Anyways, I get the error:
Msg: Oracle.DataAccess.Client.OracleException at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
at SourceRepository.OdpNetHelper.TestOdpNetConnection(String connectionString, String& trace) in c:\TFS\0.SourceRepository\OdpNet\OdpNetHelper.cs:line 61
OracleException.
Message:
Error Code: -2147467259
HResult: -2147467259
Errors: 0
But no error code

Related

When I use electron-builder to package an NSIS program, I get: Fatal error: Unable to parse version string for FileVersion

Electron-Builder Version: 22.14.5
Node Version: v16.13.1
Electron Version: 16.0.6
Electron Type (current, beta, nightly): current
Not using electron-updater
Target: nsis
Here is the console log.
Compilation succeeded.
• electron-builder version=22.14.5 os=5.10.89-1-MANJARO
• loaded configuration file=/home/aszswaz/document/notebook/code-example/webpack-electron-vue/config/electron-builder-win.js
• Specified application directory equals to project dir — superfluous or wrong configuration appDirectory=./
• writing effective config file=dist/electron-builder/builder-effective-config.yaml
• skipped dependencies rebuild reason=npmRebuild is set to false
• packaging platform=win32 arch=x64 electron=v16.0.6 appOutDir=dist/electron-builder/win-unpacked
• asar usage is disabled — this is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
• asar usage is disabled — this is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
⨯ cannot execute cause=exit status 1
errorOut=Fatal error: Unable to parse version string for FileVersion
0024:fixme:ver:GetCurrentPackageId (0032FE94 00000000): stub
command=wine /home/aszswaz/.cache/electron-builder/winCodeSign/winCodeSign-2.6.0/rcedit-ia32.exe /home/aszswaz/document/notebook/code-example/webpack-electron-vue/dist/electron-builder/win-unpacked/hanna.exe --set-version-string FileDescription hanna --set-version-string ProductName hanna --set-version-string LegalCopyright aszswaz --set-file-version v1.0.0 --set-product-version 1.0.0.0 --set-version-string InternalName hanna --set-version-string OriginalFilename '' --set-version-string CompanyName aszswaz --set-icon /home/aszswaz/document/notebook/code-example/webpack-electron-vue/public/icon.ico
workingDir=
This is the config file used.
module.exports = {
appId: "cn.aszswaz.demo.webpack-electron-vue",
productName: "hanna",
copyright: "aszswaz",
asar: false,
files: [
"dist/app/*",
"!**/node_modules/vue/*",
"!**/node_modules/vue-router/*"
],
artifactName: "${productName}-${arch}-${version}.${ext}",
directories: {
app: "./",
output: "./dist/electron-builder"
},
win: {
target: "nsis",
icon: "public/icon.ico"
},
nsis: {
oneClick: false,
perMachine: true,
allowToChangeInstallationDirectory: true
},
npmRebuild: false,
buildVersion: "v1.0.0",
electronCompile: false,
electronDownload: {
version: "16.0.6",
platform: "win32",
arch: "x64",
cache: process.cwd() + "/cache"
},
electronVersion: "v16.0.6"
}
What is the reason for this error? How can I fix this error?

Azure 500 error on a Blazor Wasm Hosted with Authentication

I am at a complete loss here. I have a Blazor WASM Hosted running .net5 which has been deployed to Azure App Services. When there was no Database there was no problem deploying to Azure. It loaded and ran as expected. I have since installed Identity and a DBContext. Everything builds locally and runs properly with a local SQL instance.
On Azure, I have created a new SQLServer as well as a SQL database. On the SQL Database Firewall Settings i have "Allow Azure Services and resources to access this server" as well as a Rule for my client IP (not the IP for the Azure App).
For the App Service in Configuration i have a ConnectionString named DefaultConnection (same as in appsettings.json) with the same connection string as the SQLDatabase provides, source AppConfig, Type SqlAzure
I am publishing to Azure using the VS2019 Publish on the Server project (the startup project). I chose Target to be Azure -> Azure App Sevices (Windows) and my instance name. Configuration is Release, Target Framework net5.0, DeploymentMode Framework-dependent, Target runtime Portable.
The Service Dependencies is set to AzureSqlDatabase which uses the ConnectionName DefaultConnection, Username and Password are the Admin UserPassword setup for the SQL Server created on Azure and the SaveConnectionStringValue is Azure App Settings. (This auto populates the App Services Configuration ConnectionString described above.
When I click publish I see in the output that all publishes correctly:
Publish Succeeded.
Web App was published successfully http://bbqfriend.azurewebsites.net/
========== Build: 1 succeeded, 0 failed, 6 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
Installation of Web App Site extension Microsoft.AspNetCore.AzureAppServices.SiteExtension is in progress...
Restarting the Web App...
Successfully installed Web App extension Microsoft.AspNetCore.AzureAppServices.SiteExtension
Successfully restarted Web App.
However when the page launches, It shows a 500 Error.
If I go back to the Publish and Edit the settings - Database - DefaultConnection and Check the Use this Connection string at runtime selecting the connectionstring configured in the ServiceDependencies as well as the EntityFrameworkMigrations DataContext Apply This Migrations on publish. When I publish that profile it will do the migrations as well as the Seeds I have defined within the DataContext OnModelCreating override
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
#region Identity Seed
modelBuilder.ApplyConfiguration(new ApplicationUserConfiguration());
modelBuilder.ApplyConfiguration(new IdentityRoleConfiguration());
modelBuilder.ApplyConfiguration(new IdentityUserRoleConfiguration());
#endregion
//modelBuilder.ApplyConfiguration(new CountryConfiguration());
}
So I know the connection string is correct and there is a Database with the proper model and seeded data. Why am I getting a 500?!?
Here is my appsettings.json in the Server project
{
"ConnectionStrings": {
"DefaultConnection": "Server=.;Database={DatabaseName};Trusted_Connection=True;MultipleActiveResultSets=true"
},
"IdentityServer": {
"Clients": {
"XXXX.Client": {
"Profile": "IdentityServerSPA"
}
}
},
"Serilog": {
"Using": [ "Serilog.Sinks.MSSqlServer" ],
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.AspNetCore": "Warning",
"Microsoft.AspNetCore.Authorization.DefaultAuthorizationService": "Warning",
"Microsoft.EntityFrameworkCore": "Warning",
"System": "Warning",
"System.Net.Http.HttpClient*": "Warning",
"IdentityServer4": "Warning",
"Serilog.AspNetCore": "Warning"
}
},
"WriteTo": [
{
"Name": "MSSqlServer",
"Args": {
"connectionString": "DefaultConnection",
"sinkOptionsSection": {
"tableName": "Logs"
},
"columnOptionsSection": {
"additionalColumns": [
{
"ColumnName": "InstanceId"
},
{
"ColumnName": "Origin"
},
{
"ColumnName": "SourceContext"
},
{
"ColumnName": "UserId"
},
{
"ColumnName": "Username"
}
],
"excludeAdditionalProperties": true
}
}
}
]
},
"AllowedHosts": "*"
}
Here is the Startup.cs for the Server project
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
//Register the Datacontext and Connection String
services.AddDbContext<DataContext>(options =>
options.UseSqlServer(
Configuration.GetConnectionString("DefaultConnection")));
services.AddDatabaseDeveloperPageExceptionFilter();
//Sets up the default Asp.net core Identity Screens - Use Identity Scaffolding to override defaults
services.AddDefaultIdentity<ApplicationUser>( options =>
{
options.SignIn.RequireConfirmedAccount = true;
options.Password.RequireDigit = true;
options.Password.RequireLowercase = true;
options.Password.RequireUppercase = true;
options.Password.RequiredUniqueChars = 0;
options.Password.RequireNonAlphanumeric = false;
options.Password.RequiredLength = 8;
options.User.RequireUniqueEmail = true;
})
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<DataContext>();
//Associates the User to Context with Identity
services.AddIdentityServer()
.AddApiAuthorization<ApplicationUser, DataContext>( options =>
{
options.IdentityResources["openid"].UserClaims.Add(JwtClaimTypes.Role);
options.ApiResources.Single().UserClaims.Add(JwtClaimTypes.Role);
});
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Remove(JwtClaimTypes.Role);
//Adds authentication handler
services.AddAuthentication().AddIdentityServerJwt();
//Register Repositories for Dependency Injection
services.AddScoped<ICountryRepository, CountryRepository>();
services.AddControllersWithViews();
services.AddRazorPages();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, DataContext dataContext)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseMigrationsEndPoint();
app.UseWebAssemblyDebugging();
}
else
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
//AutoMigrates data
//dataContext.Database.Migrate();
app.UseHttpsRedirection();
app.UseBlazorFrameworkFiles();
app.UseStaticFiles();
app.UseSerilogIngestion();
app.UseSerilogRequestLogging();
app.UseRouting();
app.UseIdentityServer();
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
endpoints.MapControllers();
endpoints.MapFallbackToFile("index.html");
});
}
}
Here is the Program.cs for the Server project
public class Program
{
public static void Main(string[] args)
{
var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json")
.Build();
Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(configuration)
.Enrich.WithProperty("InstanceId", Guid.NewGuid())
.Enrich.WithProperty("Origin", "Server")
.CreateLogger();
try
{
Log.Information("Starting up");
CreateHostBuilder(args).Build().Run();
}
catch (Exception ex)
{
Log.Fatal(ex, "Application start-up failed");
}
finally
{
Log.CloseAndFlush();
}
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseSerilog()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
Here is the Program.cs for the Client project
public static async Task Main(string[] args)
{
//Serilog
var levelSwitch = new LoggingLevelSwitch();
Log.Logger = new LoggerConfiguration()
.MinimumLevel.ControlledBy(levelSwitch)
.Enrich.WithProperty("InstanceId", Guid.NewGuid())
.Enrich.FromLogContext()
.WriteTo.BrowserHttp(controlLevelSwitch: levelSwitch)
.CreateLogger();
Log.ForContext<Program>().Information("Client has started");
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.Services.AddLogging(logging =>
{
logging.ClearProviders();
logging.AddSerilog(dispose: true);
});
builder.Services.AddHttpClient("XXX.ServerAPI", client => client.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress))
.AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();
// Supply HttpClient instances that include access tokens when making requests to the server project
builder.Services.AddTransient(sp =>
sp.GetRequiredService<IHttpClientFactory>()
.CreateClient("XXXX.ServerAPI"));
builder.Services.AddApiAuthorization()
.AddAccountClaimsPrincipalFactory<RolesClaimsPrincipalFactory>();
//Register Services
var baseAddress = new Uri($"{builder.HostEnvironment.BaseAddress}api/");
void RegisterTypedClient<TClient, TImplementation>(Uri apiBaseUrl)
where TClient : class where TImplementation : class, TClient
{
builder.Services.AddHttpClient<TClient, TImplementation>(client => client.BaseAddress = apiBaseUrl)
.AddHttpMessageHandler<BaseAddressAuthorizationMessageHandler>();
}
RegisterTypedClient<ICountryService, CountryService>(baseAddress);
await builder.Build().RunAsync();
}
I do have Serilog configured and it looks to be working as well. Here are the error messages I am seeing during the Server Launch
System.InvalidOperationException: Startup assembly Microsoft.ApplicationInsights.StartupBootstrapper failed to execute. See the inner exception for more details.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ApplicationInsights.StartupBootstrapper, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.ApplicationInsights.StartupBootstrapper, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.ExecuteHostingStartups()
--- End of inner exception stack trace ---
and
System.InvalidOperationException: Startup assembly DiagnosticServices.HostingStartup failed to execute. See the inner exception for more details.
---> System.IO.FileNotFoundException: Could not load file or assembly 'DiagnosticServices.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'DiagnosticServices.HostingStartup, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.ExecuteHostingStartups()
--- End of inner exception stack trace ---
UPDATE
I am able to replicate the above error messages and they are logged into the Database via Serilog.
So we can see the "Starting up" from the Server Program.cs Main method (above) and the next entry is from the EntityFramework Model Validation. Then comes the errors. I can see the Namespace as Microsoft.AspNetCore.Hosting.Diagnostics as the source of the exception.
I attempted to add a Nuget reference but that did nothing
I attempted to add a reference to added services.AddApplicationInsightsTelemetry(); to the Server Startup.cs ConfigureServices and the ApplicationInsights InstrumentationKey to the appsettings.json (which already existed within Azure as a Variable) but that did nothing
I added a reference to and added
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.UseSerilog()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>().UseAzureAppServices();
});
as per a workaround found here https://github.com/dotnet/extensions/issues/2566 which did not help
Update Day 2
Adding more information as I am still getting the same exceptions. Im curious if this is a compatibility issue between versions. My application is .net5 and running on Azure using .net5 early access.
Here are my Nuget packages for the Server Project
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="5.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="5.0.1" />
<PackageReference Include="Microsoft.AspNetCore.ApiAuthorization.IdentityServer" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.1" />
<PackageReference Include="Serilog.AspNetCore" Version="3.4.0" />
<PackageReference Include="Serilog.AspNetCore.Ingestion" Version="1.0.0-dev-00012" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
<PackageReference Include="Serilog.Sinks.MSSqlServer" Version="5.6.0" />
</ItemGroup>
Here are the Nuget Packages for the Client project
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="5.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.1" />
<PackageReference Include="Serilog.Sinks.BrowserHttp" Version="1.0.0-dev-00012" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>
I have tried removing Serilog from both the Client and Server projects. I still received a 500.
With Serilog Removed I tried using .UseAzureAppServices() from https://github.com/dotnet/extensions/issues/2566 with no luck as well.
I did notice an additional error messsage
2021-01-06 19:00:38.322 +00:00 [Error] Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware: An unhandled exception has occurred while executing the request.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderConfigurationExtensions.<>c.<AddSigningCredentials>b__10_2(IServiceProvider sp)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at ... (removed for post size)
I have been able to isolate this to becoming an issue when I deployed my site as a Blazor WebAssembly Hosted solution. I was able to get a version of my site which was upgraded to .net5 PRE switching from Blazor WebAssembly to Blazor WebAssembly Hosted. The .net5 version was able to be deployed to Azure without issues. When deploying the WebAssembly Hosted version is when I got 500 Errors. So this has to do with deploying a Blazor WebAssembly Hosted solution to Azure.
I also experimented by creating an out of the box Blazor WebAssembly Hosted solution without Authentication and deployed it to Azure. This works with no issues. HOWEVER, when I create an out of the box Blazor WebAssembly Hosted WITH Authentication (individual user accounts stored in app) and deployed it to Azure it fails with 500!
The easiest way to make it work:
Add/set the env variable ASPNETCORE_ENVIRONMENT to Development
...and your Hosted Blazor WASM with Identity will finally work in Azure App Service
If you don't want the easy way above, do these instead:
Generate a self-signed certificated by following this article:
(in the Generating a Self-Signed Certificate section)
https://gavilan.blog/2020/08/18/blazor-using-a-self-signed-certificate-for-identityserver4-in-azure-app-service/
Remember the password you used for the generated certificate.
Place the certificate in your project (e.g. in the server project)
Append these in the appsettings.json file:
Publish the app once again.

Publishing .NET Core 3.1 web app to Azure App Service Linux using VS 2019 showing Welcome screen

I am trying to deploy my .NET Core 3.1 MVC web application on Azure App Service Linux using Visual Studio 2019. All that I can see after deployment is the welcome screen shown below.
I checked some SO links which asked me to check whether the files are present on http://{app-name}.scm.azurewebsites.net which I confirmed are there. Check the image below.
I have also added the correct Startup Command on my app service configuration page.
EDIT
Digging a little further, I found the following error log file from Azure.
2020-03-11T20:19:14.263485764Z _____
2020-03-11T20:19:14.263521665Z / _ \ __________ _________ ____
2020-03-11T20:19:14.263527465Z / /_\ \___ / | \_ __ \_/ __ \
2020-03-11T20:19:14.263531865Z / | \/ /| | /| | \/\ ___/
2020-03-11T20:19:14.263535966Z \____|__ /_____ \____/ |__| \___ >
2020-03-11T20:19:14.263540366Z \/ \/ \/
2020-03-11T20:19:14.263544466Z A P P S E R V I C E O N L I N U X
2020-03-11T20:19:14.263548466Z
2020-03-11T20:19:14.263552066Z Documentation: http://aka.ms/webapp-linux
2020-03-11T20:19:14.263555866Z Dotnet quickstart: https://aka.ms/dotnet-qs
2020-03-11T20:19:14.263559566Z ASP .NETCore Version: 3.1.0
2020-03-11T20:19:14.263563267Z Note: Any data outside '/home' is not persisted
2020-03-11T20:19:14.438520438Z Running oryx -appPath /home/site/wwwroot -output /opt/startup/startup.sh -defaultAppFilePath /defaulthome/hostingstart/hostingstart.dll -bindPort 8080 -userStartupCommand ''
2020-03-11T20:19:14.654004939Z Oryx Version: 0.2.20191105.2, Commit: 67e159d71419415435cb5d10c05a0f0758ee8809, ReleaseTagName: 20191105.2
2020-03-11T20:19:14.661143991Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2020-03-11T20:19:14.661606007Z Could not find operation ID in manifest. Generating an operation id...
2020-03-11T20:19:14.662016422Z Build Operation ID: e539cda2-065a-4380-8443-113a8833110a
2020-03-11T20:19:16.245422274Z Writing output script to '/opt/startup/startup.sh'
2020-03-11T20:19:16.918107003Z Trying to find the startup DLL name...
2020-03-11T20:19:16.918873230Z Found the startup D name: BHD.Web.dll
2020-03-11T20:19:16.918885630Z Running the command: dotnet "BHD.Web.dll"
2020-03-11T20:19:21.158001162Z Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Razor.Runtime, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
2020-03-11T20:19:21.158026363Z
2020-03-11T20:19:21.158031663Z File name: 'Microsoft.AspNetCore.Razor.Runtime, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
2020-03-11T20:19:21.158036463Z at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
2020-03-11T20:19:21.158041063Z at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
2020-03-11T20:19:21.158045763Z at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
2020-03-11T20:19:21.158052864Z at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder`1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1 derivedAttributes)
2020-03-11T20:19:21.158063864Z at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType)
2020-03-11T20:19:21.158068564Z at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
2020-03-11T20:19:21.158072864Z at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
2020-03-11T20:19:21.158076964Z at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
2020-03-11T20:19:21.158081065Z at System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit)
2020-03-11T20:19:21.158085265Z at System.Reflection.CustomAttributeExtensions.GetCustomAttribute[T](Assembly element)
2020-03-11T20:19:21.158089465Z at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartFactory.GetApplicationPartFactory(Assembly assembly)
2020-03-11T20:19:21.158094665Z at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateDefaultParts(String entryAssemblyName)
2020-03-11T20:19:21.158098965Z at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.GetApplicationPartManager(IServiceCollection services)
2020-03-11T20:19:21.158103165Z at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection services)
2020-03-11T20:19:21.158107265Z at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersCore(IServiceCollection services)
2020-03-11T20:19:21.158111866Z at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersWithViewsCore(IServiceCollection services)
2020-03-11T20:19:21.158115966Z at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersWithViews(IServiceCollection services)
2020-03-11T20:19:21.158120066Z at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddMvc(IServiceCollection services)
2020-03-11T20:19:21.158124266Z at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddRelatedParts(IdentityBuilder builder)
2020-03-11T20:19:21.158128466Z at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddDefaultUI(IdentityBuilder builder)
2020-03-11T20:19:21.158132666Z at BHD.Web.Startup.ConfigureServices(IServiceCollection services) in C:\Priyank\Projects\ServiceBerry\Sourcecode\BHD.Web\Startup.cs:line 36
2020-03-11T20:19:21.158137267Z at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
2020-03-11T20:19:21.158141367Z at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2020-03-11T20:19:21.158145567Z at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
2020-03-11T20:19:21.158152667Z at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
2020-03-11T20:19:21.158157267Z at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
2020-03-11T20:19:21.158161567Z at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
2020-03-11T20:19:21.158166368Z at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services)
2020-03-11T20:19:21.158170568Z at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass12_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
2020-03-11T20:19:21.158175068Z at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
2020-03-11T20:19:21.158179168Z at Microsoft.Extensions.Hosting.HostBuilder.Build()
2020-03-11T20:19:21.158183268Z at BHD.Web.Program.Main(String[] args) in C:\Priyank\Projects\ServiceBerry\Sourcecode\BHD.Web\Program.cs:line 16
2020-03-11T20:19:21.158187668Z
2020-03-11T20:19:21.177212339Z
2020-03-11T20:19:21.207111394Z ptrace(ATTACH, 29) FAILED Operation not permitted
2020-03-11T20:19:21.207772817Z Writing minidump with heap to file /home/logs/dumps/coredump.519bbab76c1d.29.1583957954
2020-03-11T20:19:21.618304499Z /opt/startup/startup.sh: line 12: 29 Aborted (core dumped) dotnet "BHD.Web.dll"
This happens if you don't have the starting page above the hostingstart.html. Make sure your default page is listed in here and is above hostingstart.html so that it will be picked by default.
You need to set the startup command as dotnet yourapp.dll under general settings.
Also make sure to check "Remove additional files at destination button during republish" on Visual Studio. That will remove the existing files in the WebApp before uploading the files.

Sonarqube unable to load component

Im getting a error while running sonar-scanner on a (self-hosted) vsts agent. The agent (visual studio team services) is running on a kubernetes cluster (linux).
In VSTS i added the Sonarqube prepare and run analyses (retrieved via the VSTS marketplace). At the run analyses i get the following error:
2018-04-17T13:41:17.7246126Z 13:41:17.718 ERROR: Error during SonarQube Scanner execution
2018-04-17T13:41:17.7257629Z 13:41:17.718 ERROR: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
2018-04-17T13:41:17.7289820Z 13:41:17.719 ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.ActiveRules
Full verbose logging of the sonar-scanner:
2018-04-17T13:40:55.4491103Z Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
2018-04-17T13:40:55.9843800Z INFO: Scanner configuration file: /vsts/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.1.1/sonar-scanner/conf/sonar-scanner.properties
2018-04-17T13:40:55.9872383Z INFO: Project root configuration file: NONE
2018-04-17T13:40:56.0773880Z 13:40:56.071 INFO: SonarQube Scanner 3.1.0.1141
2018-04-17T13:40:56.0788506Z 13:40:56.076 INFO: Java 1.8.0_162 Oracle Corporation (64-bit)
2018-04-17T13:40:56.0805405Z 13:40:56.076 INFO: Linux 4.9.0-5-amd64 amd64
2018-04-17T13:40:56.4592573Z 13:40:56.458 DEBUG: keyStore is :
2018-04-17T13:40:56.4608365Z 13:40:56.459 DEBUG: keyStore type is : jks
2018-04-17T13:40:56.4620170Z 13:40:56.460 DEBUG: keyStore provider is :
2018-04-17T13:40:56.4631954Z 13:40:56.460 DEBUG: init keystore
2018-04-17T13:40:56.4643759Z 13:40:56.461 DEBUG: init keymanager of type SunX509
2018-04-17T13:40:56.5660597Z 13:40:56.564 DEBUG: Create: /root/.sonar/cache
2018-04-17T13:40:56.5696355Z 13:40:56.568 INFO: User cache: /root/.sonar/cache
2018-04-17T13:40:56.5709625Z 13:40:56.569 DEBUG: Create: /root/.sonar/cache/_tmp
2018-04-17T13:40:56.5752714Z 13:40:56.574 DEBUG: Extract sonar-scanner-api-batch in temp...
2018-04-17T13:40:56.5940510Z 13:40:56.592 DEBUG: Get bootstrap index...
2018-04-17T13:40:56.5952154Z 13:40:56.593 DEBUG: Download: https://<url>/batch/index
2018-04-17T13:40:56.7993378Z 13:40:56.798 DEBUG: Get bootstrap completed
2018-04-17T13:40:56.8215666Z 13:40:56.818 DEBUG: Download https://<url>/batch/file?name=sonar-scanner-engine-shaded-6.5.jar to /root/.sonar/cache/_tmp/fileCache5321971657904640201.tmp
2018-04-17T13:41:02.6399191Z 13:41:02.638 DEBUG: Create isolated classloader...
2018-04-17T13:41:02.6506592Z 13:41:02.649 DEBUG: Start temp cleaning...
2018-04-17T13:41:02.6644082Z 13:41:02.663 DEBUG: Temp cleaning done
2018-04-17T13:41:02.6656506Z 13:41:02.663 DEBUG: Execution getVersion
2018-04-17T13:41:02.6669835Z 13:41:02.665 INFO: SonarQube server 6.5.0
2018-04-17T13:41:02.6684967Z 13:41:02.665 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
2018-04-17T13:41:02.6701596Z 13:41:02.666 DEBUG: Work directory: /vsts/agent/_work/1/s/.scannerwork
2018-04-17T13:41:02.6713389Z 13:41:02.667 DEBUG: Execution execute
2018-04-17T13:41:02.9257781Z 13:41:02.924 DEBUG: Publish global mode
2018-04-17T13:41:03.0332419Z 13:41:03.032 INFO: Load global settings
2018-04-17T13:41:03.1301467Z 13:41:03.128 DEBUG: GET 200 https://<url>/api/settings/values.protobuf | time=89ms
2018-04-17T13:41:03.1423184Z 13:41:03.140 INFO: Load global settings (done) | time=109ms
2018-04-17T13:41:03.1546880Z 13:41:03.153 INFO: User cache: /root/.sonar/cache
2018-04-17T13:41:03.3769269Z 13:41:03.375 INFO: Load plugins index
2018-04-17T13:41:03.3867504Z 13:41:03.385 DEBUG: GET 200 https://<url>/deploy/plugins/index.txt | time=9ms
2018-04-17T13:41:03.3882935Z 13:41:03.387 INFO: Load plugins index (done) | time=12ms
2018-04-17T13:41:03.3894980Z 13:41:03.388 DEBUG: Load plugins
2018-04-17T13:41:03.3919841Z 13:41:03.390 DEBUG: Download plugin sonar-csharp-plugin-5.10.1.1411.jar to /root/.sonar/cache/_tmp/fileCache5198949102678735871.tmp
2018-04-17T13:41:03.4017607Z 13:41:03.399 DEBUG: GET 200 https://<url>/deploy/plugins/csharp/sonar-csharp-plugin-5.10.1.1411.jar | time=9ms
2018-04-17T13:41:06.7030760Z 13:41:06.699 DEBUG: Download plugin sonar-python-plugin-1.8.0.1496.jar to /root/.sonar/cache/_tmp/fileCache5837697557641973805.tmp
2018-04-17T13:41:06.7140570Z 13:41:06.712 DEBUG: GET 200 https://<url>/deploy/plugins/python/sonar-python-plugin-1.8.0.1496.jar | time=11ms
2018-04-17T13:41:07.7937342Z 13:41:07.792 DEBUG: Download plugin sonar-java-plugin-4.12.0.11033.jar to /root/.sonar/cache/_tmp/fileCache3113521041013245867.tmp
2018-04-17T13:41:07.8036767Z 13:41:07.802 DEBUG: GET 200 https://<url>/deploy/plugins/java/sonar-java-plugin-4.12.0.11033.jar | time=10ms
2018-04-17T13:41:09.1704132Z 13:41:09.169 DEBUG: Download plugin sonar-scm-git-plugin-1.2.jar to /root/.sonar/cache/_tmp/fileCache3652847485025121764.tmp
2018-04-17T13:41:09.1814559Z 13:41:09.179 DEBUG: GET 200 https://<url>/deploy/plugins/scmgit/sonar-scm-git-plugin-1.2.jar | time=10ms
2018-04-17T13:41:10.1258417Z 13:41:10.124 DEBUG: Download plugin sonar-flex-plugin-2.3.jar to /root/.sonar/cache/_tmp/fileCache1763014158619511232.tmp
2018-04-17T13:41:10.1434478Z 13:41:10.141 DEBUG: GET 200 https://<url>/deploy/plugins/flex/sonar-flex-plugin-2.3.jar | time=17ms
2018-04-17T13:41:10.5811390Z 13:41:10.579 DEBUG: Download plugin sonar-xml-plugin-1.4.3.1027.jar to /root/.sonar/cache/_tmp/fileCache4278096937563691973.tmp
2018-04-17T13:41:10.5931521Z 13:41:10.591 DEBUG: GET 200 https://<url>/deploy/plugins/xml/sonar-xml-plugin-1.4.3.1027.jar | time=12ms
2018-04-17T13:41:13.0089908Z 13:41:13.006 DEBUG: Download plugin sonar-php-plugin-2.10.0.2087.jar to /root/.sonar/cache/_tmp/fileCache8869518949034818200.tmp
2018-04-17T13:41:13.0190680Z 13:41:13.017 DEBUG: GET 200 https://<url>/deploy/plugins/php/sonar-php-plugin-2.10.0.2087.jar | time=11ms
2018-04-17T13:41:13.9587794Z 13:41:13.956 DEBUG: Download plugin sonar-scm-svn-plugin-1.5.0.715.jar to /root/.sonar/cache/_tmp/fileCache8353866177366095107.tmp
2018-04-17T13:41:13.9686573Z 13:41:13.966 DEBUG: GET 200 https://<url>/deploy/plugins/scmsvn/sonar-scm-svn-plugin-1.5.0.715.jar | time=10ms
2018-04-17T13:41:15.7441037Z 13:41:15.740 DEBUG: Download plugin sonar-javascript-plugin-3.1.1.5128.jar to /root/.sonar/cache/_tmp/fileCache1134031791761299423.tmp
2018-04-17T13:41:15.7552087Z 13:41:15.753 DEBUG: GET 200 https://<url>/deploy/plugins/javascript/sonar-javascript-plugin-3.1.1.5128.jar | time=10ms
2018-04-17T13:41:16.6007888Z 13:41:16.598 DEBUG: Load plugins (done) | time=13210ms
2018-04-17T13:41:16.6656267Z 13:41:16.664 DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
2018-04-17T13:41:16.8080245Z 13:41:16.806 DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
2018-04-17T13:41:16.8782356Z 13:41:16.877 DEBUG: Plugins:
2018-04-17T13:41:16.8803313Z 13:41:16.877 DEBUG: * C# 5.10.1.1411 (csharp)
2018-04-17T13:41:16.8814834Z 13:41:16.877 DEBUG: * SonarPython 1.8.0.1496 (python)
2018-04-17T13:41:16.8826606Z 13:41:16.878 DEBUG: * SonarJava 4.12.0.11033 (java)
2018-04-17T13:41:16.8838164Z 13:41:16.878 DEBUG: * Git 1.2 (scmgit)
2018-04-17T13:41:16.8849469Z 13:41:16.878 DEBUG: * Flex 2.3 (flex)
2018-04-17T13:41:16.8861132Z 13:41:16.878 DEBUG: * SonarXML 1.4.3.1027 (xml)
2018-04-17T13:41:16.8872441Z 13:41:16.878 DEBUG: * SonarPHP 2.10.0.2087 (php)
2018-04-17T13:41:16.8884157Z 13:41:16.878 DEBUG: * SVN 1.5.0.715 (scmsvn)
2018-04-17T13:41:16.8895519Z 13:41:16.879 DEBUG: * SonarJS 3.1.1.5128 (javascript)
2018-04-17T13:41:17.2954878Z 13:41:17.294 INFO: Process project properties
2018-04-17T13:41:17.3024512Z 13:41:17.301 DEBUG: Process project properties (done) | time=7ms
2018-04-17T13:41:17.3187780Z 13:41:17.317 INFO: Load project repositories
2018-04-17T13:41:17.3400387Z 13:41:17.339 DEBUG: GET 200 https://<url>/batch/project.protobuf?key=<key> | time=20ms
2018-04-17T13:41:17.3772015Z 13:41:17.376 INFO: Load project repositories (done) | time=59ms
2018-04-17T13:41:17.4391020Z 13:41:17.438 DEBUG: Available languages:
2018-04-17T13:41:17.4407025Z 13:41:17.438 DEBUG: * C# => "cs"
2018-04-17T13:41:17.4419498Z 13:41:17.439 DEBUG: * Python => "py"
2018-04-17T13:41:17.4431469Z 13:41:17.440 DEBUG: * Java => "java"
2018-04-17T13:41:17.4447051Z 13:41:17.440 DEBUG: * Flex => "flex"
2018-04-17T13:41:17.4459538Z 13:41:17.440 DEBUG: * XML => "xml"
2018-04-17T13:41:17.4471153Z 13:41:17.440 DEBUG: * PHP => "php"
2018-04-17T13:41:17.4483109Z 13:41:17.440 DEBUG: * JavaScript => "js"
2018-04-17T13:41:17.4494550Z 13:41:17.445 INFO: Load quality profiles
2018-04-17T13:41:17.4667036Z 13:41:17.465 DEBUG: GET 200 https://<url>/api/qualityprofiles/search.protobuf?projectKey=<key> | time=20ms
2018-04-17T13:41:17.4718216Z 13:41:17.471 INFO: Load quality profiles (done) | time=26ms
2018-04-17T13:41:17.4787808Z 13:41:17.478 INFO: Load active rules
2018-04-17T13:41:17.5539598Z 13:41:17.552 DEBUG: GET 200 https://<url>/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWLTddaUW_zM7o53qFW6&p=1&ps=500 | time=73ms
2018-04-17T13:41:17.6794770Z 13:41:17.678 INFO: ------------------------------------------------------------------------
2018-04-17T13:41:17.6808969Z 13:41:17.678 INFO: EXECUTION FAILURE
2018-04-17T13:41:17.6823237Z 13:41:17.678 INFO: ------------------------------------------------------------------------
2018-04-17T13:41:17.6838138Z 13:41:17.678 INFO: Total time: 21.735s
2018-04-17T13:41:17.7207625Z 13:41:17.718 INFO: Final Memory: 8M/109M
2018-04-17T13:41:17.7229316Z 13:41:17.718 INFO: ------------------------------------------------------------------------
2018-04-17T13:41:17.7246126Z 13:41:17.718 ERROR: Error during SonarQube Scanner execution
2018-04-17T13:41:17.7257629Z 13:41:17.718 ERROR: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
2018-04-17T13:41:17.7289820Z 13:41:17.719 ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.ActiveRules
2018-04-17T13:41:17.7301826Z 13:41:17.728 ERROR:
2018-04-17T13:41:17.7318487Z 13:41:17.728 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
2018-04-17T13:41:17.7530568Z ##[error]/vsts/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.1.1/sonar-scanner/bin/sonar-scanner failed with return code: 1
The class org.sonar.api.batch.rule.ActiveRules is defined in sonar-plugin-api, so I think the bug is caused by a plugin.
I see you use C# 5.10.1.1411. I found this issue: ActiveRulesPublisher issue for C# 5.10.1. The reporter uses exactly the same version as you (5.10.1.1411). Steps which should solve your problem:
stop the SonarQube server
purge the {SONAR_QUBE}/data/es folder
restart the SonarQube server
relaunch the project analysis

InstallShield not uninstalling previous software release

I’m using InstallShield 2013 to package a major release of our software. After building the setup.exe, and attempting to install the software, it appears to be unable to uninstall the previous version, and abandons the installation. This problem only exists when there is a previous version of the software installed.
InstallShield has the following settings applied:
Generated a new ProductCode for the release
The UpgradeCode matches the older MSI UpgradeCode
A new package code and product version number
Under Media > Upgrades, I’ve selected to “Completely uninstall old setup before installing new setup”
I also have a verbose log of the process, and have checked the sections of the log that contain “return value 3” (failures). From the log file we can see that the action of FindRelatedProducts has found the previous version of the software.
I’ve included some snippets from the log file below which may help determine the problem.
Action 11:55:42: InstallValidate. Validating install
Action start 11:55:42: InstallValidate.
MSI (c) (2C:54) [11:55:42:648]: RESTART MANAGER: Session opened.
MSI (c) (2C:54) [11:55:42:653]: Note: 1: 2262 2: ListBox 3: -2147287038
Action ended 11:55:42: InstallValidate. Return value 3.
Action ended 11:55:42: INSTALL. Return value 3.
CustomAction returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 11:55:42: RemoveExistingProducts. Return value 3.
MSI (s) (9C:34) [11:55:53:690]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 11:55:53: INSTALL. Return value 3.
MSI (s) (9C:34) [11:55:54:030]: MainEngineThread is returning 1603
MSI (s) (9C:90) [11:55:54:032]: RESTART MANAGER: Session closed.
MSI (s) (9C:90) [11:55:54:033]: RESTART MANAGER: Session closed.
MSI (s) (9C:90) [11:55:54:034]: User policy value 'DisableRollback' is 0
MSI (s) (9C:90) [11:55:54:034]: Machine policy value 'DisableRollback' is 0
MSI (s) (9C:90) [11:55:54:034]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (9C:90) [11:55:54:034]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (9C:90) [11:55:54:034]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (9C:90) [11:55:54:034]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (9C:90) [11:55:54:034]: Restoring environment variables
MSI (c) (2C:4C) [11:55:54:035]: Back from server. Return value: 1603
MSI (c) (2C:4C) [11:55:54:035]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (2C:4C) [11:55:54:035]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 11:55:54: ExecuteAction. Return value 3.
Update: I've added another section of the log containing information related to the InstallValidate action as it might make the problem more apparent.
Action start 12:25:43: InstallValidate.
MSI (s) (A4:18) [12:25:43:819]: PROPERTY CHANGE: Deleting MsiRestartManagerSessionKey property. Its current value is 'b7f8802fe41c494db739e217b2dcf2bd'.
MSI (s) (A4:18) [12:25:43:820]: Feature: SoftwareName; Installed: Local; Request: Absent; Action: Absent
MSI (s) (A4:18) [12:25:43:820]: Feature: freetrial; Installed: Local; Request: Absent; Action: Absent
MSI (s) (A4:18) [12:25:43:820]: Feature: studentlicence; Installed: Local; Request: Absent; Action: Absent
MSI (s) (A4:18) [12:25:43:820]: Component: __SoftwareName66; Installed: Null; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: __SenintalAdminControlCenter65; Installed: Null; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: __hinstall65; Installed: Null; Request: Absent; Action: Absent
MSI (s) (A4:18) [12:25:43:820]: Component: __SoftwareName65; Installed: Null; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: __HaspRuntime65; Installed: Null; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: __MS_Support65; Installed: Null; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: ASCII; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: Doc; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: LIBRARY; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: MASTER; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: MSVideo; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: PDF; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: SAMPLES; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: SKETCH; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: Textures; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: SoftwareName; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: freetrial; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: studentlicence; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: AllOtherFiles; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: SenintalAdminControlCenter; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: x64bin; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: hinstall; Installed: Local; Request: Absent; Action: Absent
MSI (s) (A4:18) [12:25:43:820]: Component: HaspRuntime; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: MS_Support; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: Breve32; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: MSPictures; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: haspvendorlib; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: SentAllService; Installed: Local; Request: Absent; Action: Absent
MSI (s) (A4:18) [12:25:43:820]: Component: BReveService; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: NeverOverwrtie; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: _1B0A62E7C92FAC42CE4B32C814E0C048; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: _02C2A85C84D8D5F11ECD2931FC44A3F9; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: haspds_msi.dll.6CF3F7DF_6AED_451D_BF8F_AD216156BF2B; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: haspds_windows.dll1.6CF3F7DF_6AED_451D_BF8F_AD216156BF2B; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Component: CreateFolder.6CF3F7DF_6AED_451D_BF8F_AD216156BF2B; Installed: Local; Request: Absent; Action: Null
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: BindImage
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: ProgId
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: PublishComponent
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: SelfReg
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: Extension
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: Font
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: Class
MSI (s) (A4:18) [12:25:43:820]: Note: 1: 2205 2: 3: TypeLib
MSI (s) (A4:18) [12:25:43:823]: Note: 1: 2205 2: 3: _RemoveFilePath
MSI (s) (A4:18) [12:25:43:824]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: BindImage
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: ProgId
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: PublishComponent
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: SelfReg
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: Extension
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: Font
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: Class
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2205 2: 3: TypeLib
Action ended 12:25:43: INSTALL. Return value 3.
MSI (s) (A4:18) [12:25:43:824]: Note: 1: 2727 2:
MSI (c) (A0:38) [12:25:43:847]: RESTART MANAGER: Session opened.
MSI (c) (A0:38) [12:25:43:851]: Note: 1: 2262 2: ListBox 3: -2147287038
Action ended 12:25:43: InstallValidate. Return value 3.
After much much research and tinkering with various options I've finally got it working. The issue was related to a few services which we release with our software. These services were not being stopped during the installation process. To fix this we set the "Shared" option of every component to No, and changed the Component Code (GUID), of every component, to be different from the previous years release.

Resources