Add aspx application to Moss

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.