can't install CompositeC1Contrib

Topics: Standard packages
May 16, 2011 at 4:39 PM

Hi

I installed Starter site (with html). while installing CompositeC1Contrib package i got this error message

Server Error in '/' Application.


Could not load file or assembly 'CompositeC1Contrib' or one of its dependencies. An attempt was made to load a program with an incorrect format.

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 'CompositeC1Contrib' or one of its dependencies. An attempt was made to load a program with an incorrect format.

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 'CompositeC1Contrib' 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 'CompositeC1Contrib' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0

   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +314

   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +95

   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +124

   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +76

 

[ConfigurationErrorsException: Could not load file or assembly 'CompositeC1Contrib' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +11360108

   System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +69

   System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +62

   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +301

   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1332

   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +149

   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325

   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407

   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

 

[HttpException (0x80004005): Could not load file or assembly 'CompositeC1Contrib' or one of its dependencies. An attempt was made to load a program with an incorrect format.]

   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072

   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141

   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373

 


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

 

 

Thank you in advance for your help

Maydin

May 16, 2011 at 7:27 PM

Thats weird... this usually only happens when using a assembly compiled for the wrong 32/64 bit version, but the supplied binaries should be bit-neutral since they are in the MSIL format. Can you tell me which bit-version of Windows you're running?

May 16, 2011 at 7:55 PM

Hi burningice

X64 based pc, windows 7 Enterprise, IIS 7.5 express

Thanks

May 17, 2011 at 8:52 PM

Looking at http://compositec1contrib.codeplex.com/SourceControl/changeset/view/66835#1149827 it sure looks like the binaries are compiled for x86... not optimal. I'll look into why this is so and how to make the binaries platform independent.

May 17, 2011 at 9:16 PM

Thanks a lot

May 18, 2011 at 8:21 AM

A small configuration error in my build configuration made it compile for x86 instead of being platform independent. That has been fixed in newest commit so the included binaries are platform independent.

May 18, 2011 at 4:38 PM

Thank you very much burningice

 I have nicer URLs now :)  cheers

Maydin