The front-end time, due to work needs, studied how to embed an independent aspx application into the MOSS system, so I searched the internet, there are not many methods, focus on the reference ofArticle.
However, according to the method described by the author, the error is "an unexpected error occurs .", Later, "This webpage does not allow the use of the basic type" demomosspage. demomosspage ". This type is not registered as a security type ." This error occurs because "demomosspage" is the class name used in my web application, not the original author "webinmoss ".
So I added a strong name to my web application, fixed the version number, and re-compiled and released the application. The problem still persists. Is it because I didn't understand what the author meant or did not pay attention to some details? As a result, the operation steps are gradually checked from the beginning. The steps are exactly the same. Why is the page not displayed. So he carefully looked at each step and noticed a detail:
<Safecontrol Assembly = "demomosspage, version = 1.0.0.0, culture = neutral, publickeytoken = NULL" namespace = "demomosspage" typename = "*" Safe = "true"/>
In this configuration section, publickeytoken = NULL, but why is publickeytoken NULL for DLL with a strong name? So I modified it and checked the publickeytoken of DlLL, and adjusted the safecontrol. Then, iisreset, F5, OK, and the page runs normally.
I don't know why the original author can run the program without adding more names.