解决运行.asp出现“http 500 内部服务器错误”及相关错误
2009-01-20 13:41
866 查看
解决运行.asp出现“http 500 内部服务器错误”及“数据库连接出错,请检查Conn.asp文件中的数据库参数设置。”问题
经过N久的尝试,终于解决了winXP不能运行.asp的问题了.....
1、运行.asp出现“http 500 内部服务器错误”
出现这个问题的主要原因是因为MS DTC启动失败,
解决方法:
[1]:检查你的DTC服务(全名:Distributed Transaction Coordinator)是否可以正常启动,如果正常的话请你跳过此步骤;如果出错,无法正常启动,请在开始菜单的运行中 运行:msdtc -resetlog以创建 日志文件。重起机器,检查IIS是否可以正常使用,若不行继续。
[2]:在CMD下执行以下命令:
cd %WINDIR%\system32\inetsrv
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
重起机器,我的问题到这步已经可以完美解决!
2、出现“数据库连接出错,请检查Conn.asp文件中的数据库参数设置。”
利用某批处理清除系统垃圾文件后提示“数据库连接出错,请检查Conn.asp文件中的数据库参数设置。”
特别是使用了以下代码清理过的系统:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统完成!
echo. & pause
解决方法:删了WINDOWS\TEMP,再建个TEMP。马上进入WINDOWS,设置TEMP的安全属性(要去掉“工具-》文件夹选项-》查看-》使用简单文件共享”的勾才会出现“安全”属性选项),设置USERS拥有写权限,OK,问题马上解决。
经过N久的尝试,终于解决了winXP不能运行.asp的问题了.....
1、运行.asp出现“http 500 内部服务器错误”
出现这个问题的主要原因是因为MS DTC启动失败,
解决方法:
[1]:检查你的DTC服务(全名:Distributed Transaction Coordinator)是否可以正常启动,如果正常的话请你跳过此步骤;如果出错,无法正常启动,请在开始菜单的运行中 运行:msdtc -resetlog以创建 日志文件。重起机器,检查IIS是否可以正常使用,若不行继续。
[2]:在CMD下执行以下命令:
cd %WINDIR%\system32\inetsrv
rundll32 wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
重起机器,我的问题到这步已经可以完美解决!
2、出现“数据库连接出错,请检查Conn.asp文件中的数据库参数设置。”
利用某批处理清除系统垃圾文件后提示“数据库连接出错,请检查Conn.asp文件中的数据库参数设置。”
特别是使用了以下代码清理过的系统:
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统完成!
echo. & pause
解决方法:删了WINDOWS\TEMP,再建个TEMP。马上进入WINDOWS,设置TEMP的安全属性(要去掉“工具-》文件夹选项-》查看-》使用简单文件共享”的勾才会出现“安全”属性选项),设置USERS拥有写权限,OK,问题马上解决。
相关文章推荐
- 在IIS中运行asp.net页面报HTTP 500 - 内部服务器错误的解决办法
- IIS运行不了ASP.NET的解决方案 & HTTP 500 - 内部服务器错误的解决方案
- ASP.NET通过Base64String上传超过3M的文件时,出现“远程服务器返回错误: (500) 内部服务器错误。“,的解决方法
- 解决IIS出现HTTP 500内部服务器错误的方法
- IS安装完成,一运行出现“HTTP 500 - 内部服务器错误”
- 通过httpwebrequest实现http的post和get方法莫名出现500内部服务器错误的解决办法
- HTTP 错误 500.100 - 内部服务器错误 - ASP 错误(不是HTTP 错误 500) 怎么解决啊?http://192.168.1.123/1/index.asp
- 客户端访问sharepoint服务器时出现Http 500内部服务器错误的解决方法
- 2003 IIS6 ASP http 500 - 内部服务器错误解决方法
- win7 asp.net HTTP 500内部服务器错误解决办法
- Windows Server 2008 IIS7 运行 ASP 提示 “500 服务器内部错误”的解决办法
- WIN2003的IIS6调试ASP出现HTTP 500 - 内部服务器错误
- 解决:此错误(HTTP 500 内部服务器错误)意味着您正在访问的网站出现了服务器问题,此问题阻止了该网页的显示
- 2003 IIS6 ASP http 500 - 内部服务器错误解决方法
- 2003 IIS6 ASP http 500 - 内部服务器错误解决方法
- windows 2003 IIS6 ASP http 500 - 内部服务器错误解决方法
- asp.net 发送 xml post请求和接收 xml post请求时出现(500) 内部服务器错误的解决办法
- 解决XP的IIS "HTTP 500”内部服务器错误--asp和asp.net服务器ISS
- 在iis中发布asp的网站后,只显示登陆页面,其他的页面都不显示,并出现http500内部服务器错误,是怎么回事?