之前没有问题!百度有收录我的伪静态页面
2天重装了系统!
重新配置了网站之后,
发现IIS的日志
2012-08-16 00:09:05 113.106.91.13 GET /tiezi/25.html - 80 - 123.125.71.26 Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html) 500 0 642012-08-16 00:09:26 113.106.91.13 GET /xinwen/43.html - 80 - 203.208.60.216 Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html) 500 0 02012-08-15 16:28:48 113.106.91.13 GET /route/fenghu/sort3 - 80 - 157.55.17.196 Mozilla/5.0+(compatible;+bingbot/2.0;++http://www.bing.com/bingbot.htm) 500 0 64
我用浏览器打开我的网站:http://sz.yongtu.cn/tiezi/25.html是没有问题的!
但是现在都是500,网站也被K到剩下个主页了!
麻烦高手帮忙解决下!
2天重装了系统!
重新配置了网站之后,
发现IIS的日志
2012-08-16 00:09:05 113.106.91.13 GET /tiezi/25.html - 80 - 123.125.71.26 Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html) 500 0 642012-08-16 00:09:26 113.106.91.13 GET /xinwen/43.html - 80 - 203.208.60.216 Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html) 500 0 02012-08-15 16:28:48 113.106.91.13 GET /route/fenghu/sort3 - 80 - 157.55.17.196 Mozilla/5.0+(compatible;+bingbot/2.0;++http://www.bing.com/bingbot.htm) 500 0 64
我用浏览器打开我的网站:http://sz.yongtu.cn/tiezi/25.html是没有问题的!
但是现在都是500,网站也被K到剩下个主页了!
麻烦高手帮忙解决下!
“/”应用程序中的服务器错误。
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误:执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
JrdLibrary.Utils.IsSearchSpider() +56
Ythw.web.Global.Session_Start(Object sender, EventArgs e) +38
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +2163150
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +154
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +542
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +90
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42
JrdLibrary.Utils.IsSearchSpider
我用了HttpWebRequest去链接我的网页,但是没有问题!
程序测试不是500了,搜索引擎半天不工作的,你得到明天看吧private void button1_Click(object sender, EventArgs e)
{
HttpWebRequest request;
HttpWebResponse response;
try
{
request = HttpWebRequest.Create("http://sz.yongtu.cn/tiezi/25.html") as HttpWebRequest;
response = request.GetResponse() as HttpWebResponse;
textBox3.Text = response.StatusDescription;
}
catch (System.Net.WebException ex)
{
if (ex is WebException)
{
using (var stream = ex.Response.GetResponseStream())
using (var reader = new StreamReader(stream))
{
textBox3.Text = reader.ReadToEnd();
}
}
}
catch (Exception ex)
{
// Something more serious happened
// like for example you don't have network access
// we cannot talk about a server exception here as
// the server probably was never reached
} }