Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure web app not working as expected?? #48

Open
MacMcDell opened this issue Aug 24, 2018 · 8 comments
Open

Azure web app not working as expected?? #48

MacMcDell opened this issue Aug 24, 2018 · 8 comments

Comments

@MacMcDell
Copy link

Hi. I cannot seem to get the correct configuration for getting this to work on an azure web app. The web app is configured to run under 64bit and the library I am using is the 64 bit one. It works flawlessly on my local through localhost. I have included the the three libwkhtmltox files needing to be present in the root of the directory where startup.cs is located. I have done that.
From Kudu I can see this....
image

my appsettings in my web app are this:
image

my vs .net core website looks like this
image

My error is this
image

AggregateException: One or more errors occurred. (An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B))
DinkToPdf.SynchronizedConverter.Invoke(Func delegate)
DinkToPdf.SynchronizedConverter.Convert(IDocument document)

Any advice would be totally appreciated.

@tidusong
Copy link

I got the same issue , works find on local but below error if deploy to Azure web. (using 64 bit dll)
System.BadImageFormatException: An attempt was made to load a program with an incorrect format.

Any chance you got this solved ?

@MRauca
Copy link

MRauca commented Sep 12, 2018

I also have this issue. Does someone have an answer?

@tidusong
Copy link

I got this solved by change to 32 bit dll

@rajapc
Copy link

rajapc commented Sep 18, 2018

If Azure platform is 32 bit appservice, then it works fine if we use 32 bit dll.

@aleksa-kuzman
Copy link

I also have the same problem, tried both 32 and 64 bit version, nothing seems to be working...

@JasonYangNWI
Copy link

I got this solved by change to 32 bit dll

Hi @tidusong, I have the same issue. If I change platform to 32 bit(x86) and build it, I can't run it locally. Could you provide your steps? Thank you very much.

@JasonYangNWI
Copy link

If Azure platform is 32 bit appservice, then it works fine if we use 32 bit dll.

Hi @rajapc , do I need change local platform to x86 as well? Thanks.

@jimmytricks
Copy link

Hey guys does anyone have any updates on this? I'm experiencing the same issue. On my local the 64bit library works, however in Azure only the 32bit works. Experiencing the same error as above:

An attempt was made to load a program with an incorrect format.

Does anyone have any thoughts on a way to include both libraries and have the function work out which it requires? Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants