Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,
Im getting Error-
C#
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in system.windows.forms.dll Additional information: The specified module could not be found. 

in windows application while showing windows form, using visual studio 2005

Its vb.net windows application.

VB.NET
Private Sub mnuCustomerAcknoledgements_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuCustomerAcknoledgements.Click
        MNU = mnuCustomerAcknoledgements.Text
        If Not IsNothing(objCustAck) Then
            If Not objCustAck.IsDisposed Then
                objCustAck.WindowState = FormWindowState.Normal  ' Optional
                objCustAck.BringToFront()  '  Optional
            Else
                objCustAck = New frmCustacknowledgeForm()
                objCustAck.MdiParent = Me
                objCustAck.Show()
            End If
        Else
            objCustAck = New frmCustacknowledgeForm()
            objCustAck.MdiParent = Me
            objCustAck.Show()
        End If
    End Sub


Any help appreciated...!

Thannk You....!

What I have tried:

reloaded all related DLLs.. Tried many solutions found in forums, still facing the same problem.
Posted
Updated 14-Jun-18 23:25pm

Start with the debugger.
Go to the menu: "Debug...Exceptions" and tick everything in the "thrown" column. Press OK.
Run your app, and when the exception is thrown, the debugger will halt and show you where it happened.
That should allow you to look through the call stack and see exactly what you are trying to do when it occurred, and that should help you to spot the area the problem is in.

We can't do that for you - we don't have access to your EXE much less your code, and you need the code to work it out.
So use the debugger, and try to spot what file it is trying to use. But it's probably in your form constructor code, so something it calls or does, and we just don't have access to it - so it's up to you to find actual information!
 
Share this answer
 
Make sure that property AssemblyCulture is empty

[assembly: AssemblyCulture("")]


My library doesn't work if I set the culture
 
Share this answer
 
Comments
CHill60 15-Jun-18 8:59am    
VB does not add that attribute.
It's more likely that the user is using a user- or custom control but has not installed the DLL correctly, or they need to reinstall VS.
It's unlikely that they are still waiting for a solution over a year later.
You should not be setting that attribute unless you want to create a satellite assembly anyway - e.g. containing globalization resources

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900