Integration of 2 sets of independent ASPNET systems encountered problems of the HU solution

Source: Internet
Author: User
Tags net
Problem | Problems these days to be a set of net news system and a net BBS system to use together, this thought and ASP at that time, as long as the designated front of the news system, and then create a BBS path, throw them in that OK, the result ... News system can be used, BBS can not run.

I am a rookie, do not understand the reason, carefully watched for a while, think of it may be webconfig mischief, two sets of systems, that may use 2 Webconfig file Ah! The two are open, each other for a while, found that there is basically no duplication of places, envelope copy, pasted into a. Run it, it is successful, it can run! Haha, so simple ...
Results BBS A post, tell the wrong ... Depressed, separate running BBS and nothing, it seems to be webconfig has a problem, can be left to look right to see there is no duplication of errors Ah, there is no overlap with each other, there is no grammatical error! Fire big ing
Thought, finished, is not the ASPNET can not use this? Read a little introduction, did not mention Ah, may or not have their own right, and then patiently compared with 2 webconfig have any different places! Sure enough, a different place was found in one of the places:

News: <pages enablesessionstate= "false" enableviewstate= "true" validaterequest= "false" ></pages>
BBS: <pages enablesessionstate= "true" enableviewstate= "true" validaterequest= "false" ></pages>
Just one place enablesessionstate= "false"

I tried to change to enablesessionstate= "true"

Dizzy death, BBS can use, the news can not use! What about this? I do not have the source code of these two systems, which can not be modified. Just put it on, you can only use one of them? An angry put enablesessionstate= "true" go, you don't give me true, also don't false! Could have used .... There's nothing wrong with that.

Here I may happen, we say EnableSessionState should have a default, how to specify its system can not use, do not specify, let it use the default value how the system can be used?

And I think now the development of net BBS or news system, or even voting a class of a single function of the system, should be reduced to webconfig a type of file dependence, or others take back, the result because of webconfig file conflict, it is difficult to integrate into the people's website ... It's not convenient! Even if the fee can be customized for others, nor is it a scientific program design method ~! (I do not understand, personal feeling!) )




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.