开发者社区> 问答> 正文

HTTP 错误 500.19Internal Server Error0x8007000d

那个大神知道这个怎么解决,谢谢





展开
收起
hz2016 2016-06-19 10:45:12 10600 0
4 条回答
写回答
取消 提交回答
  • 学习
    2016-06-20 14:37:45
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    楼主您好,

    请问在您的web.config文件中,您是想设置自定义错误页吗?

    或许您可以参考一下这个: https://blogs.msdn.microsoft.com/asiatech/2010/04/16/custom-404-page-in-iis-7-500-19/

    -------------------------

    回 4楼(hz2016) 的帖子
    您好,

    那能否贴出您的站点web.config内容呢?

    -------------------------

    回 7楼(hz2016) 的帖子
    您好,

    一般是在站点根目录下的web.config文件,并不是web_config.asp文件喔。

    可参考这里:《 在 IIS 7 中使用配置文件

    -------------------------

    回 9楼(hz2016) 的帖子
    您好,

    如果仅是自定义了错误信息的页面,或许您可以直接尝试修改成这样:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
        </system.webServer>
    </configuration>

    即删除了httpErrors的这部分的配置内容。

    -------------------------

    回 12楼(hz2016) 的帖子
    您好,

    那请修改成这样,再对比一下:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <httpErrors allowAbsolutePathsWhenDelegated="true">
                <remove statusCode="500" subStatusCode="-1" />
                <remove statusCode="404" subStatusCode="-1" />
                <error statusCode="404" prefixLanguageFilePath="" path="C:\hzhuirong\hzhuirong\Adminhuirong\login.asp" responseMode="File" />
                <error statusCode="500" prefixLanguageFilePath="" path="C:\hzhuirong\hzhuirong\Adminhuirong\login.asp" responseMode="File" />
            </httpErrors>
        </system.webServer>
    </configuration>


    -------------------------

    回 14楼(hz2016) 的帖子
    您好,

    可能我复制时,带了错误编码的字符。

    等我找到测试时,为您试试喔。

    -------------------------

    回 18楼(hz2016) 的帖子
    您好,

    原来是父路径没有开启导致的。感谢您告诉问题的处理结果喔。
    2016-06-19 12:25:13
    赞同 展开评论 打赏
  • 回 1楼梦丫头的帖子
    网站程序是吧?

    -------------------------

    回 3楼dongshan8的帖子
    恩,你的这个方法全英文看不懂

    -------------------------

    那位大神指导下,谢谢

    -------------------------

    回 6楼dongshan8的帖子


    不知道是不是最下面那个,下面的内容是最下面那个的

    <% '文件夹获取
    '文章文件夹获取
    set rs_1=server.createobject("adodb.recordset")
    sql="select FolderName from web_Models_type where [id]=5"
    rs_1.open(sql),cn,1,1
    if not rs_1.eof then
    Article_FolderName=rs_1("FolderName")
    end if
    rs_1.close
    set rs_1=nothing

    '产品文件夹获取
    set rs_1=server.createobject("adodb.recordset")
    sql="select FolderName from web_Models_type where [id]=6"
    rs_1.open(sql),cn,1,1
    if not rs_1.eof then
    Product_FolderName=rs_1("FolderName")
    end if
    rs_1.close
    set rs_1=nothing

    '案例文件夹获取
    set rs_1=server.createobject("adodb.recordset")
    sql="select FolderName from web_Models_type where [id]=50"
    rs_1.open(sql),cn,1,1
    if not rs_1.eof then
    Case_FolderName=rs_1("FolderName")
    end if
    rs_1.close
    set rs_1=nothing
    %>

    <%
    '首页基本信息内容读取替换
    set rs=server.createobject("adodb.recordset")
    sql="select web_name,web_url,web_image,web_title,web_keywords,web_contact,web_TopHTML,web_BottomHTML,web_description,web_copyright,web_theme from web_settings"
    rs.open(sql),cn,1,1
    if not rs.eof and not rs.bof then
    web_name=rs("web_name")
    web_url=rs("web_url")
    web_image=rs("web_image")
    web_title=rs("web_title")
    web_keywords=rs("web_keywords")
    web_description=rs("web_description")
    web_copyright=rs("web_copyright")
    web_theme=rs("web_theme")
    web_consult=rs("web_contact")
    web_TopHTML=rs("web_TopHTML")
    web_BottomHTML=rs("web_BottomHTML")
    end if
    rs.close
    set rs=nothing
    %>

    -------------------------

    回 8楼dongshan8的帖子
    哦,搞错了
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <httpErrors>
                <remove statusCode="500" subStatusCode="-1" />
                <remove statusCode="404" subStatusCode="-1" />
                <error statusCode="404" prefixLanguageFilePath="" path="C:\hzhuirong\hzhuirong\Adminhuirong\login.asp" responseMode="File" />
                <error statusCode="500" prefixLanguageFilePath="" path="C:\hzhuirong\hzhuirong\Adminhuirong\login.asp" responseMode="File" />
            </httpErrors>
        </system.webServer>
    </configuration>

    -------------------------

    回 10楼dongshan8的帖子
    好的,我改下看看,麻烦了

    -------------------------

    回 10楼dongshan8的帖子
    web.config文件改成你写的那样后,全站都变成500错误,没改之前只有后台的页有问题



    -------------------------

    回 13楼dongshan8的帖子

    改了后,点错误页跳出这个

    -------------------------

    回 16楼dongshan8的帖子
    好的,麻烦了

    -------------------------

    回 16楼dongshan8的帖子
    谢谢,问题解决了,原来是父路径没有开启
    2016-06-19 11:52:39
    赞同 展开评论 打赏
  • 论坛总版主
    检查下程序是否完整
    2016-06-19 11:33:07
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里巴巴HTTP 2.0实践及无线通信协议的演进之路 立即下载
CDN助力企业网站进入HTTPS时代 立即下载
Well-That-Escalated-Quickly-How-Abusing-The-Docker-API-Led-To-Remote-Code-Execution-Same-Origin-Bypass-And-Persistence 立即下载