我现在正在寻找很长时间,但无法找到解决问题的方法:
我编译了一个成功的c#项目(使用monodevelop)
当我尝试使用> mono fubar.exe运行它时 我得到以下输出:
Error loading UIA bridge (UiaDbusBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812): System.IO.FileNotFoundException: Could not load file or assembly 'UiaDbusBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812' or one of its dependencies. The system cannot find the file specified. File name: 'UiaDbusBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812'at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] in <filename unknown>:0
我还安装了包: libmono-UIA - *
每次帮助
与
MONO_PATH = / usr / lib / uiaatkbridge / mono fubar.exe
我得到:
Error loading UIA bridge (UiaDbusBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812): System.IO.FileNotFoundException: Could not load file or assembly 'UiaDbusBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812' or one of its dependencies. The system cannot find the file specified.
File name: 'UiaDbusBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f4ceacb585d99812'
at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] in <filename unknown>:0
at System.AppDomain.Load (System.String assemblyString) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] in <filename unknown>:0
at System.Windows.Automation.Provider.BridgeManager.GetAutomationBridge (System.String bridgeAssemblyName) [0x00000] in <filename unknown>:0
首先:谢谢你的回应
find / | grep uiadbusbridge
没有给出结果,但我认为包名称是这样命名的...... 如果我只搜索“uia”,我会得到以下结果:
/var/lib/dpkg/info/libmono-uia-atkbridge1.0-cil.md5sums
/var/lib/dpkg/info/libmono-uia-winforms1.0-cil.md5sums
/var/lib/dpkg/info/libmono-uia-winforms1.0-cil.list
/var/lib/dpkg/info/libmono-uia-atkbridge1.0-cil.list
/var/lib/dpkg/info/libmono-uia3.0-cil.clilibs
/var/lib/dpkg/info/libmono-uia-winforms1.0-cil.clilibs
/var/lib/dpkg/info/libmono-uia-cil-dev.list
/var/lib/dpkg/info/libmono-uia-cil-dev.md5sums
/var/lib/dpkg/info/libmono-uia-atkbridge1.0-cil.postrm
/var/lib/dpkg/info/libmono-uia3.0-cil.list
/var/lib/dpkg/info/libmono-uia-atkbridge1.0-cil.postinst
/var/lib/dpkg/info/libmono-uia-atkbridge1.0-cil.clilibs
/var/lib/dpkg/info/libmono-uia3.0-cil.md5sums
/var/lib/dpkg/info/libmono-uia-atkbridge1.0-cil.shlibs
/usr/lib/uiautomationwinforms
/usr/lib/uiautomationwinforms/UIAutomationWinforms.dll
/usr/lib/uiaatkbridge
/usr/lib/uiaatkbridge/UiaAtkBridge.dll.config
/usr/lib/uiaatkbridge/UiaAtkBridge.dll
/usr/lib/uiaatkbridge/libbridge-glue.so
/usr/lib/pkgconfig/mono-uia.pc
/usr/share/app-install/desktop/amule-adunanza-utils-gui:amuleguiadunanza.desktop
/usr/share/app-install/icons/amuleguiadunanza.png
/usr/share/doc/libmono-uia-winforms1.0-cil
/usr/share/doc/libmono-uia-winforms1.0-cil/copyright
/usr/share/doc/libmono-uia-winforms1.0-cil/NEWS.gz
/usr/share/doc/libmono-uia-winforms1.0-cil/README
/usr/share/doc/libmono-uia-winforms1.0-cil/changelog.Debian.gz
/usr/share/doc/libmono-uia-cil-dev
/usr/share/doc/libmono-uia-cil-dev/copyright
/usr/share/doc/libmono-uia-cil-dev/changelog.Debian.gz
/usr/share/doc/libmono-uia-atkbridge1.0-cil
/usr/share/doc/libmono-uia-atkbridge1.0-cil/copyright
/usr/share/doc/libmono-uia-atkbridge1.0-cil/NEWS.gz
/usr/share/doc/libmono-uia-atkbridge1.0-cil/README
/usr/share/doc/libmono-uia-atkbridge1.0-cil/changelog.Debian.gz
/usr/share/doc/libmono-uia3.0-cil
/usr/share/doc/libmono-uia3.0-cil/copyright
/usr/share/doc/libmono-uia3.0-cil/NEWS.gz
/usr/share/doc/libmono-uia3.0-cil/README
/usr/share/doc/libmono-uia3.0-cil/changelog.Debian.gz
答案 0 :(得分:0)
尝试:
MONO_PATH=/usr/lib/uiaatkbridge/ mono fubar.exe
不知道为什么没有这个就找不到它。
答案 1 :(得分:0)
由于某种原因,Ubuntu没有UiaDbusBridge(或UiaDbus)包。当您在互联网上搜索这些文件名中的任何一个时,您可能会偶然发现一个名为“rpmfind”的网站,其中列出了这些文件,因此它们存在于某处。
这里有一个github源代码库 - &gt; https://github.com/mono/uia2atk/tree/master/UiaDbus
我想我必须下载并编译它。至少我在www上的其他地方找不到二进制文件。
*修改
好吧,这些东西可怕的过时(最近的提交是从2年前开始的),我摆弄它但它只是一团糟。使用.NET 3.5等缺少各处的引用。