INSTALLATION ERROR

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 13 ans
Hi guys, anyone can help me please? When i run the installation of nopcommerce 2.30 on my web server i got this error. The same solution works great on my machine.

To complete this wizard you must know some information regarding your database server ("connection string"). Please contact your ISP if necessary. If you're installing on a local machine or server you might need information from your System Admin.

    Setup failed: Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Nop.Services.Configuration.ISettingService)' on type 'ConfigurationProvider`1'. ---> System.ApplicationException: No database instance at Nop.Data.Initializers.CreateTablesIfNotExist`1.InitializeDatabase(TContext context) in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Data\Initializers\CreateTablesIfNotExist.cs:line 70 at System.Data.Entity.Database.<>c__DisplayClass2`1.<SetInitializerInternal>b__0(DbContext c) at System.Data.Entity.Internal.InternalContext.<>c__DisplayClass5.<PerformDatabaseInitialization>b__3() at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() at System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c) at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase() at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() at System.Linq.Queryable.OrderBy[TSource,TKey](IQueryable`1 source, Expression`1 keySelector) at Nop.Services.Configuration.SettingService.<GetAllSettings>b__1() in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Services\Configuration\SettingService.cs:line 197 at Nop.Core.Caching.CacheExtensions.Get[T](ICacheManager cacheManager, String key, Int32 cacheTime, Func`1 acquire) in c:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Core\Caching\Extensions.cs:line 23 at Nop.Services.Configuration.SettingService.GetAllSettings() in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Services\Configuration\SettingService.cs:line 195 at Nop.Services.Configuration.SettingService.GetSettingByKey[T](String key, T defaultValue) in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Services\Configuration\SettingService.cs:line 123 at Nop.Services.Configuration.ConfigurationProvider`1.<BuildConfiguration>b__3(PropertyInfo prop) in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Services\Configuration\ConfigurationProvider.cs:line 28 at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Nop.Services.Configuration.ConfigurationProvider`1.BuildConfiguration() in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Services\Configuration\ConfigurationProvider.cs:line 35 at Nop.Services.Configuration.ConfigurationProvider`1..ctor(ISettingService settingService) in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Services\Configuration\ConfigurationProvider.cs:line 16 --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context) at Nop.Web.Framework.SettingsSource.<BuildRegistration>b__5[TSettings](IComponentContext c, IEnumerable`1 p) in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Presentation\Nop.Web.Framework\DependencyRegistrar.cs:line 279 at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.AutowiringParameter.<>c__DisplayClass2.<CanSupplyValue>b__0() at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.AutowiringParameter.<>c__DisplayClass2.<CanSupplyValue>b__0() at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.AutowiringParameter.<>c__DisplayClass2.<CanSupplyValue>b__0() at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.<Execute>b__6() at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context) at Nop.Core.Infrastructure.DependencyManagement.ContainerManager.Resolve[T](String key) in c:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Core\Infrastructure\DependencyManagement\ContainerManager.cs:line 108 at Nop.Core.Infrastructure.NopEngine.Resolve[T]() in c:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Libraries\Nop.Core\Infrastructure\NopEngine.cs:line 76 at Nop.Web.Controllers.InstallController.Index(InstallModel model) in C:\Users\Janluka\Documents\Lavoro\Template NOPCOMMERCE\Estratto\Presentation\Nop.Web\Controllers\InstallController.cs:line 430
Il y a 13 ans
Hello Dear,
Please follow these step by step.

Step 1
Please note that none service provider gave you the sql connection information.

Step 2
Copy this file to your local computer, listening to and edit the project folder.
C:\Users\Administrator\Desktop\Nop_JANLUKA\Presentation\Nop.Web\App_Data\Settings.txt

DataProvider: sqlserver
DataConnectionString: Data Source=192.168.1.1;Initial Catalog=NopDataBase;Integrated Security=False;Persist Security Info=False;User ID=sa;Password=1234;MultipleActiveResultSets=True

"step 1" noted Service provider SQL Connection information write to Settings.txt.

Step 3
Copy local Settings.txt to Service Provider Root App_Data\Settings.txt

And Follow the same method InstalledPlugins.txt.
or Try the latest version 2.4.

Note:
Requried SQL Con İnf
SQL Server name:
Database name:
SQL Username:
SQL Password:


Regards,
Il y a 13 ans
I try to follow the steps and i try the 2.40 but nothing.

Now i'm moving my local installation on Service Provider web server changing database connection information.

I got this error. I don't understand where's the problem.

Server Error in '/' Application.
No database instance
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.ApplicationException: No database instance

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ApplicationException: No database instance]
   Nop.Data.Initializers.CreateTablesIfNotExist`1.InitializeDatabase(TContext context) in CreateTablesIfNotExist.cs:70
   System.Data.Entity.<>c__DisplayClass2`1.<SetInitializerInternal>b__0(DbContext c) +75
   System.Data.Entity.Internal.<>c__DisplayClass5.<PerformDatabaseInitialization>b__3() +19
   System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +72
   System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +169
   System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c) +7
   System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +118
   System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +190
   System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase() +73
   System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +27
   System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +62
   System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
   System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +37
   System.Linq.Queryable.OrderByDescending(IQueryable`1 source, Expression`1 keySelector) +66
   Nop.Services.Tasks.ScheduleTaskService.GetAllTasks() in ScheduleTaskService.cs:66
   Nop.Services.Tasks.TaskManager.Initialize() in TaskManager.cs:41
   Nop.Web.MvcApplication.Application_Start() in Global.asax.cs:56

[HttpException (0x80004005): No database instance]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9170861
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +131
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253

[HttpException (0x80004005): No database instance]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9089964
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256
Il y a 13 ans
Hello Dear,
The previous experiments may be caused by damage to the database.
Your local Sql server on This DB of DBF and LDF file Move to IIS Server.
Or Backup of Local Sql Server , restore to IIS Server.
Il y a 13 ans
first of all thanks for the answers. I tried to backup and restore DB but nothing seems to change. I don't know what do now.
Il y a 13 ans
Hello dear,
Plase sent me [email protected] Technical information.
RDP Connection , SQL Con İnf, Web Site URL.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.