Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NBug] Could not load file or assembly 'System.Data.Common, Versio... #10368

Closed
ms-coder opened this issue Nov 9, 2022 · 15 comments
Closed

[NBug] Could not load file or assembly 'System.Data.Common, Versio... #10368

ms-coder opened this issue Nov 9, 2022 · 15 comments
Labels
📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity 💤 status: no recent activity The issue is stale

Comments

@ms-coder
Copy link

ms-coder commented Nov 9, 2022

Environment

  • Git Extensions 4.0.0.15569
  • Build cba315d
  • Git 2.38.1.windows.1
  • Microsoft Windows NT 10.0.19044.0
  • .NET 6.0.10
  • DPI 96dpi (no scaling)

Issue description

System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Das System kann die angegebene Datei nicht finden.
File name: 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Reflection.RtFieldInfo.InitializeFieldType()
   at System.Reflection.RtFieldInfo.InitializeInvocationFlags()
   at System.Reflection.RtFieldInfo.GetValue(Object obj)
   at ResourceManager.Xliff.TranslationUtil.GetObjFields(Object obj, String objName)+MoveNext()
   at ResourceManager.Xliff.TranslationUtil.TranslateItemsFromList(String category, ITranslation translation, IEnumerable`1 items)
   at ResourceManager.Translator.Translate(ITranslate obj, String translationName)
   at ResourceManager.GitExtensionsFormBase.InitializeComplete()
   at GitUI.CommandsDialogs.FormPush..ctor(GitUICommands commands)
   at GitUI.GitUICommands.<>c__DisplayClass142_0.<StartPushDialog>g__Action|0()
   at GitUI.GitUICommands.DoActionOnRepo(IWin32Window owner, Func`1 action, Boolean requiresValidWorkingDir, Boolean changesRepo, EventHandler`1 preEvent, EventHandler`1 postEvent)
   at GitUI.GitUICommands.StartPushDialog(IWin32Window owner, Boolean pushOnShow, Boolean forceWithLease, Boolean& pushCompleted)
   at GitUI.GitUICommands.StartPushDialog(IWin32Window owner, Boolean pushOnShow)
   at GitUI.CommandsDialogs.FormBrowse.PushToolStripMenuItemClick(Object sender, EventArgs e)
   at GitUI.CommandsDialogs.FormBrowse.ToolStripButtonPushClick(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at GitUI.ToolStripEx.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

i can't push

Steps to reproduce

try to push

Did this work in previous version of GitExtensions?

No response

Diagnostics

No response

@duplicates-detector-bot
Copy link

Potential duplicates:

  • #7606
  • #8089
  • #8187
  • #8325
  • #8476
  • #9920
  • #9922
  • #10363
  • #10367

@pmiossec
Copy link
Member

pmiossec commented Nov 9, 2022

Can you answer the same question than here: #10363 (comment)

@RussKie RussKie added 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity and removed 👓 status: needs review labels Nov 10, 2022
@mstv
Copy link
Member

mstv commented Nov 10, 2022

It happened to me, too, when I tried to open FormPush.
Other GE instances, which have been running in parallel for more than one day, are able to push!
Restarting the affected instance has helped.

  • Git Extensions 33.33.33
  • Build 0bd62f6
  • Git 2.38.1.windows.1
  • Microsoft Windows NT 10.0.19044.0
  • .NET 6.0.10
  • DPI 96dpi (no scaling)
System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Das System kann die angegebene Datei nicht finden.
File name: 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Reflection.RtFieldInfo.InitializeFieldType()
   at System.Reflection.RtFieldInfo.InitializeInvocationFlags()
   at System.Reflection.RtFieldInfo.GetValue(Object obj)
   at ResourceManager.Xliff.TranslationUtil.GetObjFields(Object obj, String objName)+MoveNext()
   at ResourceManager.Xliff.TranslationUtil.TranslateItemsFromList(String category, ITranslation translation, IEnumerable`1 items)
   at ResourceManager.Translator.Translate(ITranslate obj, String translationName)
   at ResourceManager.GitExtensionsFormBase.InitializeComplete()
   at GitUI.CommandsDialogs.FormPush..ctor(GitUICommands commands)
   at GitUI.GitUICommands.<>c__DisplayClass142_0.<StartPushDialog>g__Action|0()
   at GitUI.GitUICommands.DoActionOnRepo(IWin32Window owner, Func`1 action, Boolean requiresValidWorkingDir, Boolean changesRepo, EventHandler`1 preEvent, EventHandler`1 postEvent)
   at GitUI.GitUICommands.StartPushDialog(IWin32Window owner, Boolean pushOnShow, Boolean forceWithLease, Boolean& pushCompleted)
   at GitUI.GitUICommands.StartPushDialog(IWin32Window owner, Boolean pushOnShow)
   at GitUI.CommandsDialogs.FormBrowse.PushToolStripMenuItemClick(Object sender, EventArgs e)
   at GitUI.CommandsDialogs.FormBrowse.ToolStripButtonPushClick(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at GitUI.ToolStripEx.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

@vbjay
Copy link
Contributor

vbjay commented Nov 10, 2022

Output of

dotnet --list-sdks

dotnet --list-runtimes

If you don't have at least 6.0.9 desktop and regular runtimes installed then you must resolve that. I install them through chocolatey so it's super easy to keep up to date.

@mstv
Copy link
Member

mstv commented Nov 10, 2022

@vbjay, my point is:

Other GE instances, which have been running in parallel for more than one day, are able to push!
Restarting the affected instance has helped.

@vbjay
Copy link
Contributor

vbjay commented Nov 10, 2022

During that time did you alter dotnet runtimes? Curious if that might have caused issues.

@RussKie
Copy link
Member

RussKie commented Nov 10, 2022 via email

@mstv
Copy link
Member

mstv commented Nov 10, 2022

The this week's Windows update (from local WSUS) was waiting for reboot since about an hour before.

I have even disabled plug-in loading on that machine.

@mstv
Copy link
Member

mstv commented Nov 10, 2022

#10376 might have the same cause although a different DLL was affected.

@RussKie
Copy link
Member

RussKie commented Nov 10, 2022

So, resolved?

@mstv
Copy link
Member

mstv commented Nov 10, 2022

So, resolved?

Still unclear.
Windows update should know that .NET is in use...
Anti-Virus temporarily blocking a file?
But why does it need a restart of the application then?

@vbjay
Copy link
Contributor

vbjay commented Nov 10, 2022

Because it loaded different dlls when app was running for days vs your run after the update. Windows does seem to fail here where Linux supports inode replacement and no reboot patching to a point.

@vbjay
Copy link
Contributor

vbjay commented Nov 10, 2022

I'd leave it to weird state from update. Possibly report to windows and dotnet teams to support some kind of state move feature like installer creating symbolic links or whatnot so there isn't some kind of weird mid update state.

@mstv
Copy link
Member

mstv commented Nov 11, 2022

Because it loaded different dlls when app was running for days vs your run after the update.

N/A because:

Other GE instances, which have been running in parallel for more than one day, are able to push!

All instances were started at the same time. I think I had pushed from all instances before the updates.

I'd leave it to weird state from update.

I agree.

Does it work for you after restart (and installation of .NET desktop runtime >= 6.0.9), too, @ms-coder?

@ghost
Copy link

ghost commented Nov 25, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 14 days. It will be closed if no further activity occurs.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity 💤 status: no recent activity The issue is stale
Projects
None yet
Development

No branches or pull requests

5 participants