Solved

Microsoft, IIS, 6, Issue with IIS6 and ODBC

Posted on 2008-10-08
1
534 Views
Last Modified: 2010-05-18
I am trying to call from one server to another using an ODBC driver. I keep getting this error and cannot figure out what is going on.

Event Type:      Warning
Event Source:      ASP.NET 2.0.50727.0
Event Category:      Web Event
Event ID:      1309
Date:            10/8/2008
Time:            1:42:02 PM
User:            N/A
Computer:      RDLRPS
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 10/8/2008 1:42:02 PM
Event time (UTC): 10/8/2008 5:42:02 PM
Event ID: 7f5b547ed6b341ac9e0fd3bb56b642d5
Event sequence: 106
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/393560554/Root-11-128679596831548901
    Trust level: Full
    Application Virtual Path: /
    Application Path: D:\RPS\
    Machine name: RDLRPS
 
Process information:
    Process ID: 3820
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: FormatException
    Exception message: String was not recognized as a valid DateTime.
 
Request information:
    Request URL: http://192.168.1.30/AddHaul.aspx?HaulType=2&OrderID=188&HaulCount=0 
    Request path: /AddHaul.aspx
    User host address: 192.168.1.121
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 11
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at System.DateTime.Parse(String s, IFormatProvider provider)
   at System.Convert.ToDateTime(String value)
   at RPS.AddHaul.FinishButton_Click(Object sender, WizardNavigationEventArgs e) in C:\Documents and Settings\Chris\Desktop\RPS\RPS\AddHaul.aspx.cs:line 505
   at System.Web.UI.WebControls.Wizard.OnFinishButtonClick(WizardNavigationEventArgs e)
   at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e)
   at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
   at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   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.
0
Comment
Question by:reindeerauto
1 Comment
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 500 total points
ID: 22671955
You are getting an exception when you are trying to parse the string s into datetime. Inside the function FinishButton_Click in file AddHaul.aspx.cs line number 505. See the stack trace.

Stack trace:    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at System.DateTime.Parse(String s, IFormatProvider provider)
   at System.Convert.ToDateTime(String value)
   at RPS.AddHaul.FinishButton_Click(Object sender, WizardNavigationEventArgs e) in C:\Documents and Settings\Chris\Desktop\RPS\RPS\AddHaul.aspx.cs:line 505

Debug and check if the string is in correct format. Also use a try catch block to catch the exception

Hope that helps
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now