We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Help with an inner exception.

MedSouth asked
Medium Priority
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

Watch Question

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


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.

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?

FYI, references are NOT considered resources


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.


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


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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.