|
-
March 13th, 2008, 07:01 AM
#1
Application not working
Hi Gurus
I have an application that is throwing an exception when the main form is created.
Code:
Application.Run(new frmMain());
This throws the following exception -
Code:
System.IO.FileNotFoundException was unhandled
Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Source="ConfigurationTool"
StackTrace:
at ConfigurationTool.frmMain..ctor()
at ConfigurationTool.frmMain.Main() in C:\NGC\source\Configuration Tool\ConfigurationTool\frmMain.cs:line 490
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Does anyone have any idea what is going on?
Thanks in advance
Graham
-
March 13th, 2008, 07:08 AM
#2
Re: Application not working
Check frmMain.cs:line 490 
Did you delete ApplicationName.exe.config?
-
March 13th, 2008, 07:26 AM
#3
Re: Application not working
It looks like an assembly is missing, or the framework is corrupted, or some security policy prevents the application from running... There are tons of possible reasons.
You should provide more details, at least what file is missing.\
You could try to use fuslogvw.exe to check the log of assembly resolution failures. (It is part of SDK and should reside somewhere in VisualStudio installation directory).
Also check the konstructor of frmMain, if any file operation is performed here.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|