468,532 Members | 1,637 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,532 developers. It's quick & easy.

[Assembly] gives "Type 'Assembly' not defined" error

When pasting this code from the MS small Business Accounting Beta Concepts
manual:

DIM skdAssembly as [Assembly] = [Assembly].LoadFrom(installpath.ToString())

the IDE shows : "Type 'Assembly' not defined" and underlines it in its
normal error-indicating fashion.
How can I overcome this problem?
TIA
Nov 21 '05 #1
2 2606
Hi,

Add Imports System.Reflection to the top of your file.

Ken
--------------
"PKuhne" <p.*****@verizon.net> wrote in message
news:ey*************@TK2MSFTNGP09.phx.gbl...
When pasting this code from the MS small Business Accounting Beta Concepts
manual:

DIM skdAssembly as [Assembly] = [Assembly].LoadFrom(installpath.ToString())

the IDE shows : "Type 'Assembly' not defined" and underlines it in its
normal error-indicating fashion.
How can I overcome this problem?
TIA

Nov 21 '05 #2
"PKuhne" <p.*****@verizon.net> schrieb:
When pasting this code from the MS small Business Accounting Beta Concepts
manual:

DIM skdAssembly as [Assembly] =
[Assembly].LoadFrom(installpath.ToString())

the IDE shows : "Type 'Assembly' not defined" and underlines it in its
normal error-indicating fashion.
How can I overcome this problem?


Either import the 'System.Reflection' namespace or fully qualify the class
name:

\\\
Imports System.Reflection
..
..
..
Dim a As [Assembly] = ...
///

- or -

\\\
Dim a As System.Reflection.Assembly = ...
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Lou Pecora | last post: by
2 posts views Thread by Yannick Turgeon | last post: by
669 posts views Thread by Xah Lee | last post: by
2 posts views Thread by magyar.laszlo | last post: by
2 posts views Thread by Paul Moore | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.