4

我现在搜索了很长时间,但找不到解决我的问题的方法:

我成功编译了 ac# 项目(使用 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         
4

2 回答 2

0

尝试:

MONO_PATH=/usr/lib/uiaatkbridge/ mono fubar.exe

不知道为什么没有这个就找不到DLL。

于 2013-04-23T13:08:27.793 回答
0

出于某种原因,Ubuntu 没有 UiaDbusBridge(或 UiaDbus)包。当您在互联网上搜索这些文件名中的任何一个时,您可能会偶然发现一个名为“rpmfind”的网站,其中列出了这些文件,因此它们存在于某个地方。

这里有一个 github 源代码库 -> https://github.com/mono/uia2atk/tree/master/UiaDbus

我想必须下载这些东西并编译它。至少我在 www 的其他任何地方都找不到二进制文件。

*编辑

好吧,这些东西已经过时了(最新的提交是从 2 年前开始的),我摆弄了它,但它只是一团糟。到处都缺少引用,使用 .NET 3.5 等等。

于 2013-09-12T14:40:45.967 回答