Sitefinity Error Log

Sitefinity HttpCompileException (0x80004005): External component has thrown an exception

Sam RuebyC#, Sitefinity Leave a Comment

I recently ran into a confusing stack trace occurring in several Sitefinity applications running on a single server. They all varied, but followed a similar pattern: So there’s a few things I notice with this stack trace, which helped me narrow down what might be at fault: The top of the stack trace is in System.Web. That means it’s the …

Spiral noteboook with notes, pen, keyboard on desk

When should you use a struct instead of a class?

Sam RuebyC# Leave a Comment

Deciding when to use a struct in C# can be tricky. In many ways they’re the same.  If you went your entire programming career only using classes you’d probably be fine. Structs have some benefits over classes, and knowing the differences between them can give provide you a useful tool. Before I took this deep dive, two things came to my mind about …