System.Security.Cryptography.X509Certificates error on appharbor. works in development
Why am I seeing this error when I deploy my app to appharbor?
Could not load file or assembly 'System.Security.Cryptography.X509Certificates' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
1. I have also tried to change the configuration to debug and back to release however still persists.
2. works in dev
3. 4.6.1/2 .net framework...probably something to do with shitty Rosyln?
Any clue whats going on here? H.E.L.P...its kind of urgent! much appreciated
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by evilroxx on 28 Jul, 2017 02:40 AM
So...it had nothing to do with the error...Apparently its the Rosyln compiler BS that was causing the issue...after I followed this https://blog.gldraphael.com/removing-roslyn-from-asp-net-4-5-2-project-template/ and re-deployed it started working...also btw the swagger issue I had was always fixed and its working now. I followed your exact steps. THANK YOU SO MUCH!!! You are the best, Rune.
Thanks
wanudev
evilroxx closed this discussion on 28 Jul, 2017 02:40 AM.
evilroxx re-opened this discussion on 29 Jul, 2017 07:32 PM
2 Posted by evilroxx on 29 Jul, 2017 08:38 PM
After fixing the Roslyn issue....the DLL issue still persists...can you please suggest whats going on here? I am running out of ideas and time.
3 Posted by evilroxx on 29 Jul, 2017 10:58 PM
So...if I remove the newVersion property or comment out the entire element from web.config then it works.
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.X509Certificates" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
do you know what is going on here?
Support Staff 4 Posted by rune on 02 Aug, 2017 02:37 AM
Hi,
I took a look at the application's Errors page but there doesn't seem to be any recently unhandled exceptions. Where are you seeing this issue and is there a way I can reproduce it?
Best,
Rune
5 Posted by evilroxx on 25 Aug, 2017 04:15 AM
It's happening during build...
Support Staff 6 Posted by rune on 26 Aug, 2017 07:18 AM
Hi,
Ok got it -- sounds like you've fixed another Roslyn related error, so can we close this one for now?
Best,
Rune
7 Posted by evilroxx on 07 Nov, 2017 02:41 AM
yes please. thanks for all your help!
Support Staff 8 Posted by rune on 07 Nov, 2017 04:41 AM
Ok great, thanks for the heads up! Let me know if there's anything else I can help with.
Best,
Rune
rune closed this discussion on 07 Nov, 2017 04:41 AM.