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

时间:2023-03-08 18:08:15

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'.

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

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

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

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

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