How to Publish Composite C1 from Local to the web (www)

Topics: General
Sep 4, 2011 at 7:47 AM

hi

i have succefully installed Composite C1 using the webmatrix (beta version). now i want to publish it to the web (www.sdasutton.com).

i am new to this. spent all noght googling, but no joy. could any one point me any tutorial suggest me steps how i could do this.

should i modify the Web.Config file when i deploy to the web?

any help will be much appreciated..

Jaikanak

Sep 4, 2011 at 3:00 PM

i get the following error: 

Server Error in '/' Application.

Could not load file or assembly 'Composite' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

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.BadImageFormatException: Could not load file or assembly 'Composite' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

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.


Assembly Load Trace: The following information can be helpful to determine why the assembly 'Composite' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Stack Trace:

[BadImageFormatException: Could not load file or assembly 'Composite' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'Composite' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
   System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8812914
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +265
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320

[HttpException (0x80004005): Could not load file or assembly 'Composite' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729

[HttpException (0x80004005): Could not load file or assembly 'Composite' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8894223
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259


Sep 4, 2011 at 4:22 PM

Looks like you're not running .net 4 on the production server, which is required by Composite C1.

Sep 4, 2011 at 7:49 PM

i now get the following error:

any idea what could be the issue?

<!-- [InvalidOperationException]: Cannot continue the current operation, the performance counters memory mapping has been corrupted. at System.Diagnostics.SharedPerformanceCounter.ResolveOffset(Int32 offset, Int32 sizeToRead) at System.Diagnostics.SharedPerformanceCounter.CalculateAndAllocateMemory(Int32 totalSize, Int32& alignmentAdjustment) at System.Diagnostics.SharedPerformanceCounter.CreateCategory(CategoryEntry* lastCategoryPointer, Int32 instanceNameHashCode, String instanceName, PerformanceCounterInstanceLifetime lifetime) at System.Diagnostics.SharedPerformanceCounter.GetCounter(String counterName, String instanceName, Boolean enableReuse, PerformanceCounterInstanceLifetime lifetime) at System.Diagnostics.SharedPerformanceCounter..ctor(String catName, String counterName, String instanceName, PerformanceCounterInstanceLifetime lifetime) at System.Diagnostics.PerformanceCounter.InitializeImpl() at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly) at System.Workflow.Runtime.PerformanceCounterManager.CreateCounters(String name) at System.Workflow.Runtime.PerformanceCounterManager.SetInstanceName(String instanceName) at System.Workflow.Runtime.WorkflowRuntime.StartRuntime() at Composite.C1Console.Workflow.WorkflowFacadeImpl.DoInitialize() at Composite.C1Console.Workflow.WorkflowFacadeImpl.EnsureInitialization() at Composite.C1Console.Workflow.WorkflowFacade.EnsureInitialization() at Composite.GlobalInitializerFacade.DoInitialize() at Composite.GlobalInitializerFacade.InitializeTheSystem() at Composite.Data.Foundation.DataProviderRegistry.get_AllInterfaces() at Composite.Data.DataFacadeImpl.GetData[T](Boolean useCaching, IEnumerable`1 providerNames) at Composite.Data.DataFacade.GetData[T](Boolean useCaching, IEnumerable`1 providerNames) at Composite.Data.DataFacade.GetData[T]() at Composite.Core.Routing.HostnameBindingsFacade.Initialize() at Composite.Core.WebClient.ApplicationLevelEventHandlers.ApplicationStartInitialize(Boolean displayDebugInfo) at Composite.Core.WebClient.ApplicationLevelEventHandlers.Application_Start(Object sender, EventArgs e) at ASP.global_asax.Application_Start(Object sender, EventArgs e) in d:\hshome\c93764\sdasutton.com\Global.asax:line 10 --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->

 

Server Error in '/' Application.

Cannot continue the current operation, the performance counters memory mapping has been corrupted

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: Cannot continue the current operation, the performance counters memory mapping has been corrupted.

Source Error:

Line 8:          ApplicationLevelEventHandlers.LogApplicationLevelErrors = false;
Line 9:          
Line 10:         ApplicationLevelEventHandlers.Application_Start(sender, e);
Line 11:     }
Line 12: 


Source File: d:\hshome\c93764\sdasutton.com\Global.asax    Line: 10

Stack Trace:

[InvalidOperationException: Cannot continue the current operation, the performance counters memory mapping has been corrupted.]
   System.Diagnostics.SharedPerformanceCounter.ResolveOffset(Int32 offset, Int32 sizeToRead) +6067906
   System.Diagnostics.SharedPerformanceCounter.CalculateAndAllocateMemory(Int32 totalSize, Int32& alignmentAdjustment) +37
   System.Diagnostics.SharedPerformanceCounter.CreateCategory(CategoryEntry* lastCategoryPointer, Int32 instanceNameHashCode, String instanceName, PerformanceCounterInstanceLifetime lifetime) +6333369
   System.Diagnostics.SharedPerformanceCounter.GetCounter(String counterName, String instanceName, Boolean enableReuse, PerformanceCounterInstanceLifetime lifetime) +288
   System.Diagnostics.SharedPerformanceCounter..ctor(String catName, String counterName, String instanceName, PerformanceCounterInstanceLifetime lifetime) +143
   System.Diagnostics.PerformanceCounter.InitializeImpl() +404
   System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly) +138
   System.Workflow.Runtime.PerformanceCounterManager.CreateCounters(String name) +84
   System.Workflow.Runtime.PerformanceCounterManager.SetInstanceName(String instanceName) +290
   System.Workflow.Runtime.WorkflowRuntime.StartRuntime() +642
   Composite.C1Console.Workflow.WorkflowFacadeImpl.DoInitialize() +137
   Composite.C1Console.Workflow.WorkflowFacadeImpl.EnsureInitialization() +74
   Composite.C1Console.Workflow.WorkflowFacade.EnsureInitialization() +68
   Composite.GlobalInitializerFacade.DoInitialize() +762
   Composite.GlobalInitializerFacade.InitializeTheSystem() +479
   Composite.Data.Foundation.DataProviderRegistry.get_AllInterfaces() +31
   Composite.Data.DataFacadeImpl.GetData(Boolean useCaching, IEnumerable`1 providerNames) +54
   Composite.Data.DataFacade.GetData(Boolean useCaching, IEnumerable`1 providerNames) +66
   Composite.Data.DataFacade.GetData() +38
   Composite.Core.Routing.HostnameBindingsFacade.Initialize() +73
   Composite.Core.WebClient.ApplicationLevelEventHandlers.ApplicationStartInitialize(Boolean displayDebugInfo) +180
   Composite.Core.WebClient.ApplicationLevelEventHandlers.Application_Start(Object sender, EventArgs e) +197
   ASP.global_asax.Application_Start(Object sender, EventArgs e) in d:\hshome\c93764\sdasutton.com\Global.asax:10


 .


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