Results 1 to 2 of 2

Thread: Common error when uploading files?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    522

    Common error when uploading files?

    When I run the selected file and press upload image files the following error:

    Compilation Error
    Description: An error occurred during three days the compilation of a resource required to service this request. Please review the specific error details and modify sau your source code appropriately.

    Compiler Error Message: CS0103: The name 'Common' does not exist in the current context

    Source Error:

    Code:
    Line 51:
    Line 52: / / file name to not be centralized file + extension of the file to upload
    Line 53: strFileName = Common.GetFileName () + System.IO.Path.GetExtension (Hinh1.FileName) / / this line error immediately
    Line 54:
    Line 55: / / Path Large file I save
    Common under which this namespace? I have tried namespace
    using System.Data.Common;
    but not

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Common error when uploading files?

    I don't believe "Common" is a class within the .NET framework. Is this a class that you have created through your own code?

    Also, GetFileName is a method within the System.IO.Path class just like GetExtension is, so that is what I'd be using instead of whatever "Common" is.

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