Skip to content

Instantly share code, notes, and snippets.

@ArsenShnurkov
Created March 12, 2015 10:34
Show Gist options
  • Save ArsenShnurkov/e855fd090c9d49f9f2b1 to your computer and use it in GitHub Desktop.
Save ArsenShnurkov/e855fd090c9d49f9f2b1 to your computer and use it in GitHub Desktop.
pictureBox1.Image = image ?? Properties.Resources.git_extensions_logo_final_128;
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Stream is not a valid .resources file! It was possibly truncated. ---> System.Exception: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile () [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/io/__error.cs:36
at System.IO.BinaryReader.FillBuffer (Int32 numBytes) [0x0008f] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/io/binaryreader.cs:583
at System.IO.BinaryReader.ReadInt32 () [0x0002e] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/io/binaryreader.cs:196
at System.Resources.ResourceReader.ReadHeaders () [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Resources/ResourceReader.cs:144
--- End of inner exception stack trace ---
at System.Resources.ResourceReader.ReadHeaders () [0x0030b] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Resources/ResourceReader.cs:238
at System.Resources.ResourceReader..ctor (System.IO.Stream stream) [0x00067] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Resources/ResourceReader.cs:127
at System.Resources.ResourceSet..ctor (System.IO.UnmanagedMemoryStream stream) [0x00011] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Resources/ResourceSet.cs:81
at System.Resources.RuntimeResourceSet..ctor (System.IO.UnmanagedMemoryStream stream) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Resources/RuntimeResourceSet.cs:39
at at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Reflection/MonoMethod.cs:569
--- End of inner exception stack trace ---
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00013] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Reflection/MonoMethod.cs:575
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00099] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Reflection/MonoMethod.cs:560
at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Reflection/MonoMethod.cs:588
at System.RuntimeType.CreateInstanceImpl (BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x0021a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System/MonoType.cs:576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment