spring.net
xml文件内容<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.net
http://www.springframework.net/xsd/spring-objects.xsd">
<object id="DisposeException" type="CaptureException.DisposeException, CaptureException"/>
<object id="ThrowException" type="TargetException.ThrowException, TargetException"/>
<object id="Proxy" type="Spring.Aop.Framework.ProxyFactoryObject, Spring.Aop" >
<property name="ProxyInte易做图ce">
<list>
<value>TargetException.IException,TargetException</value>
</list>
</property>
<property name="Target">
<ref object="ThrowException"/>
</property>
<property name="AdviceName">
<list>
<value>DisposeException</value>
</list>
</property>
</object>
</objects>
运行提示:
Cannot resolve type [CaptureException.DisposeException, CaptureException] for object with name 'DisposeException' defined in file [F:\TargetException\TestException\object.xml]
请高手指教 --------------------编程问答-------------------- 其中文件里 type的格式是该类的命名空间.类名, 我是这样写的,但不是为什么会有这样的错, 新手,分不多, 解决了另谢 --------------------编程问答-------------------- 你可能没有把有些文件给引入进去,还有你的WEB.CONFIG配置文件里面还是要配置
补充:.NET技术 , C#