CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    104

    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

  2. #2
    Join Date
    Nov 2003
    Posts
    2,185

    Re: Application not working

    Check frmMain.cs:line 490

    Did you delete ApplicationName.exe.config?

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    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
  •  





Click Here to Expand Forum to Full Width

Featured