Steve Morgan
Steve Morgan

Reputation: 13091

Enterprise Library reference causing Azure DevFabric crash

This one's driving me a bit bonkers today!

I have an Azure app that I'm beefing up. Today's exercise is to implement exception handling using Enterprise Library 5.0's Exception Handling Application Block.

However, I've discovered that when I add a reference to Microsoft.Practives.EnterpriseLibrary.ExceptionHandling, my web role (an MVC 2 UI) crashes in wawebhost.exe.

I can add references to the assemblies on which ExceptionHandling depends, namely

I can add a reference to the Logging Application Block, just fine.

But as soon as I add a reference to the pesky Exception Handling Application Block and hit F5, BANG!

Microsoft Windows Azure Web Host has stopped working
Problem Event Name: APPCRASH
Application Name: WaWebHost.exe
Fault Module Name: KERNELBASE.dll

Help??

[Update] I've been through and tried all of the other application blocks, too. Adding a reference to the Cryptography application block yields the same result but all the others seem fine...

Upvotes: 0

Views: 293

Answers (1)

Steve Morgan
Steve Morgan

Reputation: 13091

Oooh, now I'm cross!

It turned out that the fully qualified path to Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll was longer than 260 characters but the path to Microsoft.Practices.EnterpriseLibrary.Logging.dll wasn't. Similarly with the Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll.

Problem 'resolved' by changing the meaningful project name to "UI"!

Upvotes: 2

Related Questions