Error after deploying dev to production
I am currently testing Sitefinity 7 and I am trying to deploy sitefinity project but running to many different errors and I I am stuck on this one error. Currently 2 sitefinity sites are running in IIS on my local machine: one dev and one prod. I have created a custom page template, a custom MVC widget, and few sample pages.
To deploy this, I published the web site from VS2013 to File System then move the folder to the deployment folder. I have changed the connection string on DataConfig so it points to the production database and corrected the problem ProjectConfig where it had the wrong projectName attribute.
After changing all that I recycled the AppPool and got this error
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +14634175
Telerik.Sitefinity.Utilities.TypeConverters.TypeResolutionService.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +1405
Telerik.Sitefinity.Modules.Ecommerce.EcommerceModule.RegisterProductType(SitefinityTypeRegistry registry, ProductType productType) +56
Telerik.Sitefinity.Modules.Ecommerce.EcommerceModule.RegisterTypes(SitefinityTypeRegistry registry) +940
Telerik.Sitefinity.Services.SitefinityTypeRegistry.Initialize() +83
Telerik.Sitefinity.Services.SitefinityTypeRegistry.EnsureInitialized() +97
Telerik.Sitefinity.SiteSync.SyncingManager.RegisterType(String type, SiteSyncTypeKind typeKind, IEnumerable`1 dependencyTypes) +129
Telerik.Sitefinity.SiteSync.SyncingManager..ctor() +276
Telerik.Sitefinity.SiteSync.SiteSyncModule.RegisterTypes(IUnityContainer container) +32
Telerik.Sitefinity.SiteSync.SiteSyncModule.Initialize(ModuleSettings settings) +90
Telerik.Sitefinity.Services.SystemManager.InitializeModule(ModuleSettings settings, InstallContext installContext, Nullable`1 start, Boolean skipLoading) +1055
Telerik.Sitefinity.Services.SystemManager.Initialize() +1408
Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes() +761
Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +528
Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +159
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +530
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
[HttpException (0x80004005): The given key was not present in the dictionary.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12966756
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12806561
What am I doing wrong here?
Thanks,
Johan
Hello Johan,
The proper way of deploying a Sitefinity site to IIS is described in our Documentation. The site does not need to be published via Visual Studio.
Additionally here is some information about how to push your solution to production. You can also view this video for further reference.
Regards,
Ivan D. Dimitrov
Telerik