[7.4] DotNETConnect woes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[7.4] DotNETConnect woes

Boris Popov-4
In the clean 7.4 image,

- Load DotNetConnectInstaller and select every check box
- Trying to open DotNetConnectBrowser raises an exception:
    Unhandled exception: The identifier Net.URL has no binding
    LiteralBindingReference(Object)>>error:
    LiteralBindingReference(GeneralBindingReference)>>binding
    LiteralBindingReference(GeneralBindingReference)>>value
    DotNETUtils.AssemblyDescription class>>urlToFilename:
    DotNETUtils.AssemblyDescription class>>fromInfo:
    optimized [] in DotNETUtils.GACAssemblyNode>>readVersions:
    Array(SequenceableCollection)>>do:
    DotNETUtils.GACAssemblyNode>>readVersions:
    DotNETUtils.GACAssemblyNode class>>readVersions:for:
    optimized [] in DotNETUtils.GACReader>>readAssemblies
    Array(SequenceableCollection)>>do:
    DotNETUtils.GACReader>>readAssemblies
    DotNETUtils.GACReader>>assemblies
    DotNETUtils.DotNETObjectBrowser>>readAssemblyList
    DotNETUtils.DotNETObjectBrowser>>initialize
    DotNETUtils.DotNETObjectBrowser class(ApplicationModel class)>>new
    DotNETUtils.DotNETObjectBrowser class(ApplicationModel class)>>open
    VisualLauncher>>openGHDotNETBrowser
- Loading NetClients fixes the problem
- Trying to open DotNetConnect Code Generator raises an exception:
    Unhandled exception: Key not found:
    Dictionary>>keyNotFoundErrorFor:index:
    optimized [] in Dictionary>>at:
    Dictionary>>at:ifAbsent:
    Dictionary>>at:
    DotNETUtils.AssemblyDescription class>>fromInfo:
    optimized [] in DotNETUtils.GACAssemblyNode>>readVersions:
    Array(SequenceableCollection)>>do:
    DotNETUtils.GACAssemblyNode>>readVersions:
    DotNETUtils.GACAssemblyNode class>>readVersions:for:
    optimized [] in DotNETUtils.GACReader>>readAssemblies
    Array(SequenceableCollection)>>do:
    DotNETUtils.GACReader>>readAssemblies
    DotNETUtils.GACReader>>update
    optimized [] in DotNETUtils.DotNETCreationWizard>>initialize
    optimized [] in [] in Notice class>>show:while:
    BlockClosure>>ensure:
    Cursor>>showWhile:
    optimized [] in Notice class>>show:while:
    BlockClosure>>ensure:
    Notice class>>show:while:
    DotNETUtils.DotNETCreationWizard>>initialize
    DotNETUtils.DotNETCreationWizard class(ApplicationModel class)>>new
    DotNETUtils.DotNETCreationWizard class(ApplicationModel class)>>open
    DotNETUtils.DotNETCreationWizard
class(RuntimePackager.RuntimeBuilderUI class)>>open
    VisualLauncher>>openGHDotNETWizard

This is just basically trying to follow documentation from top to
bottom, as you can see I didn't get very far with this one :)

Cheers!

-Boris

Reply | Threaded
Open this post in threaded view
|

Re: [7.4] DotNETConnect woes

Boris Popov-4
Boris Popov wrote:

> In the clean 7.4 image,
>
> - Trying to open DotNetConnect Code Generator raises an exception:
>    Unhandled exception: Key not found:
>    Dictionary>>keyNotFoundErrorFor:index:
>    optimized [] in Dictionary>>at:
>    Dictionary>>at:ifAbsent:
>    Dictionary>>at:
>    DotNETUtils.AssemblyDescription class>>fromInfo:
>    optimized [] in DotNETUtils.GACAssemblyNode>>readVersions:
>    Array(SequenceableCollection)>>do:
>    DotNETUtils.GACAssemblyNode>>readVersions:
>    DotNETUtils.GACAssemblyNode class>>readVersions:for:
>    optimized [] in DotNETUtils.GACReader>>readAssemblies
>    Array(SequenceableCollection)>>do:
>    DotNETUtils.GACReader>>readAssemblies
>    DotNETUtils.GACReader>>update
>    optimized [] in DotNETUtils.DotNETCreationWizard>>initialize
>    optimized [] in [] in Notice class>>show:while:
>    BlockClosure>>ensure:
>    Cursor>>showWhile:
>    optimized [] in Notice class>>show:while:
>    BlockClosure>>ensure:
>    Notice class>>show:while:
>    DotNETUtils.DotNETCreationWizard>>initialize
>    DotNETUtils.DotNETCreationWizard class(ApplicationModel class)>>new
>    DotNETUtils.DotNETCreationWizard class(ApplicationModel class)>>open
Okay maybe I should have been more patient and attached a fix (read:
hack) for cases when assembly info does not contain DisplayName,
whatever the reason for that could be.

Cheers!

-Boris

<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.4 of December 5, 2005 on March 5, 2006 at 4:01:32 pm</time-stamp>


<methods>
<class-id>DotNETUtils.AssemblyDescription class</class-id> <category>class initialization</category>

<body package="DotNETConnectDevelopment" selector="fromInfo:">fromInfo: anAssemblyInfo
        "The assembly info contains several lines. Currently we
         are only interested in two lines:
                - The location of the executable (URL)
                - name, version, culture, public key (DisplayName).
         We need them to address the assembly"

        | lines assemblyName nameData assembly location |
        lines := self extractLines: anAssemblyInfo.
        assemblyName := lines at: 'DisplayName' ifAbsent: ['undefined,Version=undefined,Culture=undefined,PublicKeyToken=undefined'].
        nameData := (self parseName: assemblyName).
        location := lines at: 'URL' ifAbsent: [nil].
        assembly := self new initialize.
        assembly
                path: (location isNil
                                        ifTrue: [assemblyName]
                                        ifFalse: [(self urlToFilename: location)]);
                name: (nameData at: 1);
                version: (nameData at: 2);
                culture: (nameData at: 3);
                publicKey: (nameData at: 4).

        lines removeKey: 'DisplayName' ifAbsent: [].
        lines removeKey: 'URL' ifAbsent: [].
        assembly info: lines.
        ^assembly</body>
</methods>

</st-source>