Run time error

Mar 24, 2009 at 11:31 AM
Hi Kaziman,

Any ideas on this one - fresh install on Vista Business, VS 2008 and SQL2008?

Server Error in '/' Application.


The type Kigg.Service.UserScoreService does not have a constructor that takes the parameters (IUserScoreTable).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The type Kigg.Service.UserScoreService does not have a constructor that takes the parameters (IUserScoreTable).

Source Error:

 

Line 18:         {

Line 19:             UnityConfigurationSection configuration = (UnityConfigurationSection) ConfigurationManager.GetSection("unity");

Line 20:             configuration.Containers.Default.Configure(_container);

Line 21:         }

Line 22:


Source File: C:\Projects\KiGG-v2.1\EnterpriseLibrary\Unity\UnityDependencyResolver.cs    Line: 20

Stack Trace:

 

[InvalidOperationException: The type Kigg.Service.UserScoreService does not have a constructor that takes the parameters (IUserScoreTable).]

   Microsoft.Practices.Unity.InjectionConstructor.FindConstructor(Type typeToCreate) +486

   Microsoft.Practices.Unity.InjectionConstructor.AddPolicies(Type typeToCreate, String name, IPolicyList policies) +52

   Microsoft.Practices.Unity.InjectedMembers.ConfigureInjectionFor(Type typeToInject, String name, InjectionMember[] injectionMembers) +164

   Microsoft.Practices.Unity.Configuration.TypeInjectionElement.Configure(IUnityContainer container) +458

   Microsoft.Practices.Unity.Configuration.UnityTypeElement.Configure(IUnityContainer container) +339

   Microsoft.Practices.Unity.Configuration.UnityContainerElement.Configure(IUnityContainer container) +392

   Kigg.Infrastructure.EnterpriseLibrary.UnityDependencyResolver..ctor() in C:\Projects\KiGG-v2.1\EnterpriseLibrary\Unity\UnityDependencyResolver.cs:20

 

[TargetInvocationException: Exception has been thrown by the target of an invocation.]

   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0

   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86

   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230

   System.Activator.CreateInstance(Type type, Boolean nonPublic) +67

   System.Activator.CreateInstance(Type type) +6

   Kigg.Infrastructure.DependencyResolverFactory.CreateInstance() in C:\Projects\KiGG-v2.1\Core\Infrastructure\IoC\DependencyResolverFactory.cs:22

   Kigg.Infrastructure.IoC.InitializeWith(IDependencyResolverFactory factory) in C:\Projects\KiGG-v2.1\Core\Infrastructure\IoC\IoC.cs:16

   Kigg.Infrastructure.Bootstrapper..cctor() in C:\Projects\KiGG-v2.1\Core\Infrastructure\Bootstrapper\Bootstrapper.cs:11

 

[TypeInitializationException: The type initializer for 'Kigg.Infrastructure.Bootstrapper' threw an exception.]

   Kigg.Infrastructure.Bootstrapper.Run() in C:\Projects\KiGG-v2.1\Core\Infrastructure\Bootstrapper\Bootstrapper.cs:22

   Kigg.Web.GlobalApplication.OnStart() in C:\Projects\KiGG-v2.1\Web\Global.asax.cs:11

   Kigg.Web.GlobalApplication.Application_Start() in C:\Projects\KiGG-v2.1\Web\Global.asax.cs:23

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

Best regards,
Steve

Coordinator
Apr 15, 2009 at 3:19 PM
Which version you are running?
Apr 15, 2009 at 3:35 PM
Hi Kaziman,
Thanks for getting back. I am running the version for RC1.0. I'll upgrade to the RTM version and get back to you.
Best Regards,
Steve