Results 1 to 8 of 8

Thread: Cast from type 'FileInfo' to type 'String' is not valid. *[resolved]*

Threaded View

  1. #6
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Ok, I got it figured out for you.

    I had to change all your hard coded paths of "C:/program files/jp/news/data/" to Application.StartupPath....which is something I suggest you go ahead and use yourself that way nothing is hard coded.

    I marked the two areas that I fixed with what I believe to be the problem. No more errors when I run the app.
    Attached Files Attached Files

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