Results 1 to 3 of 3

Thread: [2005] Specified cast is not valid.

  1. #1

    Thread Starter
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    [2005] Specified cast is not valid.

    Ok in my asp.net app, i'm using a dll to turn a document that has been uploaded to the server into a pdf document. Everything had been working fine up until today, when i got this error "Specified cast is not valid." on this line
    VB Code:
    1. _PDFCreator = New PDFCreator.clsPDFCreator
    Code prior too that line
    VB Code:
    1. Imports System.IO
    2. Imports System.Data
    3.  
    4. Public Class CREATE_PDF_SERVICE
    5.     Private WithEvents _PDFCreator As PDFCreator.clsPDFCreator
    6.     Private ReadyState As Boolean, pErr As PDFCreator.clsPDFCreatorError
    7.     Private Const maxTime As Long = 20
    8.  
    9.     Public Function CREATE_PDF_FILE(ByVal FILE_NAME As String, ByVal OUTPUT_PATH As String, ByVal LINK_PATH As String) As String
    10.  
    11.         _PDFCreator = New PDFCreator.clsPDFCreator
    If you could tell me what stupid thing that i'm doing or point me in the right direction i'd appreciate it.
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005] Specified cast is not valid.

    Is it a COM library? There must be certain dependencies involved which PDFCreator depends upon in the system environment which have recently changed.

    Anything recently change on the server?

  3. #3
    New Member
    Join Date
    Aug 2011
    Posts
    1

    Talking Re: [2005] Specified cast is not valid.

    was dificult but do this....Uninstall all PDFCReators you have and install the version 1.0.1 , only worked like this.


    Rafael Ramirez
    No matter how much you know .....
    The matters is ...
    what do you do as you 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