Has anyone successfully built and run UIScript2?

Jan 25, 2009 at 3:30 AM
Greetings,

Please find appended the debug info.

Regards,

PhiHo


PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

From VS2008:

"FileLoad Exception was unhandled:

Could not load file or assembly 'IronPython, Version=2.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)"


From:

public class PlatformAdaptationLayer {
...
...
public virtual Assembly LoadAssembly(string name) {
#if !SILVERLIGHT
return Assembly.Load(name); // UNHANDLED EXCEPTION
#else
return Assembly.Load(LookupFullName(name));
#endif
}
Coordinator
Jan 26, 2009 at 9:18 PM

Did you re-build IronPython and the DLR?  What build configuration are you using?

From: hph [mailto:notifications@codeplex.com]
Sent: Saturday, January 24, 2009 7:31 PM
To: Dino Viehland
Subject: Has anyone successfully built and run UIScript2? [dlr:45160]

From: hph

Greetings,

Please find appended the debug info.

Regards,

PhiHo


PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

From VS2008:

"FileLoad Exception was unhandled:

Could not load file or assembly 'IronPython, Version=2.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)"


From:

public class PlatformAdaptationLayer {
...
...
public virtual Assembly LoadAssembly(string name) {
#if !SILVERLIGHT
return Assembly.Load(name); // UNHANDLED EXCEPTION
#else
return Assembly.Load(LookupFullName(name));
#endif
}

Read the full discussion online.

To add a post to this discussion, reply to this email (dlr@discussions.codeplex.com)

To start a new discussion for this project, email dlr@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Jan 27, 2009 at 12:51 AM
> From: dinov
> Did you re-build IronPython and the DLR? What build configuration are you using?

Yes, the whole solution was cleaned and rebuilt.

BTW, ir.exe refuses to run in the presence of ir.exe.config.



From: hph [mailto:[email removed]
Sent: Saturday, January 24, 2009 7:31 PM
To: Dino Viehland
Subject: Has anyone successfully built and run UIScript2? [dlr:45160]
From: hph
Greetings,

Please find appended the debug info.

Regards,

PhiHo


PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

From VS2008:

"FileLoad Exception was unhandled:

Could not load file or assembly 'IronPython, Version=2.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)"


From:

public class PlatformAdaptationLayer {
...
...
public virtual Assembly LoadAssembly(string name) {
#if !SILVERLIGHT
return Assembly.Load(name); // UNHANDLED EXCEPTION
#else
return Assembly.Load(LookupFullName(name));
#endif
}
Read the full discussion online.
To add a post to this discussion, reply to this email ([email removed])
To start a new discussion for this project, email [email removed]
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com
Read the full discussion online.
To add a post to this discussion, reply to this email ([email removed])
To start a new discussion for this project, email [email removed]
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com
Coordinator
Jan 27, 2009 at 12:55 AM

But what build configuration did you use?  If you built in VS this is the Debug/Release/Silverlight Debug/etc…  drop down at the top/middle of the screen.  If you built from the command line did you specify any additional command line parameters to specify the config?

Jan 27, 2009 at 12:58 AM
> > PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
> > PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

> From: dinov
> Did you re-build IronPython and the DLR?
> What build configuration are you using?

It's Debug Configuration.




From: hph [mailto:[email removed]
Sent: Saturday, January 24, 2009 7:31 PM
To: Dino Viehland
Subject: Has anyone successfully built and run UIScript2? [dlr:45160]
From: hph
Greetings,

Please find appended the debug info.

Regards,

PhiHo


PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

From VS2008:

"FileLoad Exception was unhandled:

Could not load file or assembly 'IronPython, Version=2.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)"


From:

public class PlatformAdaptationLayer {
...
...
public virtual Assembly LoadAssembly(string name) {
#if !SILVERLIGHT
return Assembly.Load(name); // UNHANDLED EXCEPTION
#else
return Assembly.Load(LookupFullName(name));
#endif
}
Read the full discussion online.
To add a post to this discussion, reply to this email ([email removed])
To start a new discussion for this project, email [email removed]
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com
Read the full discussion online.
To add a post to this discussion, reply to this email ([email removed])
To start a new discussion for this project, email [email removed]
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com
Jan 27, 2009 at 1:23 AM

ir.exe.config is incorrect in the current dlr builds. Use this:

<?xml version='1.0' encoding='UTF-8'?>

<configuration>

  <configSections>

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

  </configSections>

  <microsoft.scripting>

    <languages>

      <language extensions='.rb' displayName='IronRuby 1.0 Alpha' type='IronRuby.Runtime.RubyContext, IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' names='IronRuby;Ruby;rb'/>

    </languages>

    <options>

      <set language='Ruby' option='LibraryPaths' value='..\..\Languages\Ruby\libs;..\..\..\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\site_ruby\1.8;..\..\..\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\site_ruby;..\..\..\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\1.8'/>

    </options>

  </microsoft.scripting>

</configuration>

From: hph [mailto:notifications@codeplex.com]
Sent: Monday, January 26, 2009 4:58 PM
To: Jimmy Schementi
Subject: Re: Has anyone successfully built and run UIScript2? [dlr:45160]

From: hph

> > PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
> > PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

> From: dinov
> Did you re-build IronPython and the DLR?
> What build configuration are you using?

It's Debug Configuration.




From: hph [mailto:[email removed]
Sent: Saturday, January 24, 2009 7:31 PM
To: Dino Viehland
Subject: Has anyone successfully built and run UIScript2? [dlr:45160]
From: hph
Greetings,

Please find appended the debug info.

Regards,

PhiHo


PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug> .\UIScript2
PS D:\DLR\Codeplex\Feb-23-2009\Working\Bin\Debug>

From VS2008:

"FileLoad Exception was unhandled:

Could not load file or assembly 'IronPython, Version=2.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)"


From:

public class PlatformAdaptationLayer {
...
...
public virtual Assembly LoadAssembly(string name) {
#if !SILVERLIGHT
return Assembly.Load(name); // UNHANDLED EXCEPTION
#else
return Assembly.Load(LookupFullName(name));
#endif
}
Read the full discussion online.
To add a post to this discussion, reply to this email ([email removed])
To start a new discussion for this project, email [email removed]
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com
Read the full discussion online.
To add a post to this discussion, reply to this email ([email removed])
To start a new discussion for this project, email [email removed]
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Read the full discussion online.

To add a post to this discussion, reply to this email (dlr@discussions.codeplex.com)

To start a new discussion for this project, email dlr@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Coordinator
Jan 27, 2009 at 3:40 AM

Doh! I missed the obvious J  Do you have a build of IronPython installed in your GAC?  I’ve confirmed that the CodePlex downloads don’t build a signed copy which would seem to imply that we’re picking up the signed version inadvertently.

Jan 27, 2009 at 4:56 AM
> From: jimmysch
> ir.exe.config is incorrect in the current dlr builds.

The new app.config was used for IronRuby Console project and it works.

However, in VS2008, there are these complaints (please find appended).

Did I miss something?

BTW, why there are IronRuby stuff under Main (at the same level as DLR_Main) instead of under ?

Thanks,

PhiHo.


Message 26 Could not find schema information for the element 'microsoft.scripting'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 6 4 Ruby.Console
Message 27 Could not find schema information for the element 'languages'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 7 6 Ruby.Console
Message 28 Could not find schema information for the element 'language'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 8 8 Ruby.Console
Message 29 Could not find schema information for the attribute 'extensions'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 8 17 Ruby.Console
Message 30 Could not find schema information for the attribute 'displayName'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 8 34 Ruby.Console
Message 31 Could not find schema information for the attribute 'type'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 8 67 Ruby.Console
Message 32 Could not find schema information for the attribute 'names'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 8 168 Ruby.Console
Message 33 Could not find schema information for the element 'options'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 10 6 Ruby.Console
Message 34 Could not find schema information for the element 'set'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 11 8 Ruby.Console
Message 35 Could not find schema information for the attribute 'language'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 11 12 Ruby.Console
Message 36 Could not find schema information for the attribute 'option'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 11 28 Ruby.Console
Message 37 Could not find schema information for the attribute 'value'. D:\DLR\Codeplex\Feb-23-2009\Working\Languages\Ruby\Utils\ironruby.console\App.Config 11 50 Ruby.Console


From: jimmysch [mailto:[email removed]
Sent: Monday, January 26, 2009 8:24 PM
To: [email removed]
Subject: Re: Has anyone successfully built and run UIScript2? [dlr:45160]

From: jimmysch
ir.exe.config is incorrect in the current dlr builds. Use this:
<?xml version='1.0' encoding='UTF-8'?>
<configuration>
<configSections>
<section name='microsoft.scripting' requirePermission='false' type='Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=0.9.5.1, Culture=neutral, PublicKeyToken=null' />
</configSections>
<microsoft.scripting>
<languages>
<language extensions='.rb' displayName='IronRuby 1.0 Alpha' type='IronRuby.Runtime.RubyContext, IronRuby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' names='IronRuby;Ruby;rb'/>
</languages>
<options>
<set language='Ruby' option='LibraryPaths' value='..\..\Languages\Ruby\libs;..\..\..\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\site_ruby\1.8;..\..\..\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\site_ruby;..\..\..\External\Languages\Ruby\Ruby-1.8.6\lib\ruby\1.8'/>
</options>
</microsoft.scripting>
</configuration>
Jan 27, 2009 at 5:06 AM
> From: dinov
> Doh! I missed the obvious ☺
> Do you have a build of IronPython installed in your GAC?

Yes, IronPython 2.0 was installed, it was uninstalled and the same problem persists.


> I’ve confirmed that the CodePlex downloads don’t build a signed copy
> which would seem to imply that we’re picking up the signed version inadvertently.

In the app.config of ShapeScript project has this line:

<language names="IronPython;Python;py" extensions=".py" displayName="IronPython 2.0 Beta" type="IronPython.Runtime.PythonContext, IronPython, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />


And the unhandled FileLoadException is this:

"Could not load file or assembly 'IronPython, Version=2.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)"


Thanks,

PhiHo.
Coordinator
Jan 27, 2009 at 5:09 AM

Oh, it’s probably the app.config then.  By default the public build doesn’t use our public key token because it’s a bit of a hassle usually.  So you want:

<language names="IronPython;Python;py" extensions=".py" displayName="IronPython 2.0 Beta" type="IronPython.Runtime.PythonContext, IronPython, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=null" />

The version is probably still wrong.  You’ll want to open AssemblyVersion.cs and see what the version is there.

Jan 27, 2009 at 5:52 AM
> From: dinov
> Oh, it’s probably the app.config then.
> By default the public build doesn’t use our public key token
> because it’s a bit of a hassle usually. So you want:

<language names="IronPython;Python;py" extensions=".py" displayName="IronPython 2.0 Beta" type="IronPython.Runtime.PythonContext, IronPython, Version=2.0.0.5000, Culture=neutral, PublicKeyToken=null" />

This seems to allow UIScript2 to run but to be honest it came to me as a BIG surprise that the samples are broken.

Thanks for your help.


Regards,

PhiHo.