Click here to Skip to main content
13,053,844 members (55,666 online)
   

ASP.NET

 
AnswerRe: Execute javascript before page_Load Pin
jkirkerx10-Nov-12 20:12
memberjkirkerx10-Nov-12 20:12 
QuestionRe: Execute javascript before page_Load Pin
jojoba201110-Nov-12 20:21
memberjojoba201110-Nov-12 20:21 
AnswerRe: Execute javascript before page_Load Pin
jkirkerx11-Nov-12 12:08
memberjkirkerx11-Nov-12 12:08 
QuestionRe: Execute javascript before page_Load Pin
jojoba201111-Nov-12 17:24
memberjojoba201111-Nov-12 17:24 
AnswerRe: Execute javascript before page_Load Pin
jkirkerx11-Nov-12 18:28
memberjkirkerx11-Nov-12 18:28 
Questionlarger file uploading issue Pin
silentspeaker8-Nov-12 3:17
membersilentspeaker8-Nov-12 3:17 
QuestionUnable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
silentspeaker8-Nov-12 1:55
membersilentspeaker8-Nov-12 1:55 
AnswerRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
Richard Deeming8-Nov-12 2:26
memberRichard Deeming8-Nov-12 2:26 
I'm not sure how the error message could be any clearer:
  • the HttpPostedFile.InputStream property is a System.Web.HttpInputStream, which inherits from System.IO.Stream;

  • you are attempting to store it in a variable of type System.IO.FileStream, which is a different type of System.IO.Stream.


Change your fStream variable to be a System.IO.Stream:
Dim fStream As Stream = FulFile.PostedFile.InputStream


Also, you're still not calling the GetResponse method on your requestFTP object. If you don't call that method, your request will never be sent.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
silentspeaker8-Nov-12 2:34
membersilentspeaker8-Nov-12 2:34 
GeneralRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
Richard Deeming8-Nov-12 2:44
memberRichard Deeming8-Nov-12 2:44 
QuestionFTP Files Downloader Pin
silentspeaker7-Nov-12 1:34
membersilentspeaker7-Nov-12 1:34 
AnswerRe: FTP Files Downloader Pin
deflinek7-Nov-12 23:05
memberdeflinek7-Nov-12 23:05 
AnswerRe: FTP Files Downloader Pin
gopal pradhan8-Nov-12 23:10
membergopal pradhan8-Nov-12 23:10 
QuestionMaster Page in ASP.NET Pin
hiredotnet3-Oct-12 19:11
memberhiredotnet3-Oct-12 19:11 
QuestionEval Expression Explanation Pin
ASPnoob15-Sep-12 3:54
memberASPnoob15-Sep-12 3:54 
AnswerRe: Eval Expression Explanation Pin
Sandeep Mewara15-Sep-12 7:01
mvpSandeep Mewara15-Sep-12 7:01 
GeneralRe: Eval Expression Explanation Pin
ASPnoob15-Sep-12 11:18
memberASPnoob15-Sep-12 11:18 
AnswerRe: Eval Expression Explanation Pin
Sandeep Mewara15-Sep-12 19:13
mvpSandeep Mewara15-Sep-12 19:13 
QuestionReading data from Excel Pin
indian14310-Aug-12 7:15
memberindian14310-Aug-12 7:15 
AnswerRe: Reading data from Excel Pin
jkirkerx10-Aug-12 10:33
memberjkirkerx10-Aug-12 10:33 
GeneralRe: Reading data from Excel Pin
indian14310-Aug-12 12:28
memberindian14310-Aug-12 12:28 
GeneralRe: Reading data from Excel Pin
jkirkerx10-Aug-12 19:12
memberjkirkerx10-Aug-12 19:12 
QuestionDetails View Example Pin
Member 869650217-May-12 23:42
memberMember 869650217-May-12 23:42 
QuestionNeed to create Treeview by arraylist Pin
Member 322226429-Feb-12 2:10
memberMember 322226429-Feb-12 2:10 
AnswerRe: Need to create Treeview by arraylist Pin
Andy41129-Feb-12 2:40
memberAndy41129-Feb-12 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 27 Jul 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid