Click here to Skip to main content
       

ASP.NET

 
AnswerRe: Problem with MapPageRoute PinmemberMarcus Kramer9-Nov-12 9:46 
GeneralRe: Problem with MapPageRoute Pinmemberjrahma9-Nov-12 9:50 
Question{36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80010001 Call was rejected by callee. PinmemberMember 95859818-Nov-12 23:55 
AnswerRe: {36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80010001 Call was rejected by callee. Pinmemberjkirkerx10-Nov-12 20:09 
QuestionHi friends i want to create a web application PinmemberVinothData8-Nov-12 23:52 
Questionlarger file uploading issue Pinmembersilentspeaker8-Nov-12 3:17 
QuestionUnable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pinmembersilentspeaker8-Nov-12 1:55 
AnswerRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' PinmemberRichard 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' Pinmembersilentspeaker8-Nov-12 2:34 
GeneralRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' PinmemberRichard Deeming8-Nov-12 2:44 
QuestionWCF Pinmembersandeep81467-Nov-12 22:42 
AnswerRe: WCF PinmemberJ4amieC7-Nov-12 22:44 
QuestionCould not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Pinmemberarch067-Nov-12 19:47 
AnswerRe: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Pinmembershanalalkasim7-Nov-12 22:08 
AnswerRe: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. PinmemberSentenryu7-Nov-12 23:12 
QuestionWant to close window.showModalDialog() popUp pressing ESC key but i've 100s of popUp. How can i change in a single place and all popup will close pressing ESC Key. Pinmemberhelperofrinto7-Nov-12 18:11 
AnswerRe: Want to close window.showModalDialog() popUp pressing ESC key but i've 100s of popUp. How can i change in a single place and all popup will close pressing ESC Key. PinmemberSentenryu7-Nov-12 23:18 
QuestionCompleteWizardStep not working Pinmemberpier19897-Nov-12 5:47 
AnswerRe: CompleteWizardStep not working Pinmemberjkirkerx7-Nov-12 13:25 
QuestionHow to increase execution time Pinmembersilentspeaker7-Nov-12 2:48 
AnswerRe: How to increase execution time PinmentorKeith Barrow7-Nov-12 3:15 
AnswerRe: How to increase execution time PinmemberSentenryu7-Nov-12 3:17 
GeneralRe: How to increase execution time Pinmembersilentspeaker7-Nov-12 19:56 
QuestionFTP Files Downloader Pinmembersilentspeaker7-Nov-12 1:34 
AnswerRe: FTP Files Downloader Pinmemberdeflinek7-Nov-12 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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.140721.1 | Last Updated 1 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid