core icon indicating copy to clipboard operation
core copied to clipboard

Unable to load DLL 'Combase.dll'

Open JamieKeeling opened this issue 9 years ago • 4 comments

My service has been migrated to CSPROJ / .NET Core 1.1 and I am unable to get past the early initialization phase:

combase

The .CSPROJ for the executing instance doesn't appear to contain anything that would need to touch Combase.dll

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
    <AssemblyName>ServiceHost</AssemblyName>
    <OutputType>Exe</OutputType>
    <PackageId>ServiceHost</PackageId>
    <RuntimeFrameworkVersion>1.1.2</RuntimeFrameworkVersion>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="wwwroot\**\*;node_modules" />
    <EmbeddedResource Remove="wwwroot\**\*;node_modules" />
    <None Update="**.user;**.vspscc">
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\src\EXPN.Common.ProductBrokersService\EXPN.Common.ProductBrokersService.csproj" />
    <ProjectReference Include="..\..\src\BusinessLayer\EXPN.BusinessLayer.ProductBrokersService\EXPN.BusinessLayer.ProductBrokersService.csproj" />
    <ProjectReference Include="..\..\src\Controllers\EXPN.Controllers.ProductBrokersService\EXPN.Controllers.ProductBrokersService.csproj" />
    <ProjectReference Include="..\..\src\DataLayer\EXPN.DataLayer.ProductBrokersService\EXPN.DataLayer.ProductBrokersService.csproj" />
    <ProjectReference Include="..\..\src\Mappers\EXPN.Mappers.ProductBrokersService.External\EXPN.Mappers.ProductBrokersService.External.csproj" />
    <ProjectReference Include="..\..\src\Mappers\EXPN.Mappers.ProductBrokersService.External\EXPN.Mappers.ProductBrokersService.External.csproj" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="EXPN.Core.Cache" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Config" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Data.Dynamo" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.DI" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Logging" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Logging.Http" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Logging.Kinesis" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Mapper" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Security.Cryptography" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.ServiceAddOns" Version="2.6.*" />
    <PackageReference Include="EXPN.Core.Storage.S3" Version="2.6.*" />
    <PackageReference Include="Microsoft.AspNetCore.Hosting" Version="1.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
    <PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.1.2" />
    <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" />
    <PackageReference Include="Microsoft.CSharp" Version="4.3.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="1.1.1" />
    <PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.2" />
    <PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.1.0" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="1.1.3" />
    <PackageReference Include="Swashbuckle" Version="6.0.0-beta901" />
    <PackageReference Include="System.Collections" Version="4.3.0" />
    <PackageReference Include="System.Console" Version="4.3.0" />
    <PackageReference Include="System.Linq" Version="4.3.0" />
    <PackageReference Include="System.Runtime" Version="4.3.0" />
    <PackageReference Include="System.Runtime.InteropServices" Version="4.3.0" />
    <PackageReference Include="System.Threading" Version="4.3.0" />
  </ItemGroup>

</Project>

Note: EXPN.Core refer to internal .NET Standard 1.6.1 libraries.

For reference, this is my dotnet output:

image

Another user on a separate machine is able to run the service without issue. Their dotnet output is as follows:

image

All machines in question are running on Windows 7, however I have also verified the service works on a Windows 10 VM using the same runtime version of .NET Core

JamieKeeling avatar Jul 27 '17 16:07 JamieKeeling

Potential duplicate of https://github.com/dotnet/cli/issues/6699

Not sure on what the end resolution was at this point.

JamieKeeling avatar Jul 27 '17 18:07 JamieKeeling

@yizhang82 any ideas?

Petermarcu avatar Aug 04 '17 15:08 Petermarcu

I've cc @AlfredoMS in https://github.com/dotnet/cli/issues/6699

yizhang82 avatar Aug 04 '17 19:08 yizhang82

Discussed and resolved in https://github.com/dotnet/cli/issues/6699

JamieKeeling avatar Aug 11 '17 11:08 JamieKeeling