iis7.5应用程序池模板永久性缓存初始化失败解决方法
iis 错误解决办法

IIS服务器出现错误的原因很多,请尝试以下操作:1、查看网站属性——文档看看启用默认文档中是否存在:index.asp index.htm index.html (最好全都有,没有可添加)2、查看网站属性——主目录A、本地路径是否指定正确B、是否勾选‚脚本资源访问‛?C、是否勾选‚读取‛?D、执行权限:纯脚本3、查看网站属性——目录安全性——编辑A、是否勾选‚匿名访问‛?B、用户名:IUSR_您的计算机名(不对,就点浏览选择)C、密码不用改,勾选‚允许IIS控制密码‛就可以了D、其它不用选4、查看网站属性——网站A、IP地址:全部未分配或者选择一个B、TCP端口:80 (最好不要改,改了访问方法就不一,特别提醒:有些软件会占用80端口,端口被占就启动不了IIS,例如:讯雷)5、打开控制面板——管理工具——计算机管理——本地用户和组——用户A、看看‚IUSR_您的计算机名‛此用户有没有启动,必须启动(说明:有红色的×表示没有启动)B、看看‚IWAM_您的计算机名‛此用户有没有启动,必须启动(说明:有红色的×表示没有启动)C、在‚IWAM_您的计算机名‛该用户上按右键——设置密码(密码要记住,后面还需要用上该密码)6、打开控制面板——管理工具——组件服务——组件服务——计算机——我的电脑——COM+应用程序A、在‚IIS Out-Of-Process Pooled Applications‛上按右键选择‘属性’——选择‘标识’,指定用户:IWAM_您计算机名(说明:可以点浏览查找);输入密码,密码上面步骤的密码。
再次启动该服务,启动后它会动。
B、在‚IIS In-Process Applications‛上按右键选择‘属性’——选择‘安全性’,将‘启用身份验证’勾去掉C、在‚IIS Utilities‛上按右键选择‘属性’——选择‘安全性’,将‘启用身份验证’勾去掉。
特别提醒:有些朋友的组件无法启动,可能是您优化了XP服务,也可能是病毒导致,也可能是组件出差……这些就只能靠您处理了7、请检查‚控制面板——管理工具——数据源 (ODBC)‛,看看系统DSN 有没有Access数据库驱动,如果是空白的话,请添加一个。
应用程序初始化失败问题(Applicationinitializationfailed)

应用程序初始化失败问题(Application initialization failed)The application failed to initialize _~ ~!Application initialization failed (oxc0000005) reasons and Solutions1, Microsoft IE buffer overflow vulnerability caused2, memory or virtual memory address conflict program needs to be allocated to address certain procedures to use, when new procedures for the use of space to release at the end of the program, win is a multi tasking system before the program does not end sometimesThere is a new task to how much memory or virtual memory to ensure that we run at the same time the task? Perhaps win on this issue is not ready, so the errors often occur, the general operation of the large-scale software or multimedia3, poor memory will appear this problem in general, memory problems are not likely, the main aspect is: bad memory, memory quality problems, there are 2 different brands of different memory mixed interpolation, are more prone to incompatible situation, but also pay attention to the heat problem, especially after overclocking. You can use the MemTest software to check memory, which can thoroughly detect the stability of memory. If you are dual memory, and the memory of different brands, mixed in, or bought a secondary memory, this problem occurs, then you have to check whether the memory problems, or incompatible with other hardware.4, Microsoft WINDOWS system vulnerabilities, windows memory address 0X00000000 to 0X0000ffff designated as assigned null pointer address range, if the program attempts to access this address, is considered to be wrong. Programs written by c/c++ usually do not undergo rigorous error checking and return null pointers when malloc is used to allocate memory and the assigned address space is insufficient. However, the code does not check this error, considers that the address assignment has been successful, so it accesses the address of the 0X00000000, so memory violation access occurs, and the process is terminated. The following ASCII character fill consisting of PIF file: an illegal PIF file (filled with a ASCII character \''x\'') at least 369 bytes, the system was considered to be a valid PIF file, 0] will display to the PIF icon, [pifmgr.dll, will have a program, font, memory, screen etc. the contents in the attributes. And when a non PIF file is 369 bytes in size, the program's error is not detected even if it is 370 bytes. When a PIF file is larger than 369 bytes for illegal property "program" page, Explorer will go wrong, that \''***\''Command Reference \''***\'' memory. This memory cannot be \''read\''The problem is in the 16 hexadecimal address of the PIF file: 0x00000181[0x87]0x00000182[0x01] and0x00000231[0xC3]0x00000232[0x02] even if it's a legitimate PIF file, it can cause program errors whenever you change any of these places. As long as the value of 0x00000181 and 0x00000182 is changed to [0xFF][0xFF], any change of other addresses will not cause errors.5, there may not be a Apache service is installed correctly,and started its service in the cause; OracleOraHomeXXHTTPServer to stop6, the application does not check the memory allocation failure procedure requires a memory to save the data, you need to call the operating system to provide a "function" to apply, if successful memory allocation, memory area function will be the new return to the application, the application can use this memory via this address. This is the "dynamic memory allocation", the memory address, that is, "pointer" in programming". Memory is not always available, endless, and sometimes memory allocation will fail.When the allocation fails, the system function returns a 0 value, when the return value "0" does not represent the newly enabled pointer, but rather a notification issued by the system to the application informing the error. As an application, in the memory after each application should check whether the return value is 0, if it is, it means that there is a fault, some measures should be taken to save, which enhances the robustness of the program "". If the application does not check the error, it will continue to use this memory in subsequent operations, in accordance with the thinking inertia that the value is the pointer that is allocated to it. The real 0 address memory area holds the most important "interrupt descriptor table" in the computer system and absolutely does not allow the application to use. In the operating system without protection mechanism under (such as DOS), write data to this address will lead to crash immediately, and in the robust operating system, such as Windows, this operation will be immediately captured the protection mechanism of the system, the result is forciblyclosed by the operating system application error, in order to prevent the error expansion. At this point, the above "write memory" error occurs and indicates that the referenced memory address is "0x00000000"". Memory allocation failure, many reasons, memory is insufficient, the version of the system function mismatch, and so may have an impact. Therefore, the distribution of failure in the operating system to use for a long time, the installation of a variety of applications (including accidentally "Install" virus program), after the change of system parameters and system of a large number of documents.7, the application due to its unusual BUG quoted the memory pointer in the application using dynamic allocation, sometimes there will be such a situation: the program attempts to write a "should be available" in memory, but I do not know why, it is expected that can be a pointer has been a failure. There may be "forget" to the operating system requirements distribution, or it may be the program itself at some point has canceled the memory, and "no attention" and so on. Off the system memory to be recycled, the access does not belong to the application, read and write operations can also trigger a mechanism to protect the system, trying to "end" illegal procedures only termination of the operation is to be run, all resource recovery. The laws of the computer world are still much more effective and harsher than human beings! A situation like this belongs to the BUG of the program itself, and you can often reproduce errors in a particular order of operations. The invalid pointer is not always 0, so the memory address in the error is not necessarily "0x00000000", but rather the other random numbers.If the system often mentions errors, the following suggestions might help:1. check whether there is a Trojan horse or virus in the system. In order to control the system, such programs often change the system without responsibility, resulting in abnormal operating systems. Generally, we should strengthen the awareness of information security and not be curious about the executable programs of unknown sources.2. update the operating system so that the operating system's installer re copies the correct version of the system file and changes the system parameters. Sometimes, the operating system itself will have BUG, pay attention to install the official release of the upgrade program.3. try out a new version of the application.4, delete, and then recreate the WINDOWS\Wbem\RepositoryFile in the folder: right click on my computer on the desktop, and then click manage. Under services and applications, click service, then close and stop Windows ManagementInstrumentation service. DeleteWINDOWS\System32\Wbem\RepositoryAll files in the folder. (create a backup copy of these files before deleting.) Open the service and application, click service, and then open and start Windows ManagementInstrumentation service. When the service restarts, these files are recreated based on the information provided in the following registry key:hkey_local_machine \软件\微软\ \ \”MOFs CIMOM WBEM下面我从几个例子给大家分析:例一:打开IE浏览器或者没过几分钟就会出现”0x70dcf39f”指令引用的”0x00000000”内存。
IIS应用程序池出错解决方法

2011-05-20 23:46 108人阅读评论(0) 收藏举报" 为应用程序池'AppPool #1' 提供服务的进程关闭时间超过了限制" 的错误出现究其原因是由于网站的访问量连接数过大,引起应用程序池处理连接的时候,新的还没有接替,而旧的又要回收,但在回收的过程中不及时,照常应用程序池当机,网站无法访问,出现了这个错误。
当网站无法访问的时候,手动回收应用程序池,即可恢复,不过手动恢复的话,毕竟很麻烦,你不能一天都盯着这个网站看吧?问题出在应用程序池的话,那我们就从应用程序池的配置下手来看是否能解决问题。
1、首先建议每个网站分别建立一个应用程序池,一个应用程序池将对应不同的w3wp.exe 进程,在“命令提示符”下使用iisapp命令可以察看网站对应的w3wp.exe的pid值,方便查找出问题的进程。
2、应用程序池的配置个人意见觉得在应用程序池的属性窗口中,“回收”和“运行状况”2个选项卡的配置比较重要。
2.1、回收选项卡1、回收工作进程(分钟):在工作进程运行多少分钟后回收工作进程,默认启用,并且设置为1740分钟(29小时);2、回收工作进程(请求数目):在工作进程处理多少个HTTP请求后终止此工作进程,默认禁用,如果启用则默认值为35000;3、在下列时间回收工作进程:在指定的时间回收工作进程,默认禁用;如需启用,勾选后点击添加按钮添加回收的时间即可,使用24小时制定义回收的时间;4、消耗太多内存时回收工作进程:最大虚拟内存(兆):当工作进程使用的虚拟内存达到设置的值时回收工作进程,默认禁用,如果启用则默认值为500 M;建议设置为不超过虚拟内存总数的70%;最大使用的内存(兆):当工作进程使用的物理内存达到设置的值时回收工作进程,默认禁用,如果启用则默认值为192 M;建议设置为不超过物理内存总数的60%;2.2、性能1、在空闲此段时间后关闭工作进程(分钟):当工作进程空闲多少分钟后关闭此工作进程,这降低了空闲工作进程对系统资源和CPU性能的消耗,默认启用并且设置为20分钟;2、核心请求队列限制为(请求次数):当HTTP.sys接收到某个客户端发送的HTTP 请求时,如果处理此请求的对应应用程序池的工作进程还处于忙状态,则HTTP.sys将接收到的请求保存在对应应用程序池的请求队列中,直到工作进程空闲为止。
ApplicationInitialization For IIS 7.5

解决iis重启后,首次访问系统很慢的问题此方法仅适用iis7.5处理步骤如下:1.下载ApplicationInitialization。
2.安装完成后,设置IIS。
A.找到C:\Windows\System32\inetsrv\config\,打开applicationHost在文件中找<applicationPools>节,找到应用程序池名称.NET v4.5,将automode属性去掉,改成startMode="AlwaysRunning",如下所示:<add name=".NET v4.5"startMode="AlwaysRunning" managedRuntimeVersion="v4.0"/>在文件中找到<sites> ,网站名称EPC,应用名称为appinit,增加属性preloadEnabled="true",如下所示:<site name="EPC" id="2" serverAutoStart="true"><applicationpath="/appinit"preloadEnabled="true"applicationPool=".NET v4.5">B.设置应用的webconfig,在<system.webserver>中增加下面的内容:<applicationInitialization remapManagedRequestsTo="userlogin2.aspx" skipManagedModules="true" ><add initializationPage="/userlogin2.aspx" /></applicationInitialization>注意:上述设置只针对单个应用。
应用程序初始化失败问题

解决方法:先查杀一下病毒,另外如果你安装了浏览增强之类的软件,请卸掉。
例八:从桌面或开始菜单中打开任何一个程序,
出现错误提示:"0x........"指令引用的"0x00000000"内存,该内存不能为"read"。省略号代表可变值。而从运行中打开程序没问题。
解决方法:试试重装豪杰超级解霸,如果重装后还会,到官方网站下载相应版本的补丁试试。还不行,只好换就用别的播放器试试了。
例五:双击一个游戏的快捷方式,“0x77f5cd0”指令引用“0xffffffff”内存,该内存不能为“read”
,并且提示Client.dat程序错误。
解决方法:这是对方利用QQ的BUG,发送特殊的代码,做QQ出错,只要打上补丁或升级到最新版本,就没事了。
例七:我的笔记本电脑用的XP系统,有时关闭网页时会弹出tbrowser.exe遇到问题需要关闭,然后有弹出0x03e7c738指令引用的0x03e7c738内存,该内存不能为read,请问是怎么回事?
98里运行却正常。
解决方法:这可能是系统的兼容性问题,winXP的系统,右键“AutoRun.exe”文件,属性,兼容性,把“用兼容模式运行这个程序”项选择上,并选择“Windows
98/Me”。win2000如果打了SP的补丁后,只要开始,运行,输入:regsvr32
5、可能没有完全正确安装apache服务,且启动了它的原故; 把服务中OracleOraHomeXXHTTPServer改成停 止
6、应用程序没有检查内存分配失败程序需要一块内存用以保存数据时,就需要调用操作系统提供的“功能函数”来申请,如果内存分配成功,函数就会将所新开辟的内存区地址返回给应用程序,应用程序就可以通过这个地址使用这块内存。这就是“动态内存分配”,内存地址也就是编程中的“指针”。内存不是永远都招之即来、用之不尽的,有时候内存分配也会失败。当分配失败时系统函数会返回一个0值,这时返回值“0”已不表示新启用的指针,而是系统向应用程序发出的一个通知,告知出现了错误。作为应用程序,在每一次申请内存后都应该检查返回值是否为0,如果是,则意味着出现了故障,应该采取一些措施挽救,这就增强了程序的“健壮性”。若应用程序没有检查这个错误,它就会按照“思维惯性”认为这个值是给它分配的可用指针,继续在之后的运行中使用这块内存。真正的0地址内存区保存的是计算机系统中最重要的“中断描述符表”,绝对不允许应用程序使用。在没有保护机制的操作系统下(如DOS),写数据到这个地址会导致立即死机,而在健壮的操作系统中,如Windows等,这个操作会马上被系统的保护机制捕获,其结果就是由操作系统强行关闭出错的应用程序,以防止其错误扩大。这时候,就会出现上述的“写内存”错误,并指出被引用的内存地址为“0x00000000”。内存分配失败故障的原因很多,内存不够、系统函数的版本不匹配等都可能有影响。因此,这种分配失败多见于操作系统使用很长时间后,安装了多种应用程序(包括无意中“安装”的病毒程序),更改了大量的系统参数和系统文件之后。
初始化失败解决方法

初始化失败解决方法
初始化失败通常是指在启动或安装某个软件或系统时遇到的问题。
解决这个问题需要根据具体情况采取不同的方法。
以下是一些可能的解决方法:
1. 重新启动设备,有时候设备的内存或者其他资源可能出现问题,导致初始化失败。
通过重新启动设备可以清除临时数据,从而解决问题。
2. 检查网络连接,如果初始化涉及到网络连接,比如在安装软件或系统更新时,需要确保网络连接稳定并且没有被防火墙或者代理服务器阻挡。
3. 检查系统要求,确保你的设备满足软件或系统的最低要求,比如操作系统版本、内存、存储空间等。
4. 更新软件或系统,有时候初始化失败是因为软件或系统本身的bug或问题,更新到最新版本可能会修复这些问题。
5. 清除缓存,有时候设备上的缓存文件可能导致初始化失败,
清除缓存可能有助于解决问题。
6. 重装软件或系统,如果以上方法都无法解决问题,可以尝试重新安装软件或系统,确保安装过程中没有出现错误。
7. 寻求专业帮助,如果以上方法都无效,可以考虑联系软件或系统的技术支持团队,寻求他们的帮助。
总之,解决初始化失败的问题需要根据具体情况采取不同的方法,有时候可能需要多种方法结合才能解决问题。
希望以上方法对你有所帮助。
IIS7.5报错及解决办法

一、500报错,只出现在64位系统中。
解决方法,启用应用程序池32位兼容模式。
二、401.1报错,开启服务的本地安全策略。
位置:控制面板-管理工具-本地安全策略-本地策略-用户权利指派,拒绝从网络访问此计算机,删除里面的用户。
三、应用程序不可用,解决方法将虚拟目录所在的应用程序池的管道设置为经典。
四、403.14报错,解决方法:添加对应的默认文档
五、404.2报错,开启对应的ISAPI和GCI控制。
六、404.3报错,添加对应的脚本映射。
第1个框写*.gspx
第2个框选择C:\WINDOWS\\Framework\v2.0\aspnet_isapi.dll 第3个框的名称随便写。
注意:*.gspx *.aspx *.ajax这3个都要添加上添加3次。
应用程序正常初始化失败

完全注册dll:打开“运行”输入→cmd→回车
然后把下面这行字符复制到黑色cmd框里面去回车等待dll文件全部注册完成就关闭可以了,为防止输入错误可以复制这条指令,然后在命令提示符后击鼠标右键→粘贴→回车,耐心等待,直到屏幕滚动停止。
(下面是要运行的代码):
内存不能为read/written 问题的简单解决办法:(原创答案,欢迎分享→请活学活用→仅供参考):
一、硬件的可能性是比较小的,如果是硬件,那就应该是内存条跟主机不兼容的问题导致的 如果能排除硬件上的原因(内存条不兼容,更换内存。内存条松动或积累灰尘,重新拔插并清理灰尘)往下看:
二、系统或其它软件引起的,可用下述方法处理:系统本身有问题,及时安装官方发行的补丁,必要时重装系统。 病毒问题:杀毒 。杀毒软件与其它软件冲突:卸载有问题的软件。显卡、声卡驱动是否正确安装或者是否被恶意覆盖否?重新安装显卡声卡驱动。
2、安装过的Domino这程序导致有问题,你可以在开始→运行→msconfig→启动项目→关闭Domino启动项→如果关闭不了→可以用卡卡助手之类的系统设置软件把它强行关掉→如果还是不行的→证明你系统中毒→那就重新安装或者恢复系统备份彻底解决。
三、某些系统服务被禁用可能导致类似问题,例如QoS RSVP本地通信控制安装功能被禁用时可能会提示RPC服务器不可用。解决方法:我的电脑右键→管理→服务和应用程序→服务→双击QoS RSVP项目将启动类型改为“手动”或“自动”→关闭窗口→重新启动计算机。如果其它服务被禁用导致的问题也可用这个方法重新启用来解决。
四、浏览器出现内存不能读、写的提示:
1、运行→regedit→进入注册表, 在→
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellExecuteHooks
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
错误:应用程序池“AppPoolName”的模板永久性缓存初始化失败,这是由以下原因所导致:无法创建应用程序池的磁盘缓存子目录。
数据可能包含额外的错误代码
在一次重启IIS服务的过程中,突然无法启动IIS服务,打开Internet 信息服务(IIS)管理器也不显示站点,在系统日志中看到错误:
===========================================
来源:Active Server Pages
事件ID:5
错误:应用程序池“AppPoolName”的模板永久性缓存初始化失败,这是由以下原因所导致:无法创建应用程序池的磁盘缓存子目录。
数据可能包含额外的错误代码:
===========================================
于是在网上搜索了一套堆资料,最后查到微软官方的解决方法如下:(此方法试过不行的用户注意最后的讲解)
手动设置文件夹的权限
1.单击“开始”,再单击“Windows 资源管理器”,双击“我的电脑”,再双击系统驱动
器(通常为驱动器C),然后双击“WINDOWS”或“WINNT”。
2.双击“Help”,双击“iisHelp”,右键单击“common”,然后单击“共享和安全”。
3.单击“安全”,然后单击“添加”,键入IIS_WPG,然后单击“确定”。
4.选中“IIS_WPG”,单击选中以下复选框,然后单击“确定”:
o读取和执行
o列出文件夹内容
o读取
5.打开systemroot\system32\inetsrv\ASP Compiled Templates 文件夹的“共
享和安全”对话框,然后授予IIS_WPG 组“完全控制”权限。
6.对systemroot\IIS Temporary Compressed Files 文件夹重复步骤5。
要手动设置NT AUTHORITY\NETWORK SERVICE 的权限,请按照下列步骤操作:
1.单击“开始”,单击“运行”,键入%systemroot%\Help\iisHelp,然后单击“确定”。
2.右键单击“Common”文件夹,然后单击“共享和安全”。
3.在“安全”选项卡上,单击“添加”,键入NETWORK SERVICE,然后单击“确定”。
4.单击“NETWORK SERVICE”,单击以选中“允许”下的以下复选框,然后单击“确定”:
o读取和执行
o列出文件夹内容
o读取
5.单击“开始”,单击“运行”,键入%systemroot%\system32\inetsrv,然后单击
“确定”。
6.右键单击“ASP Compiled Templates”文件夹,然后单击“共享和安全”。
7.在“安全”选项卡上,单击“添加”,键入NETWORK SERVICE,然后单击“确定”。
8.单击“NETWORK SERVICE”,单击以选中“允许”下的“完全控制”复选框,然后单
击“确定”
9.单击“开始”,单击“运行”,键入%systemroot%,然后单击“确定”。
10.右键单击“IIS Temporary Compressed”文件夹,然后单击“共享和安全”。
11.在“安全”选项卡上,单击“添加”,键入NETWORK SERVICE,然后单击“确定”。
12.单击“NETWORK SERVICE”,单击以选中“允许”下的“完全控制”复选框,然后单
击“确定”
完成这些步骤后,请重新启动IIS Admin 服务。
为此,请按照下列步骤操作:
1.单击“开始”,单击“运行”,键入Services.msc,然后单击“确定”。
2.右键单击“IIS Admin”,然后单击“重新启动”。
Microsoft 已经确认这是Microsoft Windows Server 2003 中存在的问题。
============================================= ===
本人在按该方法处理后,问题依然出现,后来,本人怀疑是不是IIS的配置文件出现损坏呢?于是打开目录:C:\WINDOWS\system32\inetsrv找到IIS配置文件MetaBase.xml,改成其它名称后,从C:\WINDOWS\system32\inetsrv\History 自动备份的配置文件中找到个近期的MetaBase_0000000673_0000000000.xml文件改名成MetaBase.xml,重启IIS服务,解决问题!。