Workaround: Cannot use leading. Exit on top-level directory

Source: Internet
Author: User

Just solved the verification code encountered the problem, and encountered a path problem. After seeing this problem, it is not surprising, but a little depressed. Path problem .... Computer room charging system because the copy and paste files, the DLL file path problem, a great deal of effort to solve. This time again copied paste the file, changed position. The problem arises when the beef brisket press release system opens the Category management interface. However, the more disorderly operation, the more mistakes in learning.


1. Problems and Workarounds



Because unfamiliar with the first consideration of the code is not where the error, after many times to see the contents of the video, determine not the code. Since the file name was modified earlier, after copying the file changed the path, let me modify the contents of many systems. These actions add to my difficulty in determining the direction of the problem. Some operations have no effect, the Internet found a solution;

Solution:

1. See if the requested path is in error .2. Check whether the image or path in the requested webpage is correct (".. /.. /".) , you must be careful.
3. In a reference to the picture where someone made such a connection ". /xxx/pic ". After the modification, "~/pic" is good.

Cause: In the design of the time, the establishment of a virtual directory, under a website, but the update to the release environment, published to a website, is already a top-level directory, so it is not available. /


I wrote the wrong place in the program:

When dragging a CSS file to a Web form.

Should be: <link href= ". /css/manager_common.css "rel=" stylesheet "/>

But when the error time to check, found that the path of the CSS file is <link href= ". /.. /css/manager_common.css "rel=" stylesheet "/> Path by". /"became". /.. /".

Solve:

Because the master page is used in the program, there are also nested master pages. and Web Forms that use master pages. We need to find something like this in the entire solution. Then make the changes, ". /.. /"Modify to" ... /"。 The best way is to simply drag the referenced CSS back into the interface and delete the previous path;


2. Brain Tonic ~/and. /

when learning, you often encounter symbols that identify the path: images/1.jpg and the ~/images/1.jpg and.. /images/1.jpg

Images/1.jpg: find 1.jpg in the images of your file peers.

Virtual path:

~/images/1.jpg: Find the 1.jpg inside the images in the file subdirectory

.. /images/1.jpg: Find the 1.jpg inside the images in the file's parent directory


3. Summary:

Learn the Beef Brisket News management System, the smooth learning of the past, the impression is not profound, every time encountered a variety of debugging, learning video repeatedly. Only to feel really learned a lot of things in the sense of harvest. Do not worry about problems, on the contrary, should be excited, because also learned knowledge, need to constantly improve the ability and confidence to deal with problems and solve problems.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Workaround: Cannot use leading. Exit on top-level directory

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.