这个是链接数据库的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