Sitecore / autohaus

An open source demo site for Sitecore 7
47 stars 18 forks source link

Duplicate site definition: autohaus. #6

Closed jondomin closed 11 years ago

jondomin commented 11 years ago

After I include the files app_config\Includes I get the below error.

Server Error in '/' Application.

Duplicate site definition: autohaus.

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: Duplicate site definition: autohaus.

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:

[InvalidOperationException: Duplicate site definition: autohaus.] Sitecore.Diagnostics.Assert.IsFalse(Boolean condition, String message) +61 Sitecore.Sites.ConfigSiteProvider.InitializeSites() +424 Sitecore.Sites.ConfigSiteProvider.GetSites() +15 Sitecore.Sites.SiteContextFactory.GetSites() +172 Sitecore.Sites.SiteContextFactory.GetSiteContext(String hostName, String fullPath, Int32 portNumber) +79 Sitecore.Pipelines.HttpRequest.SiteResolver.ResolveSiteContext(HttpRequestArgs args) +335 Sitecore.Pipelines.HttpRequest.SiteResolver.Process(HttpRequestArgs args) +34 (Object , Object[] ) +59 Sitecore.Pipelines.PipelineMethod.Invoke(Object[] parameters) +36 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +237 Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +158 Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +64 Sitecore.Pipelines.CorePipeline.Run(String pipelineName, PipelineArgs args) +50 Sitecore.Nexus.Web.HttpModule.(Object , EventArgs ) +450 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044

alexshyba commented 11 years ago

The include folder contains environment specific files, you don't need to copy them all to your webroot. If you want to rebuild the code yourself, select the build target (for ex. 'Demo'), configure TDS, and do the build. The config transformations will take place, and TDS will deploy the configs for your build target.

Alternatively, just install the .update package or copy all configs from there: https://github.com/Sitecore/autohaus/releases/tag/v1.0.0.052113

jondomin commented 11 years ago

Thanks for the info! This fixed my problem.