Re: Application.Run(new Main()) - The specified module could not be found.
- From: "VJ" <nonewsaddress@xxxxxxxxx>
- Date: Fri, 23 Mar 2007 11:12:10 -0500
I would suggest naming your Form something other than Main.. not a good idea
to name it same as entry point (even if it will work). Just my thought, I
will chk and see if this will work!! and I would post a feedback
VJ
"LQQKIN" <1@xxx> wrote in message
news:05CB9EEF-1ACA-46B2-9A0D-DB86B71DB716@xxxxxxxxxxxxxxxx
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Main());
}
}
}
Main() is the constructor of the Main form that comes up, It has only
InitializeComponent();
Thanks
"VJ" <nonewsaddress@xxxxxxxxx> wrote in message
news:%23tQcZBWbHHA.3272@xxxxxxxxxxxxxxxxxxxxxxx
why is it new Main().. are you calling this from within your Main
function .. Something is not right...!!
VJ
"LQQKIN" <1@xxx> wrote in message
news:10AC316D-63E3-4772-8CD0-14A4F46CA1F7@xxxxxxxxxxxxxxxx
HI,
When i try to run amd debug my project i get following error.
- The specified module could not be found. -
This error is getting thrown on Application.Run(new Main())
From what it looks like it can not find some DLL that i have referenced.
If i create a new project with out those dll's everything works fine,
but as
soon as i add them and start using them i get the same error.
Any help is greatly appreciated
Thanks
.
- References:
- Prev by Date: Search Word Document
- Next by Date: Re: Long Running windows app, best design approach
- Previous by thread: Re: Application.Run(new Main()) - The specified module could not be found.
- Next by thread: Re: Application.Run(new Main()) - The specified module could not be found.
- Index(es):
Relevant Pages
|