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
Windsor WCF integration broken after ASP.NET 4.6 upgrade #84
Comments
I got the same issue |
I can confirm this is reproducible on .NET Framework 4.6. Running the Windsor unit tests results in 2 failures and 73 errors, many of the errors are this problem but there are also other errors. Here is stack trace from one of the unit tests:
I don't know much about WCF or our WCF Facility, but attempted to dig into it for a bit. I didn't work out what is causing it, unfortunately Microsoft hasn't released the reference source for 4.6 CTP and the 4.5.2 reference source shows I think someone will need to put together a small example program using just WCF to submit to MSConnect, I couldn't find an existing defect for it but the search is terrible there. |
how about a pull request instead of demands? On Thu, Apr 30, 2015 at 7:08 PM Matteo Migliore notifications@github.com
|
@kkozmic : I still have it on my todo list, but MS just released .NET 4.6 RC version - I will try it first. They may already fixed this issue. |
@Buthrakaur no, the issue is present also in the RC version. |
Hi @kkozmic :) Do you have any update? The strange thing is that with another application (LINQPad for example) or a new application that uses .NET 4.0 like our, it works. I don't understand what can I change to allow a "compatibilty" mode. LINQPad has this configuration in the app.config: But I can remove that line and continue to work. As you can read here. Have idea how to patch the application? Also on Windows 10 does not work. Thank you! |
No updates. This looks like a bug introduced in WCF 4.6 so it makes sense it would work on older versions of .NET The best course of action would be to alert Microsoft of this issue's existence and see if they can fix it. |
@kkozmic what I don't understand is why in some applications it works and in other don't. I can create a sample in LINQPad that you can run in a VM with Windows 10 if you can. Thank you in any case! :) |
I might add that I only see this Exception if running a 32-bit IIS app-pool. It is not present in a 64-bit IIS app-pool |
@polyzois good catch. The problem really occurs only in 32-bit process, so the bug isn't that significant these days. I just switched to 64bit version of IISExpress and the problem is gone. |
Thanks @Buthrakaur for the update and confirm the workaround. This issue was reported through the Connect feedback to us too. It is not a WCF issue but an issue with 32-bit JIT. I can see the issue has been fixed by the JIT team, so this should work again when Visual Studio 2015 RTM is released. |
Only 3 failing tests with .NET 4.6 RTM. Guess this issue is resolved then. Thanks @zhenlan for the info! |
Hello,
I was trying Visual Studio 2015 CTP and got ASP.NET 4.6 upgrade during the VS installation. I use Windsor WCF integration, which seems to get broken due to this upgrade. I'm injecting Castle.Facilities.WcfIntegration.IWcfClientFactory to my services and use this simple extension method to retrieve the WCF client:
The GetClient method throws this exception after the upgrade:
There's obviously some breaking change in ASP.NET 4.6 WCF. I already tried to debug the Windsor source code, bud wasn't able to understand the code enough to be able to figure out where the problem is. Did anyone faced the same problem? Any hints what to try to workaround the problem?
The same error ocurs after recent Windows 10 Windows Update when ASP.NET 4.6 runtime upgrade was delivered.
The text was updated successfully, but these errors were encountered: