qq_32414277 2018-04-11 04:43 采纳率: 0%
浏览 1010
已结题

api采集直接前台卡死如何解决,或者是什么原因!

这个是链接数据库的web.config代码

 <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <connectionStrings>
    <add name="ConnStr" connectionString="Data Source=.;Initial Catalog=Ticket;Persist Security Info=True;User ID=sa;Password=sssaa05511" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <add key="RootUrl" value="http://baidu.com" />
    <add key="CollectUrl" value="http://cj.wandayule.hk/index.php/cpapi/lotteryopen" />
    <add key="DataUrl" value="D:\\feifanNET\\Collect\\Data\\" />
  </appSettings>
  <system.web>
    <compilation debug="true" />
  </system.web>
    <system.webServer>
        <defaultDocument>
            <files>
                <add value="index.aspx" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>

这个是index网页采集号码的代码

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://baidu.com">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="20"/>
<title>开奖自动刷新</title>
</head>
<body>
<iframe width="1500" height="1500" name="frame1" frameborder="0" src="http://xml.不能带链接替换下.pwt:20099/Default.aspx" /> <!-- xml.xfaaf.pwt替换成自己的域名,20099为开放端口 -->
</body>
</html>

图片说明

声明我本机测试的那个我已经替换过了!

问题是程序运行后链接前端后台会直接卡死!
如果问题有点笼统请有高手的请QQ3550700353

  • 写回答

1条回答

  • yuquan1987 2018-04-11 09:52
    关注

    你这个采集是什么意思,没太明白。你就是嵌套了对方的网站而已啊

    评论

报告相同问题?

悬赏问题

  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常