Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Microsoft, IIS, 6, Issue with IIS6 and ODBC

Posted on 2008-10-08
1
Medium Priority
?
555 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 1500 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

719 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