Advertisement

03.07.2008 at 06:43AM PST, ID: 23222976
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

ASP.NET 2.0.50727.0 Event code: 3005

Tags: ASP.NET 2.0.50727.0 Event code: 3005
Every day at 12:00AM I get these error messages and they continue every minute until I restart IIS.  The asp code that this error message is complaining about runs perfectly all day, until midnight, then bam I'm getting spammed with these errors.

Event Type:      Warning
Event Source:      ASP.NET 2.0.50727.0
Event Category:      Web Event
Event ID:      1309
Date:            3/7/2008
Time:            12:01:05 AM
User:            N/A
Computer:      W
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/7/2008 12:01:05 AM
Event time (UTC): 3/7/2008 5:01:05 AM
Event ID: 792f3cdeed404061aea648d7d188e050
Event sequence: 17800
Event occurrence: 13
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/Root/DundasReport-2-128493297932102944
    Trust level: Full
    Application Virtual Path: /DundasReport
    Application Path: D:\Dundas Projects\DUNDAS_RealTime_WebApp\
    Machine name: W
 
Process information:
    Process ID: 7920
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: InvalidCastException
    Exception message: Conversion from type 'DBNull' to type 'Double' is not valid.
 
Request information:
    Request URL: http://ecrpt/dundasreport/SHOPPING_frequency2.aspx
    Request path: /dundasreport/SHOPPING_frequency2.aspx
    User host address: 10.181.107.171
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 9
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(Object Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(Object Value)
   at WebApplication7.WebForm1.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   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.
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: chappymcgee
Solution Provided By: carl_tawn
Participating Experts: 1
Solution Grade: A
Views: 335
Translate:
Loading Advertisement...
03.07.2008 at 07:06AM PST, ID: 21070757

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.07.2008 at 08:23AM PST, ID: 21071680

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.07.2008 at 08:42AM PST, ID: 21071914

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
03.07.2008 at 07:06AM PST, ID: 21070757
What does the page "SHOPPING_frequency2.aspx" actually do? Some sort of database work judging from the error, perhaps something to do with the change in date at midnight.

Theres not really much more help we can give without having an idea what the page triggering the error is actually doing.
 
03.07.2008 at 08:23AM PST, ID: 21071680
Ok, so this page and the others that are complaining are reports in the form of a gauge.  All they really do is go to the database pull a number and create the guage image with the appropriate number.


Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Data
Imports System.Data.OleDb
Imports System.Drawing
Imports System.Web
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports Dundas.Gauges.WebControl


Namespace WebApplication7
    Partial Class WebForm1
        Inherits System.Web.UI.Page


#Region " Web Form Designer Generated Code "

        'This call is required by the Web Form Designer.
        Private Sub InitializeComponent()

        End Sub
        '  Protected WithEvents SqlConnection1 As System.Data.SqlClient.SqlConnection
        ' Protected WithEvents SqlCommand1 As System.Data.SqlClient.SqlCommand


        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            'CODEGEN: This method call is required by the Web Form Designer
            'Do not modify it using the code editor.
            InitializeComponent()
        End Sub

#End Region

        Dim MyConn As SqlConnection = New SqlConnection(System.Configuration.ConfigurationManager.AppSettings("connectionStringProd"))
        Dim strSQL As String
        Dim objCommand As SqlCommand
        Dim objDatareader As SqlDataReader


        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim todays_goal
            Dim goal_desc As String
            Dim max_scale
            Dim suite_str As String
            'Dim metric_str As String
            Dim report_type_str As String

            GaugeContainer1.Labels("Ttl_main").Text = "Shopping Frequency (Visits/UVs)"
            suite_str = "Shopping"
            report_type_str = "Frequency"

            goal_desc = ""

            db_Open_CONN()


            strSQL = "sp_omn_goals_Freq_Depth '" & suite_str & "','" & report_type_str & "'"
            run_sql()
            objDatareader.Read()

            todays_goal = IIf(IsDBNull(objDatareader.GetValue(0)), 10, objDatareader.GetValue(0))
            max_scale = (Math.Ceiling((todays_goal * 1.1) / 10)) * 10
            goal_desc = IIf(IsDBNull(objDatareader.GetValue(1)), "", objDatareader.GetValue(1))

            objDatareader.Close()

            strSQL = "sp_omn_metrics_Freq_Depth '" & suite_str & "','" & report_type_str & "'"


            GaugeContainer1.Labels("Ttl_sub").Text = goal_desc
            GaugeContainer1.CircularGauges("Default").Scales("Default").Maximum = max_scale
            GaugeContainer1.CircularGauges("Default").Ranges("LOW").StartValue = 0
            GaugeContainer1.CircularGauges("Default").Ranges("LOW").EndValue = todays_goal * 0.95

            GaugeContainer1.CircularGauges("Default").Ranges("MID").StartValue = todays_goal * 0.95
            GaugeContainer1.CircularGauges("Default").Ranges("MID").EndValue = todays_goal

            GaugeContainer1.CircularGauges("Default").Ranges("HIGH").StartValue = todays_goal
            GaugeContainer1.CircularGauges("Default").Ranges("HIGH").EndValue = max_scale

            ' Connect the pointer to the value source.
            GaugeContainer1.CircularGauges("Default").Pointers("Default").ValueSource = "Default"
            '            GaugeContainer1.StateIndicators(0).Text = "Data as of: " & Now


            ' Render the gauge as an image.
            GaugeContainer1.RenderType = RenderType.InputTag
            Dim actualval As Double
            run_sql()
            objDatareader.Read()
            actualval = IIf(IsDBNull(objDatareader.GetValue(0)), 0, objDatareader.GetValue(0))
            GaugeContainer1.StateIndicators(0).Text = "Data as of: " & IIf(IsDBNull(objDatareader.GetValue(1)), "No Data", objDatareader.GetValue(1))
            GaugeContainer1.NumericIndicators(0).Value = objDatareader.GetValue(0)
            GaugeContainer1.CircularGauges("Default").Pointers("Default").Value = objDatareader.GetValue(0)


            db_Close_CONN()

        End Sub
        Private Sub db_Open_CONN()
            MyConn.Open()
        End Sub
        Private Sub db_Close_CONN()
            MyConn.Close()
            MyConn = Nothing

        End Sub

        Private Sub run_sql()
            objCommand = New SqlCommand(strSQL, MyConn)
            objDatareader = objCommand.ExecuteReader()
        End Sub

    End Class


End Namespace
 
03.07.2008 at 08:42AM PST, ID: 21071914
The error would suggest that the first column of your second query is returning null and that this line:

            GaugeContainer1.NumericIndicators(0).Value = objDatareader.GetValue(0)

Is throwing an exception because of it. You initially check the column for null when assigning to "actualval", but you don't check it when assigning it on this line.

Whether or not your stored proc should be returning NULL in that column is something only you can determine. But to fix the immediate problem of the page throwing an exception you simply need to change these two lines:

            GaugeContainer1.NumericIndicators(0).Value = objDatareader.GetValue(0)
            GaugeContainer1.CircularGauges("Default").Pointers("Default").Value = objDatareader.GetValue(0)

To:

            GaugeContainer1.NumericIndicators(0).Value = actualval
            GaugeContainer1.CircularGauges("Default").Pointers("Default").Value = actualval
Accepted Solution
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628