asp.net mvc项目使用spring.net发布到IIS后,在访问提示错误 Could not load type from string value 'DALMsSql.DBSessionFactory,DALMsSql'.

asp.net mvc项目使用spring.net发布到IIS后,在访问提示错误 Could not load type from string value 'DALMsSql.DBSessionFactory,DALMsSql'.

如图:

 

就这问题我在博客园,CSDN找了一个下午。还以为配置文件有问题,再仔细看看,没什么问题。

 

“Could not load type from string value 'DALMsSql.DBSessionFactory,DALMsSql'.”翻译成中文不能从字符串值'DALMsSql.DBSessionFactoryDALMsSql'加载类型。

可能WebUI层可能没添加引用,但是在VS2017中调试运行没什么问题,也没报错啊。真是懵逼了。后来在UI层引用,重新生成UI层,再发布到ISS,Google Chrome访问,OK,搞定。在此把问题记录下来,希望能帮助有用的人。见笑,语言组织能力有限。嘻嘻。。。

 

参考连接:https://www.cnblogs.com/xmfdsh/p/3675223.html

posted @ 2018-06-12 11:48  Py。Go  阅读(384)  评论(0编辑  收藏  举报