腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
Windows服务无法访问
app.config
中
的
Castle
Windsor
配置数据
.net
、
configuration
、
castle-windsor
、
app-config
我
在
几个web应用程序中
使用
Castle
Windsor
,只需将配置数据放在web.config
中
即可。<?
xml
version="1.0" encoding="utf-8" ?> <configSections> <
浏览 1
提问于2010-08-12
得票数 1
回答已采纳
1
回答
Castle
Windsor
:如何知道容器已经初始化或配置?
configuration
、
castle-windsor
我正在
使用
Castle
Windsor
和我的
App.config
文件
中
的配置。
在
我
使用
的代码
中
:去拿到容器。但是对于我的应用程序的某些配置,我不想
使用
CastleWindsor (对于某些迁移问题...)因此,我不想在我的
App.config
中
浏览 0
提问于2009-11-25
得票数 1
回答已采纳
6
回答
使用
Castle
.Facilities.Logging和log4net进行日志记录
logging
、
log4net
、
castle-windsor
、
log4net-configuration
我用ILogger类型的公共属性编写了我的类,并在我的
app.config
中
采用如下配置。<configuration> <section name="
castle
" type="
Castle
.
Windsor
.Configuration.AppDomain.CastleSectionHandler,
Castle
.
Windsor
" />
浏览 3
提问于2010-02-19
得票数 9
回答已采纳
1
回答
在
Winforms中
使用
Windsor
.net
、
winforms
、
dependency-injection
、
castle-windsor
我正在windows应用程序中
使用
Windsor
。,
Castle
.
Windsor
" /><?
xml
version="1.0" encoding=&q
浏览 10
提问于2018-03-04
得票数 0
回答已采纳
1
回答
使用
xml
/
app.config
在
Castle
Windsor
中
添加
字符串
列表
xml
、
string
、
list
、
app-config
、
castle-windsor
我需要你
使用
xml
/
app.config
在
Castle
Windsor
中
配置
字符串
列表
。public string Test{ get; set; } }<item> <Tes
浏览 11
提问于2017-08-30
得票数 0
回答已采纳
1
回答
从
XML
文件
中
配置
Windsor
IoC -
XML
元素值
中
的特殊聊天字符
castle-windsor
、
ioc-container
、
special-characters
、
xml-configuration
我用的是城堡温莎IoC我想从
XML
文件配置IoC
中
的对象。类仅是具有某些属性的POCO。例如,下面是我用来
在
IoC
中
配置对象的
XML
。 <?resource) in c:\BuildAgent\work\9834359f44c23fee\src\
Castle
.
Windsor
\
Windsor
\Configuration\Interpreters\
Windsor
\Co
浏览 0
提问于2012-03-05
得票数 1
回答已采纳
1
回答
多个项目上的
Castle
Windsor
配置
c#
、
configuration
、
web-config
、
castle-windsor
、
app-config
我正在尝试将
Castle
Windsor
集成到业务逻辑
中
,以帮助我编写一些单元测试(我知道
在
项目完成之前,单元测试和
Castle
Windsor
应该真正集成在一起,说来话长)。我遇到的问题是配置文件,我将
Castle
Windsor
配置信息
添加
到我的BL项目
app.config
中
,但是当网站或单元测试(两者都在不同的项目中)访问业务逻辑时,
Castle
Windsor</e
浏览 0
提问于2011-05-12
得票数 1
回答已采纳
3
回答
在
与此域关联的配置文件
中
找不到'
castle
‘部分
c#
、
.net
、
asp.net
、
iis
、
web-config
我对"
castle
“和"
castle
.
windsor
”一无所知。
浏览 2
提问于2011-02-05
得票数 5
1
回答
使用
xml
/
app.config
配置
Castle
Windsor
castle-windsor
、
castle
、
xml-configuration
我目前正在
使用
Castle
Windsor
构建一个示例应用程序。座右铭是
使用
xml
/
app.config
来打开/关闭方法拦截。我之前
使用
过Fluent API,它的效果很不错。带有一个名为的部分的
app.config
,它具有注册组件的
XML
语法。 当我
使用
fluent api时,我能够拦截方法调用,但无法
使用
xml
/
app.config</em
浏览 9
提问于2015-08-03
得票数 5
2
回答
在
WinForm应用程序中
使用
log4net时出现城堡温莎错误
winforms
、
log4net
、
castle-windsor
我
在
WinForm应用程序中
使用
Windsor
Castle
和log4net时遇到了这个错误。installers) in e:\OSS.Code\
Castle
.
Windsor
\src\
Castle
.
Windsor
\
Windsor
\WindsorContainer.cs:riga 674 inLoggingFacility>(f => f.LogUsing(LoggerImplementation.Log4net).Wit
浏览 0
提问于2011-05-03
得票数 4
回答已采纳
1
回答
当webApi与HttpSelfHostServer一起运行时,有没有办法
添加
httpModule?
dependency-injection
、
castle-windsor
、
asp.net-mvc-4
、
asp.net-web-api
、
self-hosting
所以,我
使用
了
Windsor
依赖解析器,当在System.Web.Http.WebHost下工作时一切都很好。但是,当我尝试
使用
HttpSelfHostServer时,我得到了异常消息:<system.web> <httpModules> <add name="PerRequestLifestyle" type="
Castle
.Micr
浏览 0
提问于2012-08-07
得票数 3
回答已采纳
1
回答
找不到元素“城堡”的架构信息
c#
、
asp.net-mvc
、
castle-windsor
、
web-config
<section name="
castle
"但是,当我尝试
在
配置节点内创建一个城堡节点时,如下所示 <components> </compone
浏览 1
提问于2009-11-13
得票数 2
回答已采纳
2
回答
如何同时
使用
Castle
Windsor
2.0和Log4Net?
log4net
、
castle-windsor
我想
使用
Castle
Windsor
2.0作为我的应用程序的控制反转容器,
使用
log4net 1.2.10来提供日志记录服务。这听起来很简单,但是我需要向
app.config
添加
什么才能获得
使用
log4net的ILogger呢?我看到的示例似乎来自
Castle
Windsor
的旧版本,因为它们引用的DLL和名称空间不在我下载的发行版
中
。特别是,我没有看到包含日志记录对象的和
Castle
.Facil
浏览 3
提问于2009-06-30
得票数 0
回答已采纳
3
回答
授权和
Windsor
asp.net-mvc
、
dependency-injection
、
castle-windsor
、
authorize
MyCustomAuth(IUserService userService) _userService= userService;... continued我
使用
Castle
Windsor
自动解析依赖项。当我试图
使用
它作为动作方法的属性时,显然我被要求传递参数,或者我需要一个无参数的构造器,它应该以某种方式解决它的依赖关系。 我试图给依赖注入一个属性,但是
Windsor
没有注入它。我现在看到的唯一选择是手动实例化具体的对象依赖项,从而失去了
Win
浏览 3
提问于2009-11-07
得票数 5
回答已采纳
1
回答
Castle
Windsor
:从
xml
配置中注入服务数组
xml
、
arrays
、
castle-windsor
、
castle
、
inject
我
在
使用
xml
配置通过
Castle
Windsor
注入一组服务时遇到了问题。我关注了链接,它很好地解释了这一点,但不知何故,它对我来说不起作用。下面是我
使用
的代码:{ { container.Install(
Castle
.<e
浏览 5
提问于2012-12-14
得票数 2
回答已采纳
1
回答
城堡温莎3+ Fluent NHibernate +
Castle
.NHibernate.Integration
.net
、
nhibernate
、
castle-windsor
、
integration
、
castle
我已经创建了一个示例项目来复制我
在
Castle
Windsor
和NHibernate集成工具
中
遇到的问题。
使用
以下堆栈跟踪:at <em
浏览 1
提问于2011-12-19
得票数 2
2
回答
Castle
Windsor
在
何处以及如何设置日志记录工具
c#
、
.net
、
logging
、
inversion-of-control
、
castle-windsor
这似乎相当令人印象深刻,但我唯一不能解决的是
Windsor
在
我的类上设置Logger属性的位置。logger = NullLogger.Instance; }} 所以我想知道的是
windsor
浏览 0
提问于2008-10-29
得票数 10
1
回答
带有.net 4.0和iis 7.5的城堡温莎
.net
、
dependency-injection
、
inversion-of-control
、
castle-windsor
在
我的应用程序
中
,我
使用
了.net 4.0,iis 7.0和
castle
windsor
旧版本。现在,我正在将此应用程序移动到新机器上,只需将iis 7.0更改为7.5。但是当我
在
新服务器上部署应用程序时,它不工作,给出了应用程序错误。 at
Castle
.
Windsor
.Installer.DefaultComponentInstaller.SetUpComponents(IConfigurat
浏览 0
提问于2012-08-16
得票数 0
1
回答
使
castle
widsor不加载所有模块
castle-windsor
我正在
使用
castle
windsor
动态加载一些模块。是否可以要求
castle
widsor不加载特定的模块?我想手动实例化该模块,然后将其
添加
到模块
列表
中
浏览 0
提问于2011-10-02
得票数 0
回答已采纳
1
回答
log4net控制台应用程序未登录发布
visual-studio
、
deployment
、
log4net
、
console-application
我有一个控制台应用程序
使用
log4net (通过城堡温莎)。当我调试时,所有东西都记录在控制台上,但是当我发布和运行应用程序时,没有任何记录。我将我的log4net配置放在一个单独的文件(log4net.config)
中
。我认为它没有找到配置文件,但这只是猜测。<?
xml
version="1.0"?> <configSections&
浏览 0
提问于2010-08-31
得票数 4
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券