Hello,
I recently uploaded NopC from a test site to my production site (they use the same database server), and receive the error below. I have verified the connection strings in Web.config and APP_Data\settings.txt and all are correct. Where else should I look?
Thanks in advance!
Jeff
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) +778
System.Data.Entity.<>c__DisplayClass2`1.<SetInitializerInternal>b__0(DbContext c) +70
System.Data.Entity.Internal.<>c__DisplayClass8.<PerformDatabaseInitialization>b__6() +19
System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action) +60
System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization() +181
System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c) +7
System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input) +110
System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action) +185
System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase() +73
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +28
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +52
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.OrderBy(IQueryable`1 source, Expression`1 keySelector) +66
Nop.Services.Configuration.SettingService.<GetAllSettings>b__1() +196
Nop.Core.Caching.CacheExtensions.Get(ICacheManager cacheManager, String key, Int32 cacheTime, Func`1 acquire) +93
Nop.Services.Configuration.SettingService.GetAllSettings() +85
Nop.Services.Configuration.SettingService.GetSettingByKey(String key, T defaultValue) +103
Nop.Services.Configuration.ConfigurationProvider`1.<BuildConfiguration>b__3(PropertyInfo prop) +127
System.Linq.WhereSelectArrayIterator`2.MoveNext() +66
System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +85
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +381
System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
Nop.Services.Configuration.ConfigurationProvider`1.BuildConfiguration() +1374
lambda_method(Closure , Object[] ) +72
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +212