Solved

Microsoft, IIS, 6, Issue with IIS6 and ODBC

Posted on 2008-10-08
1
530 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

18 Experts available now in Live!

Get 1:1 Help Now