Click here to Skip to main content
13,345,438 members (48,319 online)
   

ASP.NET

 
GeneralRe: Login control doesn authenticate user after closing/changing database Pin
jkirkerx13-Nov-12 7:57
memberjkirkerx13-Nov-12 7:57 
QuestionProblem with MapPageRoute Pin
jrahma9-Nov-12 9:50
memberjrahma9-Nov-12 9:50 
AnswerRe: Problem with MapPageRoute Pin
Marcus Kramer9-Nov-12 10:46
memberMarcus Kramer9-Nov-12 10:46 
GeneralRe: Problem with MapPageRoute Pin
jrahma9-Nov-12 10:50
memberjrahma9-Nov-12 10:50 
Question{36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80010001 Call was rejected by callee. Pin
Member 95859819-Nov-12 0:55
memberMember 95859819-Nov-12 0:55 
AnswerRe: {36D27C48-A1E8-11D3-BA55-00C04F72F325} failed due to the following error: 80010001 Call was rejected by callee. Pin
jkirkerx10-Nov-12 21:09
memberjkirkerx10-Nov-12 21:09 
Questionlarger file uploading issue Pin
silentspeaker8-Nov-12 4:17
membersilentspeaker8-Nov-12 4:17 
QuestionUnable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
silentspeaker8-Nov-12 2:55
membersilentspeaker8-Nov-12 2:55 
Hi,
I want to upload browsed file to the ftp server but getting this error


 Sub UploadFile()

        Try
            Dim fileName As String = FulFile.PostedFile.FileName
            Dim requestFTP As WebRequest = WebRequest.Create("ftp://...................." & fileName)
            requestFTP.Credentials = New NetworkCredential("userid", "password")
            requestFTP.Method = WebRequestMethods.Ftp.UploadFile


            Dim fStream As FileStream = FulFile.PostedFile.InputStream 'Error:Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream'.


            Dim bufferLength As Integer = 2048
            Dim buffer As Byte() = New Byte(bufferLength - 1) {}

            Dim uploadStream As Stream = requestFTP.GetRequestStream()
            Dim contentLength As Integer = fStream.Read(buffer, 0, bufferLength)

            While contentLength <> 0
                uploadStream.Write(buffer, 0, contentLength)
                contentLength = fStream.Read(buffer, 0, bufferLength)
            End While
            uploadStream.Close()
            fStream.Close()
            requestFTP = Nothing

            LblMsg.Text = "File Uploading Is SuccessFull..."

        Catch ep As Exception
            LblMsg.Text = ep.Message
        End Try

    End Sub

AnswerRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
Richard Deeming8-Nov-12 3:26
memberRichard Deeming8-Nov-12 3:26 
GeneralRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
silentspeaker8-Nov-12 3:34
membersilentspeaker8-Nov-12 3:34 
GeneralRe: Unable to cast object of type 'System.Web.HttpInputStream' to type 'System.IO.FileStream' Pin
Richard Deeming8-Nov-12 3:44
memberRichard Deeming8-Nov-12 3:44 
QuestionWCF Pin
sandeep81467-Nov-12 23:42
membersandeep81467-Nov-12 23:42 
AnswerRe: WCF Pin
J4amieC7-Nov-12 23:44
memberJ4amieC7-Nov-12 23:44 
QuestionCould not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Pin
arch067-Nov-12 20:47
memberarch067-Nov-12 20:47 
AnswerRe: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Pin
shanalalkasim7-Nov-12 23:08
membershanalalkasim7-Nov-12 23:08 
AnswerRe: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Pin
Sentenryu8-Nov-12 0:12
memberSentenryu8-Nov-12 0:12 
QuestionHow to increase execution time Pin
silentspeaker7-Nov-12 3:48
membersilentspeaker7-Nov-12 3:48 
AnswerRe: How to increase execution time Pin
Keith Barrow7-Nov-12 4:15
mentorKeith Barrow7-Nov-12 4:15 
AnswerRe: How to increase execution time Pin
Sentenryu7-Nov-12 4:17
memberSentenryu7-Nov-12 4:17 
GeneralRe: How to increase execution time Pin
silentspeaker7-Nov-12 20:56
membersilentspeaker7-Nov-12 20:56 
QuestionFTP Files Downloader Pin
silentspeaker7-Nov-12 2:34
membersilentspeaker7-Nov-12 2:34 
AnswerRe: FTP Files Downloader Pin
deflinek8-Nov-12 0:05
memberdeflinek8-Nov-12 0:05 
AnswerRe: FTP Files Downloader Pin
gopal pradhan9-Nov-12 0:10
membergopal pradhan9-Nov-12 0:10 
QuestionNeed help to upload 500 MB file on FTP Pin
silentspeaker6-Nov-12 1:39
membersilentspeaker6-Nov-12 1:39 
AnswerRe: Need help to upload 500 MB file on FTP Pin
Richard Deeming6-Nov-12 2:32
memberRichard Deeming6-Nov-12 2:32 

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 |
Web04 | 2.8.180111.1 | Last Updated 15 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid