Solved

Microsoft, IIS, 6, Issue with IIS6 and ODBC

Posted on 2008-10-08
1
543 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

752 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