Could not load type from string value 'xxx'
I've been a little lazy lately, I haven't come up to the blog park on time to update, I personally feel that when I encounter problems, I leave footprints here and benefit others, come in Xiaojing Shuiyue is surrounded by the project, asp.net MVC project is coming, but I'm still not doing my job, I'm doing web crawlers, I'm posting it late, I'm still worried about cookies, hehe。。。。。 It's not good to let your project teammates find out, back to the point, what problems did you encounter today? Above
This screenshot is too big, hey。。。。。。。。 I got a lot of information on this issue for an afternoon, why didn't I have a detailed explanation, I had to record the solution, okay, what is the reason for this, I have learned spring.net have a deep understanding, and paste my spring.net configuration file code
From the above error prompt, it can be seen that the reason for the error is that asp.net website cannot find the BLLWeb file, which is actually very simple, the reason is that the namespace space name of the asp.net project I created is different from the BLLWeb space name, because it uses three layers to build the website, and of course the space between the business layer and the UI layer is different, in the code above <object id="BLL" type="BLLWeb.qgzx_admin,BLLWeb" singleton="false"></object>In the middle, the BLLWeb after the sentence type="BLLWeb.qgzx_admin, BLLWeb" has already explained that the namespace of this class is BLLWeb, not the namespace of the UI layer, so I think the spring.net is very smart, and it can be automatically found in the dll file of BLLWeb, but unfortunately I think too much,,,, The reason for this error is that the spring.net is still stupid, This assembly can only be referenced in the project that reads the configuration, so. Next, everyone understands, as long as you read this configuration file, that is, in my UI layer, just add the assembly references of BLLWeb just now, to be honest, as a three-layer architecture interface-oriented website, how can someone add BLLWeb references or DAL references in the UI layer, you can only add IBLL interface references, otherwise this structure is useless.
Well, that's it for today, in addition, Windows Phone 8.1 developer preview version has been released and updated, everyone must try it, especially users above 4.5 inches (you can use 3 columns of large tiles), everyone should pay attention to the business functions of Windows Phone, these are very powerful, to be honest, after using WP, I really won't use Android anymore, here is my personal feeling, don't spray. ps: Users can download the "Developer Preview Update" (it seems to be this name) software update, it needs to be updated several times, because there are still 2 or 3 invisible versions between 8 and 8.1, and 8.1 will be updated and pushed later, hahaha, so looking forward to it, but unfortunately I still use WP7.
The above is copied, and the workaround is as follows:
In fact, to put it bluntly, spring can't find the mapped file, and I wrote the wrong class name.
|