Results 1 to 2 of 2

Thread: IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2002
    Location
    The Twilight Zone
    Posts
    295

    IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

    Hi

    I have this SQL statement:

    Code:
    string Messages_SQL = "SELECT COUNT(Questions) FROM Progress WHERE QuestionBy = '" + Session["User"]+ "' AND Read = 'No'";
    I get this error:

    Code:
    IErrorInfo.GetDescription failed with E_FAIL(0x80004005)
    If i comment out the "AND Read = 'No'" part then it works but obviously i don't get the results i need.

    Anyone see what i am doing wrong?

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497

    Re: IErrorInfo.GetDescription failed with E_FAIL(0x80004005)

    Does the SQL Command run in the SQL QUERY ANALYZER?

    I suspect the Session["User"] is munging your query.

    Try parameterizing the query.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width