Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - Unable to find type [Drawing.Image]: make sure that the assembly containing this type is loaded

Reply
 
Old 08-16-2007   #1 (permalink)
IT Staff
Guest


 
 

Unable to find type [Drawing.Image]: make sure that the assembly containing this type is loaded

what must i always do to avoid this common error :

make sure that the assembly containing this type is loaded ?





My System SpecsSystem Spec
Old 08-16-2007   #2 (permalink)
Oisin Grehan
Guest


 
 

Re: Unable to find type [Drawing.Image]: make sure that the assembly containing this type is loaded

On Aug 16, 1:11 am, "IT Staff" <jkk...@hotmail.com> wrote:
> what must i always do to avoid this common error :
>
> make sure that the assembly containing this type is loaded ?


PS> [void][reflection.assembly]::loadwithpartialname("system.drawing")

- Oisin

My System SpecsSystem Spec
Old 08-16-2007   #3 (permalink)
RichS
Guest


 
 

Re: Unable to find type [Drawing.Image]: make sure that the assemb

You can also use the Resolve-assembly cmdlet from the PowerShell community
extensions
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Oisin Grehan" wrote:

> On Aug 16, 1:11 am, "IT Staff" <jkk...@hotmail.com> wrote:
> > what must i always do to avoid this common error :
> >
> > make sure that the assembly containing this type is loaded ?

>
> PS> [void][reflection.assembly]::loadwithpartialname("system.drawing")
>
> - Oisin
>
>

My System SpecsSystem Spec
Old 08-16-2007   #4 (permalink)
Oisin Grehan
Guest


 
 

Re: Unable to find type [Drawing.Image]: make sure that the assemb

On Aug 16, 8:44 pm, RichS <Ri...@discussions.microsoft.com> wrote:
> You can also use the Resolve-assembly cmdlet from the PowerShell community
> extensions
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog:http://richardsiddaway.spaces.live.com/
> PowerShell User Group:http://www.get-psuguk.org.uk
>
>
>
> "Oisin Grehan" wrote:
> > On Aug 16, 1:11 am, "IT Staff" <jkk...@hotmail.com> wrote:
> > > what must i always do to avoid this common error :

>
> > > make sure that the assembly containing this type is loaded ?

>
> > PS> [void][reflection.assembly]::loadwithpartialname("system.drawing")

>
> > - Oisin- Hide quoted text -

>
> - Show quoted text -


Which I wrote, ironically. :-)

- Oisin

My System SpecsSystem Spec
Old 08-16-2007   #5 (permalink)
Oisin Grehan
Guest


 
 

Re: Unable to find type [Drawing.Image]: make sure that the assemb


On Aug 16, 8:44 pm, RichS <Ri...@discussions.microsoft.com> wrote:
> You can also use the Resolve-assembly cmdlet from the PowerShell community
> extensions
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog:http://richardsiddaway.spaces.live.com/
> PowerShell User Group:http://www.get-psuguk.org.uk


and alternatively, using pscx, there is a GAC: drive. Calling invoke-
item against any of the paths -- wildcards also work -- will load the
assembly(ies). This is handy for batch loading of related assemblies.
e.g.

PS > ii gac:system.workflow*

GAC Version Location
--- ------- --------
True v2.0.50727 C:\WINDOWS\assembly\GAC_MSIL
\System.Workflow.ComponentModel\3.0.0.0__31bf3856ad364e35\System.W...
True v2.0.50727 C:\WINDOWS\assembly\GAC_MSIL
\System.Workflow.Activities\3.0.0.0__31bf3856ad364e35\System.Workf...
True v2.0.50727 C:\WINDOWS\assembly\GAC_MSIL
\System.Workflow.Runtime\3.0.0.0__31bf3856ad364e35\System.Workflow...
True v2.0.50727 C:\WINDOWS\assembly\GAC_MSIL
\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.Workflow...

("ii" is an alias for invoke-item).

- Oisin

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
ASP namespace strong type access for dynamically loaded user control .NET General
Re: Unable to cast COM object of type 'ADODB.RecordsetClass' to class type 'System.Object[]' .NET General
Search unable to find Word documents when "Document" type selected Vista file management
Checking whether a type is loaded _efficiently_? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46