Hi, I got following error in my website logs. I am not able to rectify this
error. Can any one help me. On Master Page Pre render I have written only
this code.
Dim metatag As New HtmlMeta()
metatag.Attributes.Add("http-equiv", "X-UA-Compatible")
metatag.Attributes.Add("content", "ID=EmulateIE7")
Page.Header.Controls.AddAt(0, metatag)
If (Request.UserAgent.IndexOf("AppleWebKit") > 0) Then
Request.Browser.Adapters.Clear()
End If
If Request.ServerVariables("http_user_agent").IndexOf("Safari",
StringComparison.CurrentCultureIgnoreCase) <> -1 Then
Page.ClientTarget = "uplevel"
End If
=============================Error is ==================
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 11/17/2010
Time: 5:52:19 PM
User: N/A
Computer: WIN02
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 11/17/2010 5:52:19 PM
Event time (UTC): 11/17/2010 11:52:19 PM
Event ID: a3befd8d0bd34395988e1753e67ef8c0
Event sequence: 554
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1029160153/Root-1-129344947073435000
Trust level: Full
Application Virtual Path: /
Application Path: D:\vhosts\www.sitename.com\httpdocs\
Machine name: WIN02
Process information:
Process ID: 7264
Process name: w3wp.exe
Account name: WIN02\IWPD_17(sitename)
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
Request information:
Request URL: http://sitename.com/Default.aspx
Request path: /Default.aspx
User host address: 194.50.163.158
User:
Is authenticated: False
Authentication Type:
Thread account name: WIN02\IWPD_17(icrain)
Thread information:
Thread ID: 6
Thread account name: WIN02\IWPD_17(icrain)
Is impersonating: False
Stack trace: at Master.Page_PreRender(Object sender, EventArgs e) in
D:\vhosts\www.icra.in\httpdocs\Master.master.vb:line 33
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.