IIS故障解决---错误号:-2147467259
- 格式:doc
- 大小:836.00 KB
- 文档页数:4
iis运行错误解决方法本文讲述了在Windows 7下如何安装IIS7,以及IIS7在安装过程中的一些需要注意的设置,以及在IIS7下配置ASP的正确方法。
在Windows 7下面IIS7的安装方法:一、进入Windows 7的控制面板,选择左侧的打开或关闭Windows功能。
二、打开后可以看到Windows功能的界面,注意选择的项目,我们按需要选择想要的功能,下面这张图片把需要安装的服务都已经选择了,大家可以按照图片中的说明自行选择开启想要的功能。
没有说明的勾选项为必选项或默认安装项。
三、安装完成后,再次进入控制面板,选择管理工具,双击Internet(IIS)管理器选项,进入IIS设置。
四、现在进入到IIS7控制面板。
五、选择 Default Web Site,并双击 ASP 的选项,六、配置IIS7的站点。
选择计算机名(图中为CIBILL-PC)→网站→Default Web Site,双击 ASP ,对ASP模块进行如下配置:(本步骤非必要操作)1) 为了保证部分使用了父路径的ASP程序的正常运行,我们将启用父路径选项设置为True。
修改位置:行为→启用父路径→True说明:如果您的网站没有使用父路径,则本操作可省略。
2) 为了调试方便,我们还需要启用2个调试选项。
修改位置:调试→将错误发送到浏览器→True调试→启用服务器端调试→True调试→启用客户端调试→True说明:仅在开发调试过程中需要启用3、如果需要绑定域名或者修改网站所用端口,可点击右侧的“绑定...”进行设置。
4、网站物理路径默认是“C:\inetpub\wwwroot”,如需修改,请点击右侧的“高级设置...”进行配置。
5、接着,为网站物理路径设定IIS匿名用户的读写权限。
点击右侧的“编辑权限...”,为网站目录增加IIS_USERS用户组的读写权限。
(注:这是最关键的步骤,很多朋友安装后访问Access数据库出错就是因为忘了做这一步。
IIS常见错误代码IIS introductionWhen a user attempts to file transfer protocol (FTP) access via HTTP or a running Internet information services (IIS) of the content on the server, IIS the request returns a said the state of the digital code. The status code is logged in the IIS log and may also be displayed on the Web browser or FTP client. The status code can indicate whether the specific request has been successful and can also reveal the exact cause of the request failure.By default, IIS puts its log files in the Windows \ \ System32 \ \ Logfiles folder. Each WWW site and FTP site has a separate directory under that directory. By default, log files are created in these directories each day, and the log files are named (for example, exYYMMDD. Log).HTTP code1x-information tip: these state codes represent temporary responses. The client should be ready to receive one or more 1xx responses before receiving the regular response.100 -101-switching protocol2xx - success: this status code indicates that the server successfully accepts the client request.200 - determines the status code that indicates that IIS has successfully processed the request201 - has been created202 - accepted203-non-authoritative information204 - nothing205 - reset content206 - part of it3xx - redirect: the client browser must do more to implement the request. For example, the browser might have to request a different page on the server or repeat the request through the proxy server.300 - multiple options301 - has been removed forever302 - the object has been found and moved303 - see other terms304 - the document that does not modify the client request is in the client cache, and the document has not been modified since the cache. The client USES the cached copy of the documentwithout downloading the document from the server.305 - use the agent306 - this code has been retained but not used307 - temporary redirects4xx - client error: error occurred, client problem. For example, the client request does not exist and the guest does not provide valid authentication information.400-error request401 - access is rejectedIIS defines a number of different 401 errors that specify more specific error reasons. These specific error codes are displayed in the browser, but not in the IIS log:401.1-login failed login attempts, possibly because the user name or password is invalid.The 401.2-server configuration failed to login3, 401.3 - there is an NTFS permission problem because of the limitation of the ACL to the resource. This error may occur even if you have the appropriate permissions for the file you are trying to access. To solve this problem, see the corresponding article in the Microsoft knowledge base: 187506 List of NTFS Permissions Required for IIS Site to Work (the List of NTFSPermissions Required for the IIS Site Work)401.4 - filter authorization failedThe 401.5-isapi/CGI application authorization failed401.7 - access is rejected by the URL authorization policy on the Web server403 - no accessIIS defines a number of different 403 errors, which specify more specific error reasons, see 403.x code404 - not foundThe reason for this error is that the file you are trying to access has been removed or removed. This error occurs when the URLScan tool is installed to try to access files with a limited extension. In this case, the name "Rejected by URLScan" appears in the log file item of the request.404.0 - no files or directories are found404.1 - you can't access the Web site on the requested portThe 404.2-web service extension locking policy prevents this request4, 404.The 3-mime mapping policy prevents this request405 - the HTTP predicate that is used for accessing this page is not allowed (the method is not allowed)406 - the client browser does not accept the MIME type of the requested page407 - requires agent authentication412-premise failure413 - the request entity is too large414 - the request URI is too long415-unsupported media types416 - the scope of the request cannot be satisfied417 - execution failure423 - lock error5xx - server error: the server cannot complete the request because of error500-internal server errorMany server-side errors can lead to this error message. The event viewer log contains more detailed errors. In addition,you can disable the friendly HTTP error message to receive detailed error instructions. Other information about how to disable the HTTP friendly error message, check in the Microsoft knowledge base article: 294807 how to disable Internet Explorer 5 at the server end "show friendly HTTP error message" function500.12 - the application is busy restarting on the Web serverThis means that you are trying to load the ASP page while IIS restarts the application. Once the page is refreshed, this information disappears. Once the page is refreshed, the message appears again, possibly with anti-virus software scanning global.asa. For additional information, see the corresponding article in the Microsoft knowledge base: 248013 HTTP Error 500-12 Application Restarting (HTTP Error 500-12 applications are being restarted)The 500.13-web server is too busy500.15 - no direct request for Global. AsaThe 500.16-unc authorization credentials are incorrect (IIS6.0 proprietary)500.18-url authorization storage cannot be opened (IIS6.0 proprietary)500.100 - internal ASP errorThis error message will occur if you try to load the ASP page with error code. For more accurate error information, disablethe friendly HTTP error message. By default, this error message is only enabled on the default Web site. How about in the default Web site to see the error information of the other information please check phase should be in the Microsoft knowledge base article: 261200 shows the HTTP 500 error message and not the 500-500. The asp asp error information.The author thinks that there is a problem of directory permissions or no parent path.The 501-header value specifies the unimplemented configuration502 - the Web server received an invalid response (gateway error) as a gateway or proxy serverThis error message will occur if the CGI script that is trying to run does not return a valid HTTP header set.502.1 - CGI application timeout502.2-cgi application error503 - service unavailable (IIS6.0)504-gateway timeoutThe 505-http version is not supportedFTP code1 xx - certainly the preliminary answer: these status codeindicates an operation has been successful, but the client hope to continue to operate a new command before receive another answer.110 restart the tag replyThe service is ready to start after NNN minutes125 data connection is open and transmission is starting150 file status is normal, ready to open the data connectionFTP USES two ports: 21 to send commands and 20 to send data. The status code 150 indicates that the server is ready to open a new connection on port 20 and send some data.2xx - positive reply: an operation has been successfully completed. The client can execute the new command.200 command setNo command is executed. There are too many orders on the site211 system status, or system help reply212 directory213 file status214 help messageThe 215 NAME system type, in which NAME is the official system NAME listed in the Assigned Numbers document220 service ready,New user requests can be executed221 service closes the control connection. If appropriate, please log out225 data connection open, no transmission in progressClose the data connection. The requested file operation has been successful (for example, transferring files or dropping files)The command opens the data connection on port 20 to perform the operation, such as the transfer file. The operation completes successfully and the data connection is closed.227 enter the passive mode (h1, h2, h3, h4, p1, p2)230 users are logged in and continueAfter the client sends the correct password, the status code is displayed. It indicates that the user has logged in successfully.The requested file operation is correct and completedThe "PATHNAME" has been created.3xx - positive reply: the command has been successful, but the server needs more information from the client to complete the processing of the request.331 user name is correct, need passwordAfter the client sends the user name, the status code is displayed. The status code will be displayed regardless of whether the supplied user name is a valid account in the system.332 requires a login accountThe file operation of the 350 request is waiting for further information4xx - transient negative reply: this command is not successful, but the error is temporary. If the client retries the order, it may execute successfully.421 service unavailable, closing control connection425 cannot open data connection426 the Connection closed; Transfer abortedThe command opens the data connection to perform the operation, but the operation has been canceled and the data connection is closed.File operation of 450 unexecuted requests. File unavailable(for example, busy file)451 requested operation exception termination: local error is being processedThe operation of the request is not performed. The system storage space is not enough5xx - the complete answer to the negative: the order is not successful and the error is permanent. The same error will occur again if the client retries the command.500 syntax error, command is not recognized. This may include errors such as the command line too long501 has syntax errors in the parameters502 did not execute the command503 wrong sequence of commands504 no command to execute the parameter530 not logged inThe status code indicates that the user cannot log in because the user name and password combination are invalid. If you log in with a user account, you may enter the wrong user name or password, or you may choose to only allow anonymous access. If an anonymous account is used, the IIS configuration may reject anonymous access.532 storage files need accountsThe operation of 550 does not perform the request. File unavailable (for example, no file, no access)The command is not executed because the specified file is not available. For example, the file that you want to GET doesn't exist, or you try to PUT the file into a directory where you don't have access to it.The operation of the request is aborted: the unknown page typeFile operation exception termination for 552 requests: beyond the storage allocation (for the current directory or data set)The operation of 553 not performing the request. File names that are not allowed。
IIS服务器出错的原因是复杂的。
象服务启动失败、IIS进程中断或者站点不能启动这些错误都会在系统日志中记录一个错误事件。
不论IIS出现何种错误,在确定排错方案之前,都应先使用事件查看器查阅系统日志所记录的相关事件。
某些错误显然是由服务器硬件的损坏而造成的,而另一些由于软件原因造成的错误往往不易察觉。
本节就一般性的IIS排错提供指导性的介绍。
重新启动IIS按照微软产品的一般性排错方法和故障解决方案,大多数软件问题可以通过重新启动到方法得以解决。
作为IIS5.0的新功能之一,我们可以在不重新启动计算机的情况下重启IIS 服务,甚至相当严重的问题都可以采用这种方法解决。
重新启动IIS服务可以强迫系统重置IIS进程的内存空间,故由于内存错误引起的问题可以得到解决。
重启IIS的方法主要用于下列情况:网站应用程序瘫痪、且不能有效加以控制;网站应用程序工作不正常或者不稳定。
[/TD] [/TR][/TABLE]重新启动IIS服务的过程中,全部当前连接都不能保留,且重启期间服务器上的全部站点都不能工作。
如果重启IIS服务不能解决问题,则重启服务器亦不会有效。
当站点应用程序不能正常工作时,按照下述步骤重新启动服务器的IIS服务:1.在IIS管理控制树中展开IIS节点,选择需要重新启动IIS服务的计算机。
2.单击【操作】菜单,选择【重新启动IIS】。
3.在【停止/启动/重新启动】对话框中的【您向要IIS做什么】下拉列表中选择【重新启动服务器的IIS】,单击【确定】。
4.正在关闭】对话框显示重新启动IIS的进度,如果对话框长时间没有反应,单击【现在结束】并重新进行上述操作。
注意:不能使用基于HTML的IIS管理器(远程管理模式)进行上述重启操作。
对于单个站点的稳定性问题,不必重新启动整个IIS进程,只要重启站点即可。
IIS排错备份/还原IIS如果世界上存在一个万无一失的服务器安全规划方案,那就是备份。
曾经有人指出:一个优秀的系统管理员所做的最重要的三项工作就是:备份、备份、备份。
IIS状态代码:IIS详细错误代码以及解释WEB服务器-电脑资料概要当用户试图通过 HTTP 或文件传输协议(FTP)访问一台正在运行 Internet 信息服务(IIS)的服务器上的内容时,IIS 返回一个表示该请求的状态的数字代码,。
该状态代码记录在 IIS 日志中,同时也可能在Web 浏览器或FTP 客户端显示。
状态代码可以指明具体请求是否已成功,还可以揭示请求失败的确切原因。
回到顶端更多信息日志文件的位置在默认状态下,IIS 把它的日志文件放在%WINDIRSystem32Logfiles 文件夹中。
每个万维网(WWW)站点和FTP 站点在该目录下都有一个单独的目录。
在默认状态下,每天都会在这些目录下创建日志文件,并用日期给日志文件命名(例如,exYYMMDD.log)。
HTTP1xx - 信息提示这些状态代码表示临时的响应。
客户端在收到常规响应之前,应准备接收一个或多个 1xx 响应。
· 100 - 继续。
· 101 - 切换协议。
2xx - 成功这类状态代码表明服务器成功地接受了客户端请求。
· 200 - 确定。
客户端请求已成功。
· 201 - 已创建。
· 202 - 已接受。
· 203 - 非权威性信息。
· 204 - 无内容。
· 205 - 重置内容。
· 206 - 部分内容。
3xx - 重定向客户端浏览器必须采取更多操作来实现请求。
例如,浏览器可能不得不请求服务器上的不同的页面,或通过代理服务器重复该请求。
· 302 - 对象已移动。
· 304 - 未修改。
· 307 - 临时重定向。
4xx - 客户端错误发生错误,客户端似乎有问题。
例如,客户端请求不存在的页面,客户端未提供有效的身份验证信息。
· 400 - 错误的请求。
· 401 - 访问被拒绝。
W S2003使用IIS服务配置WEB站点目前网络的快速发展,带动着网站的不断普遍,那么我们来了解一下WEB站点的配置过程!首先先来了解WWW服务,即万维网服务,在网上发布的,并可以通过浏览器观看的图形化页面的服务。
常用的WWW服务软件:在Windows系统中是IIS,在Linux系统中是Apache,但不要认为MS的IIS只能用于创建WEB站点,那就大错特错了,它同样还能支持FTP服务,邮件服务,以及新闻组等:1.在系统上安装IIS服务:选择"应用程序服务器":选择"IIS":默认就选择上了"万维网服务",即WEB站点:完成安装:打开IIS服务:可以看到刚创建好的IIS就有个默认站点:查看默认站点的目录路径:2.配置默认站点:IP地址这里需要注意,因为有可能本地有两块网卡,会有两个不同的IP,那么客户访问时输入哪个IP呢?或只有一个网卡,但设置了两个IP都有可能出现此类问题.如果选择"全部未分配",代表客户输入哪个IP都能访问,但在实际当中还是最好指定一个IP 来访问比较好!默认TCP端口是80,一般的WEB站点都保留此值,这样用户使用浏览器输入"http://IP地址"就可以访问WEB站点.如果为了安全保密,修改TCP端口,如修改成"81",则访问WEB站点时需要输入"http://IP地址:81",如果不具体指定TCP端口,则不能正确访问WEB站点.主目录中可以设置WEB站点目录的存放路径,以下是默认站点目录的路径:文档用于设置网站的首页,以下的多个网页的优先显示的顺序是从上到下.3.配置虚拟目录物理目录:实际存放在主目录的子文件夹虚拟目录:能将一个网站的文件分散存储在同一计算机的不同路径和其他计算机中使用虚拟目录的优点:将数据分散保存到不同的磁盘或者计算机上,便于分别开发与维护当数据移动到其他物理位置时,不会影响到Web网站的逻辑结构在默认网站上创建"虚拟目录":创建虚拟名称:指定虚拟路径:打开虚拟目录属性:配置后虚拟目录属性后访问虚拟目录:在浏览器地址栏输入“http://IP/地址/虚拟目录名”通过在网页中的链接访问Web网站4.配置虚拟主机为了提高硬件资源的利用率,可以在一台计算机上运行多个网站,而不需要另加什么硬件,这些网站称为虚拟主机,而实现虚拟主机一般有3种方式:a)使用不同的IP地址b)使用相同的IP地址、不同的TCP端口c)使用相同的IP地址和TCP端口、不同的主机头1)不同IP地址的网站例如:服务器上有2个IP地址192.168.1.2和192.168.1.3,默认网站站用192.168.1.2,现在需要新建一个网站,IP地址为192.168.1.3.创建另一个新的WEB站点:为第二个网站指定1.3的IP地址:指定站点目录路径:创建完毕:2)不同TCP端口的网站如果2个网站,IP地址和TCP端口都相同(主机头值为空),则这2个网站不能同时启动:修改第二个网站的TCP端口:网站地址为“http://IP地址:TCP端口号”:3)配置主机头相同IP相同TCP端口能运行多个网站吗?可以使用不同的主机头运行多个网站(主机头形式为FQDN)注意:主机头需要DNS解析创建第二个网站的IP和第一个IP相同,然后再选择"高级":单击"编辑":为两个站点分别配置不同主机头,客户端分别输入不同的名称访问不同的WEB站点:巧妙设置解决IIS服务器访问难题(图)1、解惑子页面无法访问难题当我们使用IIS6.0服务器架设好了目标网站,并尝试使用IE浏览器来访问目标网站的主页面时,可能会发现该网站主页面内容可以被正常访问到,但我们在尝试访问该网站子页面内容时,IE浏览器却出现了无法访问的提示,这究竟是什么回事呢?其实这种访问错误提示是IIS6.0服务器所特有的,我们只要按照如下步骤设置一下IIS服务器就能轻松排除该访问难题:进入到本地服务器系统的IIS服务器控制台界面。
IIS应用程序池由服务器引起常见错误号的原因分析及解决方法错误号:432错误描述:File name or class name not found during Automation operation错误来源:PE_Common6原因分析:服务器没有升级脚本引擎。
解决方法:升级服务器的IE 到6.0 以上版本,如果还不行,单独安装脚本解释引擎。
正在生成网站首页(/Index.htm )……错误号:-2147319779错误描述:Automation error Library not registered.错误来源:PE_Common原因分析:服务器的IE 版本过低。
解决方法:升级服务器的IE 到6.0 以上版本,如果还不行,单独安装脚本解释引擎。
错误号:-2147319779错误描述:Automation error Library not registered.错误来源:PE_CMS6原因分析:错误定义的应用程序或对象错误,可能是服务器的脚本解释引擎版本过低引起。
解决方法:安装脚本解释引擎。
数据采集错误错误号:7错误描述:Out of memory错误来源:PE_Common原因分析:PE_Common ,Out of memory ,内存溢出,这十分不好说,范围很广。
有可能:1 、采集的文章有日文片假名。
2 、内存不足。
也有可能一点,你的采集历史记录非常非常的庞大,因为采集是第一次全部读入内存减小对数据库频繁的检索量,历史记录和采集项目的资料太多了,内存不足解决方法:这和个人计算机有关,如果条件允许换个服务器看看,故障发生在内存。
在本地调试:增加一个频道后,就出现了这个错误错误号:-2147467259错误描述:不可识别的数据库格式'C:\Inetpub\wwwroot\PowerEasy\database\ ××.asp' 。
错误来源:Microsoft JET Database Engine原因分析:数据库损坏了。
Asp连接access数据库时,报未知错误及错误码-2147467259的解决方案Asp连接access数据库时,报未知错误及错误码-2147467259的解决方案ASP程序连接access数据库的代码如下:<%set conn=server.createobject("adodb.connection")'连接数据库的方法1:使用oledbstr="provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("学习.mdb")conn.open str%>结果在服务器上运行该程序时提示如下错误:err.Number显示的是-2147467259,err.Description显示的是“未知错误”迷惑了很久,当时在课堂上一直找不到原因。
之前运行其他ASP程序都是好好的,一遇到数据库就出错了。
很尴尬,跟学生解释说服务器出了点小问题,随后我解决了再告诉大家。
硬着头皮接着讲课,其实很心虚。
一下课,猛蹬着自行车回到家中,立马上网搜索答案。
找了很久,决定下次上课试试这些方法行不行。
下次上课我提早到教室。
心说这次解决不了那以后就回机房上课好了。
结果一次就成功了!欢呼!解决方案:为”C:\Windows\Temp“目录添加用户Authenticated Users,为该用户开放所有权限。
(1)WindowsXP、Windows 2003用户请在“C:\Windows\Temp”目录添加一个有权限的“Authenticated Users”用户即可!Vista用户请在“C:\Windows\ServiceProfiles\NetworkService\AppData\Loc al\Temp”目录添加一个有权限的“Authenticated Users”用户即可!具体设置权限步骤:右击Temp文件夹,选择“属性”->“安全”->“编辑”->“添加”,在下面的“输入对象名称来选择”中输入Authenticated Users,确定-> 返回到“Temp 的权限”,将Authenticated Users的权限中的完全控制给勾上。
浅析IIS启动失败原因及解决方案今天刚看到一个网友的求助,新安装了2022 就为了做WEB调试,结果IIS老是出现问题启动不了,错误代码如下,想知道为何会出现这一情况,该如何解决呢?为此,我想到前一阵子自己也遇到相同的问题,并得到圆满的解决,为此,把出现的问题的详细情况与解决方案,转上来与大家一同分享下.查看了日志,出错表现为以下几点:1、World Wide Web Publishing 服务在请求配置数据库更改通知时遇到问题。
数据域包含错误号。
2、初始化World Wide Web Publishing 服务的配置管理器时出错。
数据字段包含错误号。
3、由于错误,World Wide Web Publishing 服务正在退出。
数据字段包含错误号。
最后出现World Wide Web Publishing Service 服务因2147500034 (0x80004002) 服务性错误而停止。
重装WINDOWS2022+SP1后启动IIS的时候出现提示不支持此接口问题.找了很多地方都没找到相关的说明,最后终于发现以下解决方法:解决方法如下: 需要注册一大批的DLL:C:\WINNT\system32\shell32.dllC:\WINNT\system32\Browseui.dllC:\WINNT\system32\mshtml.dllC:\WINNT\system32\oleaut32.dllC:\WINNT\system32\ole32.dllC:\WINNT\system32\actxprxy.dllC:\WINNT\system32\urlmon.dllC:\WINNT\system32\shdocvw.dll注册组件的方法例如regsvr32 shell32.dll注册以后在DOS下IISRESET重新启动IIS,就成功了。
如果你在以后的工作中也遭遇相同的问题,都可以笔类此问题的解决方案,相信你也能很圆满的解决你的问题.当然,还欢迎你有更好的解决问题的方案,来本网站告诉大家.。
IIS无故自动关闭停止已经不是罕见的事情了,处理这个问题是让我很头痛的事情,遇到这个问题不太可能一次性解决,多数都是用排除法一个个测试排除错误,最终找到那个错误命令。
最近我的服务器遇到了这个问题,我很无奈,我很急,客户也很着急,每天IIS都要自动停止2次以上,我总是怀疑是进程池问题,此文章是针对IIS进程池解决办法,如果你遇到了死循环代码,或者其他非进程池,那此文章不太适合你了网络上有关iis的问题和相关解决方案,多不胜搜,但很多都比较零散,没有系统的解决方案;另外,有些解决方法,似是而非,不能找到其中的问题关键点,本人平时对于服务器的应用上也有点实践,因此,今天稍稍总结一点平时遇到地问题和解决方法,特别是对iis的特殊权限引起问题、iis应用程序池假死问题和比较罕见的iis重启命令和自动重启办法。
其它相关问题,继续关注本博。
一、2003应用程序池自动死了,不能恢复了,一直出现 Service Unavailable 常见方法如下。
1:没有打SP1补丁的时候会出现这个IIS6.0假死问题,但现在微软都在自动更新里面出补丁了,一般你打好最新补丁后是不会出现此问题了。
(所以现在的IIS假死与这个关系不是很大)2:从 IIS6.0开始CPU资源都在应用池里面限制了,不象以前的IIS.5。
所以假死的池的缘故就是池被拉死,你在网站打不开的时候可以看到你的某个应用池是禁用的,上面出现一个红叉。
你鼠标右键启动网站又会自动恢复。
这个原因:大概是以下几个因数造成的。
(1):你限制了应用池的资源,限制得太小比如:50这样或更少更多一点,这个时候如果你这个池下面的网站占用CPU太高,比如超过50% 那么5分钟后他就自动死了,手工默认建立的应用池默认是超过资源不操作。
出现上面这个情况解决方法:1:不限制CPU资源,(这个是不可取的,不限制资源,有的程序有BUG占用资源厉害了的,服务器都会被拉死,你可能都无法操作服务器。