2017-03-16 2 views
3

임베디드 데비안 BeagleBone 블랙 시스템에서 실행중인 앱이 있습니다..NET 구성 시스템 MKBundle을 사용하는 Mono에 대한 종속성

모든 것을 개발하기 위해 전체 모노 및 모노 패키지를 설치 한 장치가 하나 있습니다.

또 다른 BeagleBone 블랙 디바이스의 임베디드 데비안 설치 이미지 인 다른 장치가 있습니다. 이것이 우리의 목표 시스템이 될 것입니다.

dev 디바이스에서 정상적으로 실행되면 앱이 잘 실행됩니다.

나는이 명령 줄 사용하여 응용 프로그램의 번들을 만들어 :이 번들을 생성

mkbundle -o MyExe.exe --static --deps SourceExe.exe dll1.dll dll2.dll

을 그 dev 장치에서 잘 실행됩니다.

대상 번들에서 MyExe.exe와 동일한 번들을 실행하려고하면 실행이 시작되고 임베드 된 일부 디버그 메시지가 출력됩니다.

문제는 MyExe.exe.config 파일을 읽어야하는 부분에 도달하는 경우입니다. 이 설정 파일에는 appSettings 섹션이 있습니다.

dev 디바이스에서 정상적으로 실행되므로 설정 파일이나 버그 파일에 고유 한 버그가 없습니다. 여기

포함 얻을 모든 어셈블리 (System.Configuration.dll 통지)입니다

embedding: /usr/lib/mono/4.5/mscorlib.dll 
embedding: /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll 
embedding: /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll 
embedding: /usr/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll 
embedding: /usr/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll 
embedding: /usr/lib/mono/gac/System.Security/4.0.0.0__b03f5f7f11d50a3a/System.Security.dll 
embedding: /usr/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll 
embedding: /usr/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll 
embedding: /usr/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll 
embedding: /usr/lib/mono/gac/System.Runtime.Serialization/4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll 
embedding: /usr/lib/mono/gac/System.ServiceModel.Internals/0.0.0.0__b77a5c561934e089/System.ServiceModel.Internals.dll 
embedding: /usr/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll 
embedding: /usr/lib/mono/gac/Mono.CSharp/4.0.0.0__0738eb9f132ed756/Mono.CSharp.dll 
embedding: /usr/lib/mono/gac/System.ComponentModel.Composition/4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll 
embedding: /home/diablosp/ign/PowerteqDeviceUpdate.dll 
embedding: /usr/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll 
embedding: /usr/lib/mono/gac/System.Messaging/4.0.0.0__b03f5f7f11d50a3a/System.Messaging.dll 
embedding: /usr/lib/mono/gac/Mono.Messaging/4.0.0.0__0738eb9f132ed756/Mono.Messaging.dll 
embedding: /usr/lib/mono/gac/System.Configuration.Install/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.Install.dll 
embedding: /usr/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll 
config from: /usr/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.config 
embedding: /usr/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll 
config from: /usr/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.config 
embedding: /usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/Mono.WebBrowser.dll 
config from: /usr/lib/mono/gac/Mono.WebBrowser/4.0.0.0__0738eb9f132ed756/Mono.WebBrowser.dll.config 
embedding: /usr/lib/mono/gac/System.Runtime.Serialization.Formatters.Soap/4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll 
embedding: /usr/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll 
embedding: /usr/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll 
config from: /usr/lib/mono/gac/System.Data/4.0.0.0__b77a5c561934e089/System.Data.dll.config 
embedding: /usr/lib/mono/gac/System.Numerics/4.0.0.0__b77a5c561934e089/System.Numerics.dll 
embedding: /usr/lib/mono/gac/System.Transactions/4.0.0.0__b77a5c561934e089/System.Transactions.dll 
embedding: /usr/lib/mono/gac/Mono.Data.Tds/4.0.0.0__0738eb9f132ed756/Mono.Data.Tds.dll 
embedding: /usr/lib/mono/gac/System.EnterpriseServices/4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll 
embedding: /usr/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll 
embedding: /usr/lib/mono/gac/System.Web.ApplicationServices/4.0.0.0__31bf3856ad364e35/System.Web.ApplicationServices.dll 
embedding: /usr/lib/mono/gac/System.Web.Services/4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll 
embedding: /usr/lib/mono/gac/System.Design/4.0.0.0__b03f5f7f11d50a3a/System.Design.dll 
embedding: /usr/lib/mono/gac/System.DirectoryServices/4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll 
embedding: /usr/lib/mono/gac/Novell.Directory.Ldap/4.0.0.0__0738eb9f132ed756/Novell.Directory.Ldap.dll 
embedding: /usr/lib/mono/gac/Mono.Data.Sqlite/4.0.0.0__0738eb9f132ed756/Mono.Data.Sqlite.dll 
embedding: /usr/lib/mono/gac/System.ComponentModel.DataAnnotations/4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll 
embedding: /usr/lib/mono/gac/System.IdentityModel/4.0.0.0__b77a5c561934e089/System.IdentityModel.dll 
embedding: /usr/lib/mono/gac/System.ServiceModel.Activation/4.0.0.0__31bf3856ad364e35/System.ServiceModel.Activation.dll 
embedding: /usr/lib/mono/gac/System.IdentityModel.Selectors/4.0.0.0__b77a5c561934e089/System.IdentityModel.Selectors.dll 

내가 얻을 수는 예외입니다 (당신은 아마 구성에 대한 부분을 무시할 수는 단지 결과입니다. 오류입니다. 주요 문제는 구성 파일의 appSettings 섹션에 문제가 있다는 것입니다. 개발 장치에서 작동한다는 점을 기억하십시오. 유일한 차이점은 dev 장치에 모노 완성 및 모노 디벨가 있음) :

[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. 

1) Unrecognized configuration section <appSettings> (/home/diablosp/ign/Ignition.CommandLine.exe.config line 3) 

Resulting in: Error Initializing the configuration system. 

Resulting in: An exception occurred while trying to create an instance of type 'NonWindowsCommon.BasicLog'. 

Resulting in: Cannot activate part 'NonWindowsCommon.BasicLog'. 
Element: NonWindowsCommon.BasicLog --> NonWindowsCommon.BasicLog --> DirectoryCatalog (Path="/home/diablosp/ign/") 

Resulting in: Cannot get export 'NonWindowsCommon.BasicLog (ContractName="Common.Interfaces.ILog")' from part 'NonWindowsCommon.BasicLog'. 
Element: NonWindowsCommon.BasicLog (ContractName="Common.Interfaces.ILog") --> NonWindowsCommon.BasicLog --> DirectoryCatalog (Path="/home/diablosp/ign/") 

at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart (System.ComponentModel.Composition.Hosting.ImportEngine engine, System.ComponentModel.Composition.Primitives.ComposablePart part, System.ComponentModel.Composition.Primitives.ExportDefinition definition) [0x0001b] in <0007e672dd7f4959adc6f8103d9c843f>:0 
at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue (System.ComponentModel.Composition.Hosting.CatalogExportProvider+CatalogPart part, System.ComponentModel.Composition.Primitives.ExportDefinition export, System.Boolean isSharedPart) [0x00034] in <0007e672dd7f4959adc6f8103d9c843f>:0 
at System.ComponentModel.Composition.Hosting.CatalogExportProvider+CatalogExport.GetExportedValueCore() [0x00018] in <0007e672dd7f4959adc6f8103d9c843f>:0 
at System.ComponentModel.Composition.Primitives.Export.get_Value() [0x00012] in <0007e672dd7f4959adc6f8103d9c843f>:0 
at NonWindowsCommon.MefDI.One (System.Type t) [0x00029] in <c227ad8f1c41442389e89c655163f0ce>:0 
at NonWindowsCommon.MefDI.One[T]() [0x0002a] in <c227ad8f1c41442389e89c655163f0ce>:0 
at Ignition.CommandLine.Program.Configure() [0x000b1] in <6b59edb08c7748fd97fda94a23fc9e1c>:0 
at Ignition.CommandLine.Program..ctor() [0x00012] in <6b59edb08c7748fd97fda94a23fc9e1c>:0 
at Ignition.CommandLine.Program.Main (System.String[] args) [0x00001] in <6b59edb08c7748fd97fda94a23fc9e1c>:0 

답변