There is no exception in local publishing. After the server is released, a 404 error solution is displayed, with no exception 404

Source: Internet
Author: User
Tags website server

There is no exception in local publishing. After the server is released, a 404 error solution is displayed, with no exception 404

With regard to the program source code, the. Net version, the assembly, and other files, there is no problem in local release, but there is a 404 error on the rewrite page on the server.

 

The time when the problem occurred: 20140919, the time when the problem was solved, 20140920. The effect of the problem is as follows:

 

Click search after local publishing:

 

After the server is published, click Search

 

This is strange. It is clear that there are two identical source codes, the same configuration file, and the same database. There are no local problems and server problems.

 

The solution is as follows:

First, check whether iis has the permission to access the url rewriting address under this folder. (Return: added the permission for the net work service account so that it has access rights under this folder ).

Second, check whether the database matches. It may be because the master (Global Path configuration file of this Project) configuration file address has changed or changed its access address! (Return: No update, or the original path ).

Third, check whether there are malicious programs to protect the files in the folder from reading, or is the security software blocking the reading or writing of this folder due to the malicious file infection of the folder (return: shut down dangerous ports such as database or change and external connection ports such as 1433,21, 25, 80, and 110.

After so many tasks are completed, I am wondering why (the Assembly, file, and configuration are normally accessed) has not fixed this problem. What is the reason, later, I used the division that programmers often use. (You know, this is my final method. If it doesn't work any more, I will go to shit ~)

 

How to exclude, exclusion is to write all server elements in comparison to the elements on the local machine. There is always a difference between them. Let's look at this difference and see if there is any exception, as for those similarities, we do not have to observe them!

 

Location

 

Assembly

Source code

Configuration

System

Iis

Memory

Database

Net version

Local

 

Cw100

Cw100

Cw100

Win8.1

Iis8.5

6G

2014

. 4.0

Online

 

Cw100

Cw100

Cw100

Win2003

Iis6

2.5 GB

2005

. 4.0

 

These are the differences,

There is one instance in both databases and the memory. I don't think it's okay. You can exclude these two instances first. The two differences are as follows.

 

First, in terms of system, I have tried this version by many people. Besides Windows Server, windows, win8, and win8.1 are all okay. I think it should be irrelevant to the system.

2. in Iis, the server is 6.0 on the iis server and 8.5 on the local server. I guess this may be a bit mysterious. Then I went around iis and checked the iis version. No problem, and other websites can be published successfully.

 

Then I slept...

 

Surprised, is it compatible !!!

Then I remembered the error I reported a while ago.

The configuration file is configured with two nodes, one for saving versions earlier than iis7, and the other for using and configuring Versions later than iis7! I deleted iis7 or lower!

Is it because a node is deleted!

Then I replace the original configuration file.

 

Then OK

 

I mean very, very, very speechless !!!

 

 

Note: Because I published all the original files, I may accidentally delete the files or overwrite the previous configurations. Before I took over the project, when they changed the project, if you simply add an image or url, or change a url, directly change it online. This is not a solution I highly recommend, they have not submitted, that is, many seemingly simple changes, but are not actually synchronized in the project. This is a very tricky problem, I think of a very, very stupid solution. I wrote a detection code to identify the difference between the file and the current file, of course, many people ask me why I don't need svn or other tools. The first one is full of birds. I don't know much about it. O (empty _ blank) O hahaha ~,

Secondly, we often change the file name in our company. For example, a file named manage may be later called CW100.manage and CW200.manage. Various changes make me have to do this manually, semi-automated changes to some problems of this project, sometimes there are frequent version damage problems, but we still need to benefit from our git version control tool, I have to say this is a great managed tool, every time I complete a project change, I will carefully back up the data so that this project can be migrated successfully!


"The webpage cannot be displayed. It can be a network problem or 404 error." What is the 404 error?

I don't know whether you are prompted to open this webpage or all the web pages. If you open a webpage with such a prompt, it may be that the website you are visiting has a problem, if this is displayed on all websites, your network may be faulty. However, the former is quite common, that is, access to the website server itself is irrelevant to your machine.

. Net website. In the local test, click the delete button on the page to trigger the event normally. When you click the button on the server, Error 404 is displayed.

This problem may occur in many ways.
After you click Delete, is the redirection executed? Is the deletion event executed?

Related Article

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.