Re: Using assembly.load to load system.data

From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 03/03/05


Date: Thu, 3 Mar 2005 17:44:36 -0000

If that was a question (it is phrased as one but there is no question mark)
then yes the same public key token is used. For your other question show
some code so we can look at it further.

Cheers
Daniel

--
http://www.danielmoth.com/Blog/
"Dan" <daniel@hawkins1978.fsnet.co.uk> wrote in message
news:eqq1H6%23HFHA.2860@TK2MSFTNGP12.phx.gbl...
> Hi Daniel
>
> Yeah I had the one startng with B, is the same also true for the other
> assemblys like system.windows.forms and system.drawing
>
> Dan
>
> "Dan" <daniel@hawkins1978.fsnet.co.uk> wrote in message
> news:u2phJw%23HFHA.1172@TK2MSFTNGP12.phx.gbl...
>> Ok now I have got it to load the assembly but for some reason I don't
>> seem to be able to invoke the newrow method through reflection I get a
>> notsupported exception, also if I just try to use the getmethods
>> reflection call on the datatable I get System error &H80070057&.
>>
>> Could this be because I do not have the service packs on the emulator?
>>
>> Thanks
>> Dan
>>
>> "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
>> news:%23xnQs19HFHA.1528@TK2MSFTNGP09.phx.gbl...
>>> How do you invoke it?  Try something like this:
>>> loadAssembly("System.Data", "System.Data, Version=1.0.5000.0,
>>> Culture=neutral, PublicKeyToken=969db8053d3322ac")
>>>
>>> Best regards,
>>> Sergey Bogdanov
>>> http://www.sergeybogdanov.com
>>>
>>>
>>> Dan wrote:
>>>> Hi Daniel
>>>> The code I use is this:
>>>>
>>>>   Public Shared Sub loadAssembly(ByVal ns As String, ByVal assemblyName
>>>> As String)
>>>>    Dim ass As [Assembly]
>>>>    If Not assemblyMappings.ContainsKey(ns) Then
>>>>     Try
>>>>      ass = [Assembly].Load(ns)
>>>>      assemblyMappings(ns) = ass
>>>>     Catch ex As Exception
>>>>      If ass Is Nothing Then
>>>>       'try load from fullname
>>>>       ass = [Assembly].Load(assemblyName)
>>>>       assemblyMappings(ns) = ass
>>>>      End If
>>>>     End Try
>>>>    End If
>>>>   End Sub
>>>>
>>>> So if I call this to load system.data, ns would be system.data and
>>>> assembly name is the full name, version, public key etc.  But even when
>>>> trying to load it with the fullname fails.
>>>>
>>>> Thanks
>>>> Dan
>>>> "Daniel Moth" <dmoth74@hotmail.com> wrote in message
>>>> news:e4CLV$3HFHA.1172@TK2MSFTNGP12.phx.gbl...
>>>>
>>>>>Can you show some code?
>>>>>
>>>>>Chances are that you are not passing the full name to Assembly.Load. If
>>>>>that is the case, the only reason winforms & drawing loaded was because
>>>>>they were loaded already. To test this theory insert this line just
>>>>>before your Assembly.load of system.data. If it works with and doesn't
>>>>>without, it is as I suspected so share some code. If it continues to
>>>>>throw then... ...still show us the code
>>>>>
>>>>>// c#
>>>>>System.Data.Column b = new System.Data.Column("test")
>>>>>
>>>>>' vb
>>>>>Dim b As New System.Data.DataColumn("test")
>>>>>
>>>>>Cheers
>>>>>Daniel
>>>>>--
>>>>>http://www.danielmoth.com/Blog/
>>>>>
>>>>>
>>>>>"Dan" <daniel@hawkins1978.fsnet.co.uk> wrote in message
>>>>>news:ukjRj6qGFHA.2524@TK2MSFTNGP15.phx.gbl...
>>>>>
>>>>>>Hi everyone
>>>>>>I'm having trouble trying to load the system.data assembly.
>>>>>>If I do assembly.load() and pass in system.windows.forms or
>>>>>>system.drawing
>>>>>>it loads the assembly but if I use system.data it throws an
>>>>>>ioexception.
>>>>>>
>>>>>>has anyone else come across this
>>>>>>thanks
>>>>>>Dan
>>>>>>
>>>>>
>>>>
>>
>
>


Relevant Pages

  • Re: cant change homepage
    ... I'm having the same issue as Dan. ... mentioned, Kelly, but the page doesn't load. ... suggestions or other recommendations? ... >> search and destroy as well as adware 6.0 nut they have ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Using assembly.load to load system.data
    ... Dan wrote: ... > Public Shared Sub loadAssembly(ByVal ns As String, ByVal assemblyName As ... > So if I call this to load system.data, ns would be system.data and assembly ... > load it with the fullname fails. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Using assembly.load to load system.data
    ... "Dan" wrote in message ... > Public Shared Sub loadAssembly(ByVal ns As String, ByVal assemblyName As ... 'try load from fullname ... > "Daniel Moth" wrote in message ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Sound Level Control Stuck on Desktop?
    ... it may take some time to load when you activate it from ... systray. ... too many clicks on it may active multiple copies of volume ... "Dan" wrote: ...
    (microsoft.public.windowsxp.general)
  • Re: Using assembly.load to load system.data
    ... Yeah I had the one startng with B, is the same also true for the other ... assemblys like system.windows.forms and system.drawing ... Dan ...
    (microsoft.public.dotnet.framework.compactframework)