Solved

Microsoft, IIS, 6, Issue with IIS6 and ODBC

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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…
Suggested Courses

617 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