1

Closed

The located assembly's manifest definition does not match the assembly reference. (ctp dev10 beta1)

description

The following error occurs when running the beta 1 ctp with vs2010 beta 1 and Windows 7 RC.
 
Microsoft.Scripting.dll has a Version of 1.0.0.0 in Explorer
 
ipy works fine.
 
It appears ipy and ir reference different versions of Microsoft.Scripting.dll
 
C:\Users\Eoin\Documents\Visual Studio 10\ironruby-ctp-dev10-beta1\bin>ir
 
Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for microsoft.scripting: Co
uld not load file or assembly 'Microsoft.Scripting, Version=0.9.6.10, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C:\Users\Eoin\Documents\Visual Studio 10\ironruby-ct
p-dev10-beta1\bin\ir.exe.Config line 4) ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Scripting, Version=0.9.6.10, Culture=neutra
l, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception fro
m HRESULT: 0x80131040)
at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, Factory
Record factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
--- End of inner exception stack trace ---
at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Bool
ean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at Microsoft.Scripting.Hosting.Configuration.Section.LoadRuntimeSetup(ScriptRuntimeSetup setup, Stream configFileStream)
at Microsoft.Scripting.Hosting.Shell.ConsoleHost.CreateRuntimeSetup()
at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Run(String[] args)
at RubyConsoleHost.Main(String[] args)
 
C:\Users\Eoin\Documents\Visual Studio 10\ironruby-ctp-dev10-beta1\bin>
Closed May 28, 2009 at 9:10 PM by jimmysch
Fixed package: http://ironruby.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27606

comments

eoinomeara wrote May 26, 2009 at 8:26 PM

Problem running ir fixed by renaming ir.exe.config as ir.broken.exe.config

jimmysch wrote May 27, 2009 at 10:36 PM

The versions of Microsoft.Scripting.dll are the same, the ir.exe.config is wrong. Renaming will workm, but with no access to libraries. An new drop will be available soon.

jimmysch wrote May 28, 2009 at 9:09 PM