GetEntryAssembly problem

  • Thread starter Thread starter Linus Rörstad
  • Start date Start date
L

Linus Rörstad

Hello!

I have a problem with the Assembly.GetEntryAssembly() method. I get an
exception when the method is invoked saying: "Object reference not set to an
instance of an object". What could cause this problem? Does it have
something to do with the AssemblyInfo file?

Thanks
Linus Rörstad
 
Linus,

If you're using VB.NET on v1.0 of the framework, make sure you name
your Main method exactly "Main" (case sensitive), and not "main" for
example.



Mattias
 
Back
Top