Help with an inner exception.

Posted on 2009-02-17
Last Modified: 2012-05-06
I have an app that I have been using but have not updated in a while. Now I need to make a couple of changes to it but when I try to test it I get an inner exception.  I have went to a back up copy of my project and I get the same thing.  I do not understand this.   When i published the app it didn't have this error now I can't even get it to run in the IDE.  I have no idea how to trouble shoot an inner exception any help would be greatly appreciated.

Thanks in advance.

System.InvalidOperationException was unhandled

  Message="An error occurred creating the form. See Exception.InnerException for details.  The error is: ResX file Unexpected end of file has occurred. The following elements are not closed: xsd:element, xsd:choice, xsd:complexType, xsd:element, xsd:schema, root. Line 83, position 3. cannot be parsed."

  Source="SafetySend (R)"


       at SafetySend__R_.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190

       at SafetySend__R_.My.MyProject.MyForms.get_MainForm()

       at SafetySend__R_.My.MyApplication.OnCreateMainForm() in C:\Backup Projects\1-9-2009\SafetySend (R)\SafetySend (R)\My Project\Application.Designer.vb:line 35

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()

       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)

       at SafetySend__R_.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81

       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)

       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)

       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()

       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)

       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)

       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()

       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       at System.Threading.ThreadHelper.ThreadStart()

Open in new window

Question by:MedSouth
    LVL 9

    Accepted Solution

    Sounds like you have a resource file in your application which is corrupted.

    Author Comment

    I only have 1 .resx file in my app are references considered resources?  I will remove the .resx file and add it back in to see if that fixes it.
    LVL 9

    Expert Comment

    I don't think that will help.  It sounds like the .resx file has been somehow corrupted.  Can you attach the file so I can have a look at it?
    LVL 9

    Expert Comment

    FYI, references are NOT considered resources

    Author Comment

    the .resx file is a license file for winform resizer .net 2.0 it's not problem to add it back in from my original product download.

    Author Comment

    sorry am at the hospital at the moment son is getting tonsils taken out will be back in the office to try this in a couple of hours

    Author Closing Comment

    It was a combo of things the license file was corrupt and some 3rd party controls were upgraded since the last time I was in this app.  Deleted them and re adding them was all it took to fix it.  Thanks rob263.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now