Click here to Skip to main content
15,886,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
Imran Khan Pathan29-Jul-08 20:13
Imran Khan Pathan29-Jul-08 20:13 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
Christian Graus29-Jul-08 20:20
protectorChristian Graus29-Jul-08 20:20 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
Imran Khan Pathan29-Jul-08 20:33
Imran Khan Pathan29-Jul-08 20:33 
AnswerRe: "External table is not in the expected format." how to solve this error? Pin
Christian Graus29-Jul-08 20:06
protectorChristian Graus29-Jul-08 20:06 
AnswerRe: "External table is not in the expected format." how to solve this error? Pin
satyaanand.andra@gmail.com29-Jul-08 21:26
satyaanand.andra@gmail.com29-Jul-08 21:26 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
J4amieC29-Jul-08 22:11
J4amieC29-Jul-08 22:11 
QuestionHow to resize the ContentPlaceHolder of a MasterPage in Child(.aspx) Page? Pin
mcmilan29-Jul-08 18:40
mcmilan29-Jul-08 18:40 
QuestionFile Upload error on live site. Pin
JimBob SquarePants29-Jul-08 18:33
JimBob SquarePants29-Jul-08 18:33 
Hi there,
I'm having a pretty serious problem with file uploads not working on my live site. I was able to upload fine when I was testing in VS on my local machine.

When I try to upload a file I'm getting the following error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not find a part of the path 'C:\Users\Fred\Desktop\James\Organised Files\Images\cherries.jpg'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Fred\Desktop\James\Organised Files\Images\cherries.jpg'.

I'm using an aspnet fileupload control and my code is as following:

Dim photoFileUpload As FileUpload = CType(dvCrops.FindControl("photoFileUpload"), FileUpload)


        If photoFileUpload.PostedFile Is Nothing Then

            lblMessage.Text = "No file specified."

            Exit Sub

        Else

            Dim FileName As String = photoFileUpload.PostedFile.FileName


All my following code requires FileName to be accurate. So i'm 100% sure my problem is on that last line.

I've tried using System.IO.Path.GetFullPath but that doesn't seem to be helping.

Any ideas would be really helpful.

Many Thanks

JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************

AnswerRe: File Upload error on live site. Pin
Venkatesh Mookkan29-Jul-08 18:50
Venkatesh Mookkan29-Jul-08 18:50 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants29-Jul-08 19:03
JimBob SquarePants29-Jul-08 19:03 
AnswerRe: File Upload error on live site. Pin
Anand Desai29-Jul-08 19:14
Anand Desai29-Jul-08 19:14 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan29-Jul-08 19:16
Venkatesh Mookkan29-Jul-08 19:16 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants29-Jul-08 22:52
JimBob SquarePants29-Jul-08 22:52 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan30-Jul-08 0:17
Venkatesh Mookkan30-Jul-08 0:17 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants30-Jul-08 1:31
JimBob SquarePants30-Jul-08 1:31 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan30-Jul-08 2:12
Venkatesh Mookkan30-Jul-08 2:12 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants30-Jul-08 4:03
JimBob SquarePants30-Jul-08 4:03 
GeneralRe: File Upload error on live site. Pin
Venkatesh Mookkan30-Jul-08 17:50
Venkatesh Mookkan30-Jul-08 17:50 
GeneralRe: File Upload error on live site. Pin
JimBob SquarePants31-Jul-08 3:17
JimBob SquarePants31-Jul-08 3:17 
AnswerRe: File Upload error on live site. Pin
Imran Khan Pathan29-Jul-08 20:00
Imran Khan Pathan29-Jul-08 20:00 
AnswerRe: File Upload error on live site. Pin
Anand Desai29-Jul-08 20:13
Anand Desai29-Jul-08 20:13 
QuestionDetermine if transaction is successful [modified] Pin
ASPnoob29-Jul-08 15:52
ASPnoob29-Jul-08 15:52 
AnswerRe: Determine if transaction is successful Pin
Christian Graus29-Jul-08 17:49
protectorChristian Graus29-Jul-08 17:49 
GeneralRe: Determine if transaction is successful Pin
Mogaambo29-Jul-08 18:37
Mogaambo29-Jul-08 18:37 
GeneralRe: Determine if transaction is successful Pin
Christian Graus29-Jul-08 20:08
protectorChristian Graus29-Jul-08 20:08 

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.