IIS Server Error in & #39;/& #39; Application

Source: Internet
Author: User

 

My problems:

For example, it cannot be determined that the sentence in the title is incorrect,

Which of the following can mark as incorrect?

Parser Error Message: cocould not load type "WebProjectTest. Test ".

This is my understanding,

The parser gives you an error message: the type "WebProjectTest. Test" cannot be loaded ".

Obviously, there is a path in the quotation marks,

Look

Source Error (resource Error ):

Note that the first line is red, and the problem is described here.

What should I do if such a problem occurs for a beginner?

We will analyze it step by step:

First, we can determine the line of red code:


Wrong,
This line of code is generally hard to understand (for beginners) Rest assured that we may understand it below.
The above code is marked by the "red code.

We must understand this line of code, or the problem will be difficult to solve. I first thought of the help documentation (note that it is not Baidu, so relying too much on Baidu, Google, and other search engines will spoil us, maybe it can solve it quickly

The mistakes we made are invisible to some substantive things, although you are reading this article ),

Microsoft Help documentation Website: http://search.msdn.microsoft.com/search/zh-CN/default.aspx

Because I see the word "Page", I usually know that it is a class at the beginning, so I will query it.

 

You can also see the Page class through this Page, but after you click it, you will find that the keyword like Language and Inherits in the red Code cannot be found,

However, we will find that there is actually a @ Page below, just a little bit, because there is also @ Page in the red code, maybe querying the Page is simply an error of understanding.

After clicking @ Page, Haha we can see the words in the red code, which are actually attributes.

Now let's look at each attribute to see what functions they correspond.

When we see the CodeBehind attribute, we know that the problem may occur here:

CodeBehind attribute description:

CodeFileAttribute to specify the name of the source file.InheritsAttribute specifies the fully qualified name of the class.

Summary:

1. Learn to use the help documentation to reduce dependencies on certain tools.

2. Learn how to think about the problem-solving mode, believe in yourself, and be able to solve the problem independently through your own capabilities, which will take more time to obtain,

However, I promise that the knowledge you have learned will far exceed the solution to this problem. Maybe you will not solve this problem, but this kind of problem in the future.

3. Use the control variable method to solve the problem.

4. Learn to solve some problems by yourself (or this has nothing to do with it, but my brain flashed this conclusion. Your summary is not necessarily a summary of some knowledge, as long as the brain

Shows some meaningful methods, such as writing code. When you are a beginner, some of the better people may not know what some exception windows are, all of you see this.

The problem occurs, so the pros and cons are always there .)

5. Generally, @ Page in the new webpage has the CodeFile attribute, and @ Page in the new project has the CodeBehind attribute.

Note:

Let me briefly describe the process for handling this problem,

This problem is caused by accident.

I originally wrote dozens of lines of code for a small website during my exercises. I used a new project and appealed when I opened the web page using iis,

Then I use a small website generated by creating a new website. It works normally when I open a Web page using iis.

So I guess:

When creating a project, you cannot directly use iis to open the webpage,

However

Create a website and use iis to open its webpage,

You can also obtain some hidden information: the iis settings may be correct. This is critical.

(In the way of thinking and comparison, isn't it a stark contrast between creating a website and creating a project? Why should I think that the comparison between new websites and new projects may be related to experience?

1. I have been struggling with the difference between creating a website and creating a project. 2. experience tells me that I have not created a project to successfully complete iis, but to create a website)

There is speculation, of course, to prove:

To be demonstrated, we must design the Demonstration Scheme:

Note that a small website is small (the website is small, but it may also be a problem with the dozens of lines of code. It is necessary to put this possibility in the cradle as soon as possible, and if the guess is wrong, it may also be related to the dozens of lines of code), but it may be my argument that there are some unnecessary elements, so I created the simplest model by creating projects and new websites respectively.

(The way of thinking, modeling, we abstract the objects we study to the purest state, the purpose is to prevent unnecessary factors from influencing the test)

(The way of thinking, analytical method, notes that there is speculation, there must be arguments, there must be arguments (that is, an experiment), these two sentences are a bit like mathematical analysis to prove the inequality, the train of thought passes smoothly)

Finally, my experiment result is:

After iis runs, the newly created Project displays the most in-depth research information.

The newly created website is normal after iis is running.

Conclusion:

Some factors in creating a project trigger the problem.

Comparison method,

Guess, 1, configuration file problems, 2, Form file problems.

After comparing the codes, we find that some attributes in the @ Page of the Form file do not need to be used.

The property is successfully converted.

What I'm talking about now is different from the above process?

Yes, I made a serious mistake here. I didn't analyze the error message popped up on the page.

In contrast, it takes time to guess and argue based on experience.

Summary:

To solve the problem, just like doing experiments, You need to constantly

Operation Analysis, speculation, argument, and conclusion. This section describes the strong logic capabilities.

The above steps may not be comprehensive, but will be continuously improved with experience.

Solving problems 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.