我正在尝试实现Quartz.Net.只要没有配置日志记录一切正常(调试输出显示"找不到配置部分 - 抑制日志输出").
启用日志记录后,我将收到以下错误:无法从配置部分"common/logging"获取Common.Logging的配置.
内部异常:为common/logging创建配置节处理程序时发生错误:无法创建类型'Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter,Common.Logging.Log4net'
我用了几个资源,这其中以varify我的配置,但据我看到它应该是正确的.
我的app.config:
<configSections>
<section name="quartz" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0,Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="common">
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
</sectionGroup>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<common>
<logging>
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4net">
<arg key="configType" value="INLINE" />
</factoryAdapter>
</logging>
</common>
<log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%-6p%d{yyyy-MM-dd hh:mm:ss} – %m%n" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="ConsoleAppender" />
</root>
</log4net>
<quartz>
<add key="quartz.scheduler.instanceName" value="Driver.Service.Scheduler" />
<add …Run Code Online (Sandbox Code Playgroud) c# log4net log4net-configuration common.logging quartz.net-2.0
我无法将Google地图合并到使用MonoDroid创建的adroid应用中.我正在使用MonoDevelop IDE.
我引用了Mono.Android.GoogleMaps包(我注意到版本是0.0.0.0).我创建了一个名为LocationMapActivity的MapActvity.当我尝试构建应用程序时,我在LocationMapActivity.java中收到以下错误:包com.google.android.maps不存在.
在此先感谢您的帮助!
编辑:确保在安装Google API后不要忘记设置正确的目标框架.