Help with an inner exception.

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)"
  StackTrace:
       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

MedSouthAsked:
Who is Participating?
 
Rob SiklosCommented:
Sounds like you have a resource file in your application which is corrupted.
0
 
MedSouthAuthor Commented:
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.
0
 
Rob SiklosCommented:
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?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Rob SiklosCommented:
FYI, references are NOT considered resources
0
 
MedSouthAuthor Commented:
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.
0
 
MedSouthAuthor Commented:
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
0
 
MedSouthAuthor Commented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.