C#:Could not load type 'XXX.Global'



今天,在从现网代码,转为本地调试的时候,在web.config改过接口之后,忽然发现接口页面弹出这种未加载错误:

c#,未能加载类型

Could not load type ‘XXX.Global‘

很是纳闷,不解,项目没有包含接口么,不对啊,已经包含进去啦,点击http://localhost:5320/端口,同样此错误,很是不解。

然后在网上找了找,发现大部分解决都是删除global文件,然后重新加载。也有的Rebuld成功的。

我这个地方是rebuld不成功,global文件删除倒是可以,问题是我没想这么解决,就仔细问了问,找到如下办法。

解决办法,

在未加载项目上,找到该接口或文件,点击右键,找到View in 
Browser , 点击,使其成功在浏览器运行,然后关闭。

再到web.config中找到http://localhost:8080/aa.asmx,点击,便可以成功执行了

注意:本地调用接口,没有目录,可直接写接口名

很是奇葩,诶,奇葩的世界,真是矫情!!!

PS:本文仅为记录交流,不做他用。不经允许,不得转载

C#:Could not load type 'XXX.Global'

时间: 2024-08-01 03:10:42

C#:Could not load type 'XXX.Global'的相关文章

ASP.NET Parser Error Message: Could not load type 'Web.Global'.

Server Error in '/myapp' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. P

解决:Could not load type 'System.ServiceModel.Activation.HttpModule' from assemb

解决:Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode 今天我发布项目,获取运行出错如下: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceMode 解决:Could not load type 'System.Se

错误代码: Could not load the "XXX.png" image referenced from a nib in the bundle with identifier "XXX"

出现该问题的原因是没有将相应地图片文件copy到bundle里,解决办法很简单, 点击项目名称,选择Build Phase,找到Copy Bundle Resources,点击“+”,将相应的资源文件添加即可.

spring注入时报错::No qualifying bean of type 'xxx.xxMapper'

做一个小项目,因为有 baseService,所以偷懒就没有写单独的每个xxService接口,直接写的xxServiceImpl,结果在service实现类中注入Mapper的时候,用的 @Autowired, 结果,junit一启动,就报错误:Java.lang.illegalStateException:Failed to load ApplicationContext 具体是在 创建bean的时候报:No qualifying bean of type 'xxx.xxMapper' ab

启动项目,编译报错:Consider defining a bean of type 'XXX' in your configuration.

在controller层注入ConfigBean,编译器报错: 一开是以为是intellij idea 的告警级别设定的问题,就没有在意,继续启动项目,结果控制台报错:Consider defining a bean of type 'XXX' in your configuration. 错误信息显示找不到这个Bean类. 但是我明明写了啊. 后来经过一番查找,大概有了如下理解:主要问题出在@SpringBootApplication 这个注解上. 点进这个注解,可以看到,此注解功能大概由下面

在eclipse中新建java问题报错:The type XXX cannot be resolved. It is indirectly referenced from required .class files

在Eclipse中遇到The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....,查找的解决办法如下: 一: It is indirectly referenced from required .class file 原因:你正要使用的类调用了另一个类,而这个类又调用了其他类,这种关系可能会有好多层.而在这个调用的过程中,某个类所在的包的缺失就会造成以上那个错误. 解

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 问题描述: 再windows server 2008 r2 环境下搭建.net网站 ,运行是IIS7.0提示以上问题 解决方案: 这里需要注册一下ASP.NET 4.

log4net 存储到oracle 调试 Could not load type [log4net.Appender.OracleAppender]

近期在弄webfrom oracle 调用 log4net 開始调试时不出数据,打开了log4net 自己的debug功能后发现: log4net: Logger [root] level set to [name="ALL",value=-2147483648]. log4net: Loading Appender [OracleAppender] type: [log4net.Appender.OracleAppender] log4net:ERROR Could not crea

Receiver type 'XXX' for instance message is a forward declaration

今天遇到这个错误.刚开始字体太大,没显示全,后来调小字体之后看到了完整提示信息: 之后就忽然想起没引入相关的类,添加 #import "RDVTabBarItem.h" 就行了. Receiver type 'XXX' for instance message is a forward declaration