[Ironruby-core] New revisions

Jim Deville jdeville at microsoft.com
Sat Dec 6 16:14:30 EST 2008


I think the git repo still has delay signing on, so I need to figure out a way to get that removed. Pete, can you try using sn..exe to skip verification for *,31bf3856ad364e35. -Vr should skip, and -Vu should remove the skip.
JD
-----Original Message-----
From: Pete Bacon Darwin <bacondarwin at googlemail.com>
Sent: December 06, 2008 5:22 AM
To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org>
Subject: Re: [Ironruby-core] New revisions


On Win XP Pro SP3: I can get the rake compile to work but can’t run ir.exe since it is having problems finding the Microsoft.Scripting assembly.
Is this an assembly signing problem?  The strong name of Microsoft.Scripting.dll that is built by “rake compile” is: Microsoft.Scripting, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=null.
Here is the output from running ir.exe:

Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for microsoft.scripting: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.5000, 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) (D:\dev\ruby\ironruby\git_ironruby\merlin\main\bin\debug\ir.exe.Config line 4) ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.5000, 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)
File name: 'Microsoft.Scripting, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   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, FactoryRecord factoryRecord)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory..ctor(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
   at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)

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].

   --- 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, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)
   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) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting
\Hosting\Configuration\Section.cs:line 116
   at Microsoft.Scripting.Hosting.ScriptRuntimeSetup.ReadConfiguration() in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Hosting\ScriptRuntimeSetup.cs:line 180
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.CreateRuntimeSetup() in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Hosting\Shell\ConsoleHost.cs:line 77
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Run(String[] args) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Hosting\Shell\ConsoleHost.cs:line 167
   at RubyConsoleHost.Main(String[] args) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Languages\Ruby\Console\Program.cs:line 45

If I change ir.exe.config to this:

  <configSections>
    <section name='microsoft.scripting' requirePermission='false' type='Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.5000, Culture=neutral, PublicKeyToken=null'/>
  </configSections>

Then I get a bit further but then it blows up further along:

Unhandled Exception: System.ArgumentException: Language name should not be null, empty or duplicated between languages
Parameter name: names
   at Microsoft.Scripting.Utils.ContractUtils.Requires(Boolean precondition, String paramName, String message) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Utils\Contra
ctUtils.cs:line 42
   at Microsoft.Scripting.Runtime.DlrConfiguration.AddLanguage(String languageTypeName, String displayName, IList`1 names, IList`1 fileExtensions, IDictionary`2 options, String paramName) in d:\dev\ru
by\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Runtime\DlrConfiguration.cs:line 156
   at Microsoft.Scripting.Runtime.DlrConfiguration.AddLanguage(String languageTypeName, String displayName, IList`1 names, IList`1 fileExtensions, IDictionary`2 options) in d:\dev\ruby\ironruby\git_ir
onruby\merlin\main\Runtime\Microsoft.Scripting\Runtime\DlrConfiguration.cs:line 150
   at Microsoft.Scripting.Hosting.ScriptRuntimeSetup.ToConfiguration() in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Hosting\ScriptRuntimeSetup.cs:line 138
   at Microsoft.Scripting.Hosting.ScriptRuntime..ctor(ScriptRuntimeSetup setup) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Hosting\ScriptRuntime.cs:line 55
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Run(String[] args) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Runtime\Microsoft.Scripting\Hosting\Shell\ConsoleHost.cs:line 206
   at RubyConsoleHost.Main(String[] args) in d:\dev\ruby\ironruby\git_ironruby\merlin\main\Languages\Ruby\Console\Program.cs:line 45

More tweaking required I guess.
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20081206/ab3800ec/attachment-0001.html>


More information about the Ironruby-core mailing list