Compiling Xibo Client dotnet

Sorry for ask this basic question. Iam using VS 2015, win 8.1

I downloaded the zip package from github and I am trying build it with C# with Visual Studio 2015.

When I try to build with Debug Option all works well and no errors.

But, if I use the Release option I get: “Could not load file or assembly ‘file:///C:\XXX\AxInterop.WMPLib.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515 (E_INVALIDARG))]”

Some help, please.

Luiz

The WMP libs should be included in the repository and referenced in the “References” section - you could try to remove and re-add them from there.

I assume you are building for x86?

Hi,
Yes I am building to x86.

In references, I have listed: AxInterop.WMPLib.dll and Interop.WMPLib.dll.
I remove them and I add them again.
I tried then a build and the problem continues with Release version.
With Debug mode there is no problem.

On application folder I have a subdirectory called wmpdll containing AxInterop.WMPLib.dll and Interop.WMPLib.dll.
But, only debug mode is building without error.

Can you suggest something more?

Luiz

I am sure you will have forgotten to change the platform target for your release build: http://stackoverflow.com/questions/6208674/why-is-interop-wmplib-unable-to-load-assembly-in-release-mode-but-works-in-debu

Thank you Mr Dan, but

My plataform to Release Build is x86 and to Debug build is also x86. I am not building to anyCPU.

O problem happens only with Release Build/x86 settings.

I have searched in google and stackoverflow and I did not find a solution.

Luiz

Please try to go to windows explorer, find that dll and then unblock it.

2 Likes

It solved the problem. Many thanks. It saved my day.

This topic was automatically closed 6 hours after the last reply. New replies are no longer allowed.