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-*

すべての助けのためのthx


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 に答える