客户双显示器在某些机器上工作而在其他机器上不工作 [英] Customer dual monitor is working in some machine and not working in some other

查看:52
本文介绍了客户双显示器在某些机器上工作而在其他机器上不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我已经将辅助显示器集成到销售点系统中,该系统也有背景视频播放部分。视频在某些机器上正常运行。但是,对于很少的机器它根本不工作。抛出以下错误。



Hi,

I have done an integration of a secondary monitor to a point of sale system which is having a background video playing part as well. The video is running properly in some machines. But, for few machines its not working at all. It's throwing the below error.

2015-11-30 16:39:51,811 [1] FATAL - An error has occurred in the system.
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at ......PosApp.UI.Windows.WindowsMediaPlayerForm.InitializeComponent()
   at ......PosApp.UI.Windows.WindowsMediaPlayerForm..ctor()
   at ......PosApp.UI.Windows.LogOnForm.LogOnForm_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at ......PosApp.UI.Windows.WindowsForm`2.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  C:\Program Files (x86)\....\..... POS\......PosApp.UI.Windows.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = MYPC\MyUser
LOG: DisplayName = Interop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/.../..... POS/
LOG: Initial PrivatePath = NULL
Calling assembly : AxInterop.WMPLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\....\..... POS\......PosApp.UI.Windows.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Program Files (x86)/..../..... POS/Interop.WMPLib.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/..../..... POS/Interop.WMPLib/Interop.WMPLib.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/..../..... POS/Interop.WMPLib.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/..../..... POS/Interop.WMPLib/Interop.WMPLib.EXE.

2015-11-30 16:40:11,715 [1] FATAL - An error has occurred in the system.
System.NullReferenceException: Object reference not set to an instance of an object.
   at ......PosApp.UI.Windows.LogOnForm.CancelActionButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)







我尝试了以下方法来解决这个问题,但我仍然收到此错误。



首先,我复制了AxInterop.WMPLib。 dll到GAC文件夹。

然后检查dotNet版本并更新所有相同版本的机器。

然后我通过几个网站找到解决此问题的方法。不过,我无法解决这个问题。我花了两天多的时间才找到解决方案。





有没有人遇到过这个问题?对此有何解决方案?帮助我。



提前谢谢。




I tried the following to fix this, but still I'm getting this error.

First, I copied the AxInterop.WMPLib.dll to the GAC folder.
Then checked the dotNet version and updated all the machines with the same version.
Then I went through several websites to find a solution for this issue. Still, I couldn't sort it out. I've spent more than two days to find a solution.


Did anyone came across this issue? Any solutions for this? Help me on this.

Thanks in advance.

推荐答案

我原以为你已经涵盖了明显的 - 确保AxInterop.WMPLib.dll是在正确的路径(或你所说的GAC)



所以,你有没有想过创建一个MSI安装程序包并正确打包从部署机器到prod机器的所有依赖关系? (你不会说你如何部署你的应用程序,相信我,我一直在那里,手动部署'点点滴滴'是一个杯子游戏)
I would have thought you've covered the obvious - making sure AxInterop.WMPLib.dll is in the correct path (or the GAC as you have said)

so, have you thought about creating an MSI installer package and properly packing up 'all the dependencies' from your deployment machine to your prod machine(s) ? (you dont say how you are deploying your app, trust me, Ive been there, deploying 'bits & pieces' manually is a mugs game)


这篇关于客户双显示器在某些机器上工作而在其他机器上不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆