Because it fails during application start. Here is how I catched that exception.
protected void Application_Error(object sender, EventArgs e)
{
Exception ex = Server.GetLastError();
}
This is stacktrace from it:
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)\r\n
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()\r\n
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()\r\n
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)\r\n
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)\r\n
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild,
Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)\r\n
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context,
Boolean allowCrossApp, Boolean throwIfNotFound)\r\n at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(
VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)\r\n
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)\r\n
at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)\r\n
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
And here is inner exception:
Inheritance security rules violated by type: 'SD.LLBLGen.Pro.ORMSupportClasses.LLBLGenProDataSourceDesigner2'.
Derived types must either match the security accessibility of the base type or be less accessible.
Stacktrace from inner exception:
at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)\r\n
at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)\r\n
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType
attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)\r\n
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)\r\n
at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)\r\n
at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type)\r\n
at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes()\r\n
at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes()\r\n
at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType)\r\n
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate,
Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin)\r\n
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean
topLevelControlInTemplate, PropertyEntry pse)\r\n at
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate,
Boolean topLevelControlInTemplate, PropertyEntry pse)\r\n
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate,
Boolean topLevelControlInTemplate, PropertyEntry pse)\r\n
at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()\r\n
at System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers()\r\n
at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()\r\n
at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder,
VirtualPath virtualPath)\r\n at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)\r\n
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
You can also create own project 5.2.3 and try to upgrade to 5.3.0 if you don't want to use above project from links.
Make sure you are trying it with Webform where is used SD.LLBLGen.Pro.ORMSupportClasses.Web dll.