Results 1 to 2 of 2

Thread: Common error when uploading files?

  1. #1
    Addicted Member
    Join Date
    Mar 08
    Posts
    157

    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
    Super Moderator Hack's Avatar
    Join Date
    Aug 01
    Location
    Searching for mendhak
    Posts
    58,283

    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.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •