I am experiencing an error that I am unable to resolve for some time now. I was wondering if someone can help identify the cause of this error? I am completely new to asp /
Could not load type
means that a type could not be loaded. (In this case, "type" refers to Inventory1.Global
). Types are located in compiled DLLs. So, either the DLL isn't available, is out of date, or doesn't contain a public
type with the given name.
Some possible causes are:
namespace Inventory1 { public class Global { ... } }
Note: avoid names like Inventory1
. They imply that there is an Inventory2
, Inventory3
, etc., which is bad practice as they're abmiguous and not very descriptive. Also, Global
is pretty vague, and may introduce confusion with the global namespace.
Inventory1
, not INVENTORY1
.)public
. If I had to guess, I'd put my money on a compilation error. Unlike PHP and other interpreted languages, C# have to be successfully compiled before they can be used.