IIS Server Error in '/' Application

Source: Internet
Author: User

I have a problem:

If the sentence in the title is not determined to be the wrong one,

In the can flag the wrong is

Parser Error message:could not load Type "webprojecttest.test".

This sentence is my understanding,

Probably means: The parser gives you an error message: The type "webprojecttest.test" cannot be loaded.

Obviously, the quotation marks are a path.

Look

Source Error (Resource errors):

Notice that the first line is red, which means the problem is here.

What should I do for a beginner to come up with such a problem?

No, we're going to do this one step at a to analyze:

First, what we can be sure of is that the line of red code is:

Line 1:  <%@ page language= "C #" autoeventwireup= "true" codebehind= "Test.aspx.cs" inherits= "webprojecttest.test "%>
Wrong
This line of code is generally not understood (beginner) rest assured look below perhaps we will understand.
The code above is marked with a "red code" salutation.

We have to understand this line of code, otherwise the problem is difficult to solve, I first thought of the Help document (note is not Baidu, too rely on Baidu, Google and other search engines, will spoil our drip, perhaps it can quickly solve

Our mistakes but some of the material is not visible, although you are also reading this article, hehe),

Microsoft Help Documentation website: http://search.msdn.microsoft.com/search/zh-CN/default.aspx

Because I see page the word, start learning generally will know it is a class, so I query it

You can also see the page class from this screen, but when you click inside you will find that you can't find the keyword like language,inherits in the red Code,

But careful we will find in the below actually have a @page, point to try, because in that red Code also has @page, perhaps check page is simply understanding error.

After entering the @page, haha we see the words in the red code, which is actually the attribute.

Now let's look at a property to see what they correspond to.

When we see the codebehind attribute, we know that there is a chance that the problem may be here:

The description of the Codebehind property says: Specifies the name of the compiled file that contains the class associated with the page. This property cannot be used at run time.

You should use the CodeFile property instead to specify the name of the source file, using the Inherits property to specify the fully qualified name of the class.

Let's change the Codebehind property to CodeFile attribute (note save).

Then run the Web page in IIS where you modified the @page property, haha, it appears.

Summarize:

1, learn to use the Help document, to reduce the reliance on certain tools.

2, to learn to think about the problem-solving mode of thinking, to believe in themselves, will be able to solve the problem independently through their own ability, access will consume more time,

But I guarantee that the knowledge you learn will be far beyond the solution of this problem, perhaps you will not solve this problem later, but this kind of problem.

3, using the control variable method to solve the problem.

4, to learn to make certain problems to solve their own (or this is not related to the above but my brain flashes this conclusion, your summary is not necessarily a certain knowledge of the summary, as long as the brain

Show some meaningful methods on the line, such as writing code, in the beginner's time, learn better people may not know some of the abnormal window is what, are students appear these

Problem, only to know that this window will appear, so the pros and cons always have it. )

5, the General new Web page @page has the CodeFile property, the new project @page has the Codebehind attribute.

Description

Let me briefly say the process of dealing with this problem,

This problem is produced at chance.

I had an exercise when I wrote a small site only dozens of lines of code, I use a new project, with IIS open to browse the Web when there is an appeal issue,

I then use a small web site built with the new Web site, which is normal when you open a Web page with IIS.

So guess:

New project, you cannot open the Web page directly with IIS.

But

Create a new Web site that can be opened directly with IIS,

You can also get some hidden information: the IIS settings may be correct. This is crucial.

(The way of thinking, contrast, the new site and the new project is not a very sharp contrast?) Why would I think it would be more of a experience to compare a new site to a new project?

1, I have been very confused about the new site and the new project is different, 2, experience tells me that I have no new project successfully completed IIS, and the new site is better.

There is speculation, of course, to argue:

To demonstrate the need to design a demonstration program:

Notice that the small site is small (the site is small, but it may be the problem of the dozens of lines of code, it is possible to nip this early in the cradle, and if guessing wrong, can also be found to be related to the dozens of lines of code), but it may be some unnecessary elements affect my argument, So I built the simplest model in the way of new projects and new Web sites, respectively.

(Mode of thinking, modelling, we abstract the object of our study to the purest state, in order to prevent a certain unnecessary factors affect the test)

(The way of thinking, analysis, note that there is speculation there will be arguments, there is argument to have a demonstration program (ie, experiment), these two sentences is a bit like mathematical analysis of the inequality, the idea of a very smooth convergence of the past)

Finally, my experimental results are:

The newly created new project, which was run by IIS, shows us the most researched situation.

After you create a new new Web site, IIS runs normally.

Conclusion:

Some of the factors that created the new project triggered the problem.

Contrast method,

Guessing, 1, profile issues, 2, form file issues.

After comparing the respective code, it is not necessary to find some properties in the @page of the form file.

The property is transformed to succeed.

What I'm talking about now is a different process from the top of the story?

Yes, here is what I made a serious mistake, I did not analyze the page to bounce out the wrong message.

and experience to spend time guessing argument and so on.

Again summary:

Dealing with problems is like doing experiments, you need to keep

Operational analysis, speculation, argumentation, conclusion. This is a very strong logical ability to examine.

Perhaps the above procedure is not comprehensive, but will continue to refine these steps with experience.

Solving a problem is a reflection of thinking.

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.