国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊 iis+php提示An error occurred on the server when processing the

iis+php提示An error occurred on the server when processing the

Jun 13, 2016 am 09:46 AM
error server the url use hint

使用iis+php環(huán)境經(jīng)常會碰到iis php提示An error occurred on the server when processing the URL錯誤了,但是在php官網(wǎng)也找不到很好的解決辦法。

在幾天前幫朋友處理網(wǎng)站搬家后出現(xiàn)的MSSQL數(shù)據(jù)庫鏈接問題,后來我把它的代碼在本地搭建環(huán)境測試就發(fā)現(xiàn)一個ASP的問題并此解決了,也幫助我朋友解決了問題。所以今天給大家講下ASP出現(xiàn)的一個錯誤,雖然ASP的程序已經(jīng)很少人使用了,但是還是不少的。

  好的,進入我們的主題,首先我們先了解下演示的環(huán)境。首先我使用的是Windows 7 旗艦版 32bit 和IIS7.5 的版本。程序是使用了一個簡單的CMS系統(tǒng),語言:ASP。

出現(xiàn)的錯誤是:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.

  其實解決這個問題很簡單,今天就把它當(dāng)一節(jié)課與大家講講。

第一步:啟動IIS,打開該站點。在【功能視圖】的列表中找到【ASP】

第二步:找到【將錯誤發(fā)送到瀏覽器】的值修改為【True】并應(yīng)用。

如果你修改之后,直接預(yù)覽再看效果。估計是不行的,因為還沒有設(shè)置好。

出現(xiàn)的錯誤如下
Active Server Pages 錯誤 'ASP 0131'
不允許的父路徑
/admin/login.asp,行 1
包含文件“../Inc/Const.Asp”不能用“..”表示父目錄。

?

第三步:這時候我還要設(shè)置下【啟用父路徑】,同樣設(shè)置為【True】并應(yīng)用

再看下效果如何吧?

  順便也在這里解釋下,而我根據(jù)我理解來介紹呢,簡單來說呢?將錯誤發(fā)送到瀏覽器就是把程序錯誤信息不用友好的方式展現(xiàn)出來,主要是為了方便調(diào)試;啟用父路徑而是代碼中出現(xiàn)了“...”等的路徑方式,跟Windows權(quán)限繼承是一樣的。下面內(nèi)容來自微軟官方說明:
將錯誤發(fā)送到瀏覽器 [scriptErrorSentToBrowser]:
指定 Web 服務(wù)器除了將調(diào)試詳細(xì)信息(文件名、錯誤、行號、描述)記錄到 IIS 請求日志中以外,是否還將其寫入客戶端瀏覽器。默認(rèn)值為 True。
啟用父路徑 [enableParentPaths]:
指定 ASP 頁是否允許相對于當(dāng)前目錄的路徑(使用“...”表示法),即當(dāng)前目錄之上的路徑。默認(rèn)值為 False。

Tisp:
1.如果瀏覽器打開任何網(wǎng)站出現(xiàn)問題,可以把IE的【顯示友好http錯誤信息】不要打勾啟用來查看此網(wǎng)站的錯誤信息。

2.虛擬主機空間的用戶可以讓服務(wù)商來解決此問題。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if Google Chrome prompts that the content of this tab is being shared? What should I do if Google Chrome prompts that the content of this tab is being shared? Mar 13, 2024 pm 05:00 PM

What should I do if Google Chrome prompts that the content of this tab is being shared? When we use Google Chrome to open a new tab, we sometimes encounter a prompt that the content of this tab is being shared. So what is going on? Let this site provide users with a detailed introduction to the problem of Google Chrome prompting that the content of this tab is being shared. Google Chrome prompts that the content of this tab is being shared. Solution: 1. Open Google Chrome. You can see three dots in the upper right corner of the browser "Customize and control Google Chrome". Click the icon with the mouse to change the icon. 2. After clicking, the menu window of Google Chrome will pop up below, and the mouse will move to "More Tools"

Why NameResolutionError(self.host, self, e) from e and how to solve it Why NameResolutionError(self.host, self, e) from e and how to solve it Mar 01, 2024 pm 01:20 PM

The reason for the error is NameResolutionError(self.host,self,e)frome, which is an exception type in the urllib3 library. The reason for this error is that DNS resolution failed, that is, the host name or IP address attempted to be resolved cannot be found. This may be caused by the entered URL address being incorrect or the DNS server being temporarily unavailable. How to solve this error There may be several ways to solve this error: Check whether the entered URL address is correct and make sure it is accessible Make sure the DNS server is available, you can try using the "ping" command on the command line to test whether the DNS server is available Try accessing the website using the IP address instead of the hostname if behind a proxy

How to download foobar2000? -How to use foobar2000 How to download foobar2000? -How to use foobar2000 Mar 18, 2024 am 10:58 AM

foobar2000 is a software that can listen to music resources at any time. It brings you all kinds of music with lossless sound quality. The enhanced version of the music player allows you to get a more comprehensive and comfortable music experience. Its design concept is to play the advanced audio on the computer The device is transplanted to mobile phones to provide a more convenient and efficient music playback experience. The interface design is simple, clear and easy to use. It adopts a minimalist design style without too many decorations and cumbersome operations to get started quickly. It also supports a variety of skins and Theme, personalize settings according to your own preferences, and create an exclusive music player that supports the playback of multiple audio formats. It also supports the audio gain function to adjust the volume according to your own hearing conditions to avoid hearing damage caused by excessive volume. Next, let me help you

What software is crystaldiskmark? -How to use crystaldiskmark? What software is crystaldiskmark? -How to use crystaldiskmark? Mar 18, 2024 pm 02:58 PM

CrystalDiskMark is a small HDD benchmark tool for hard drives that quickly measures sequential and random read/write speeds. Next, let the editor introduce CrystalDiskMark to you and how to use crystaldiskmark~ 1. Introduction to CrystalDiskMark CrystalDiskMark is a widely used disk performance testing tool used to evaluate the read and write speed and performance of mechanical hard drives and solid-state drives (SSD). Random I/O performance. It is a free Windows application and provides a user-friendly interface and various test modes to evaluate different aspects of hard drive performance and is widely used in hardware reviews

BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? Apr 26, 2024 am 09:40 AM

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

How to use Baidu Netdisk app How to use Baidu Netdisk app Mar 27, 2024 pm 06:46 PM

Cloud storage has become an indispensable part of our daily life and work nowadays. As one of the leading cloud storage services in China, Baidu Netdisk has won the favor of a large number of users with its powerful storage functions, efficient transmission speed and convenient operation experience. And whether you want to back up important files, share information, watch videos online, or listen to music, Baidu Cloud Disk can meet your needs. However, many users may not understand the specific use method of Baidu Netdisk app, so this tutorial will introduce in detail how to use Baidu Netdisk app. Users who are still confused can follow this article to learn more. ! How to use Baidu Cloud Network Disk: 1. Installation First, when downloading and installing Baidu Cloud software, please select the custom installation option.

How to use NetEase Mailbox Master How to use NetEase Mailbox Master Mar 27, 2024 pm 05:32 PM

NetEase Mailbox, as an email address widely used by Chinese netizens, has always won the trust of users with its stable and efficient services. NetEase Mailbox Master is an email software specially created for mobile phone users. It greatly simplifies the process of sending and receiving emails and makes our email processing more convenient. So how to use NetEase Mailbox Master, and what specific functions it has. Below, the editor of this site will give you a detailed introduction, hoping to help you! First, you can search and download the NetEase Mailbox Master app in the mobile app store. Search for "NetEase Mailbox Master" in App Store or Baidu Mobile Assistant, and then follow the prompts to install it. After the download and installation is completed, we open the NetEase email account and log in. The login interface is as shown below

What is the difference between html and url What is the difference between html and url Mar 06, 2024 pm 03:06 PM

Differences: 1. Different definitions, url is a uniform resource locator, and html is a hypertext markup language; 2. There can be many urls in an html, but only one html page can exist in a url; 3. html refers to is a web page, and url refers to the website address.

See all articles