I used the Visual Studio template called "Sitefinity Intermediate Module" to create a new module. I registered the module through the Admin, but the new module does not show up in the admin menu pages. After running it in debug mode though, I see that it crashes silently here:
This is the exception:
==================================
System.Reflection.TargetInvocationException was unhandled by user code
Message=Exception has been thrown by the target of an invocation.
Source=mscorlib
StackTrace:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
at System.Activator.CreateInstance[T]()
at Telerik.Sitefinity.Data.ManagerBase`1.GetManager[T](String providerName, String transactionName)
at Telerik.Sitefinity.Data.ManagerBase`1.GetManager[T](String providerName)
at MyNamespace.Samples.SamplesManager.GetManager(String providerName)
InnerException: Telerik.OpenAccess.Exceptions.ConfigurationException
HelpLink=
www.telerik.com/.../using-configuration-files-for-class-libraries.html
Message=Cannot find section 'backendconfiguration' with id 'mssqlConfiguration'.
See History property for more details.
Source=Unity_ILEmit_DynamicClasses
CanRetry=true
History=Resolving connection with id='BootstrapConnection'
Config file=(Database.Get parameter)
Check <openaccess> node
Found connection node with id='BootstrapConnection'
Connection node is not empty
Found backendconfigurationname='mssqlConfiguration'
Resolving backendconfiguration id='mssqlConfiguration'
Checking assembly MyNamespace.Samples, Version=1.0.4041.33623, Culture=neutral, PublicKeyToken=null
Backend configuration not resolvable.
StackTrace:
at DynamicModule.ns.Wrapped_OpenAccessSamplesDataProvider_1982cc9024a4434692587d7663326bb6.Initialize(String providerName, NameValueCollection config, Type managerType)
at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)
at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, ExceptionPolicyName policy, ManagerBase`1 manager)
at Telerik.Sitefinity.Data.ManagerBase`1.SetProvider(String providerName, String transactionName)
at Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName)
at Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName)
at Telerik.Sitefinity.Modules.GenericContent.ContentManagerBase`1..ctor(String providerName)
at MyNamespace.Samples.SamplesManager..ctor(String providerName)
at MyNamespace.Samples.SamplesManager..ctor()
InnerException:
============================