Method not found

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fred

    Method not found

    Hello,

    I get this strange error in the code of a very simple aspx page just
    called to download a file.
    Do you have any idea about it ?
    (The same code works fine on another server)

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

    Method not found: 'Void
    System.Web.Http Response.Transm itFile(System.S tring, Int64, Int64)'.
    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.MissingM ethodException: Method not found:
    'Void System.Web.Http Response.Transm itFile(System.S tring, Int64,
    Int64)'.

    Source Error:

    An unhandled exception was generated during the execution of the current
    web request. Information regarding the origin and location of the
    exception can be identified using the exception stack trace below.

    Stack Trace:


    [MissingMethodEx ception: Method not found: 'Void
    System.Web.Http Response.Transm itFile(System.S tring, Int64, Int64)'.]
    Project.Downloa d.Page_Load(Obj ect sender, EventArgs e) +0
    System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
    System.Web.UI.C ontrol.LoadRecu rsive() +47
    System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
    +1061




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
    ASP.NET Version:2.0.507 27.42


    --
    Fred

  • Mufaka

    #2
    Re: Method not found

    Fred wrote:
    Hello,
    >
    I get this strange error in the code of a very simple aspx page just
    called to download a file.
    Do you have any idea about it ?
    (The same code works fine on another server)
    >
    Server Error in '/' Application.
    --------------------------------------------------------------------------------
    >
    >
    Method not found: 'Void
    System.Web.Http Response.Transm itFile(System.S tring, Int64, Int64)'.
    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.MissingM ethodException: Method not found:
    'Void System.Web.Http Response.Transm itFile(System.S tring, Int64, Int64)'.
    >
    Source Error:
    >
    An unhandled exception was generated during the execution of the current
    web request. Information regarding the origin and location of the
    exception can be identified using the exception stack trace below.
    >
    Stack Trace:
    >
    >
    [MissingMethodEx ception: Method not found: 'Void
    System.Web.Http Response.Transm itFile(System.S tring, Int64, Int64)'.]
    Project.Downloa d.Page_Load(Obj ect sender, EventArgs e) +0
    System.Web.UI.C ontrol.OnLoad(E ventArgs e) +99
    System.Web.UI.C ontrol.LoadRecu rsive() +47
    System.Web.UI.P age.ProcessRequ estMain(Boolean
    includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1061
    >
    >
    >
    >
    --------------------------------------------------------------------------------
    >
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
    ASP.NET Version:2.0.507 27.42
    >
    >
    This overload appears to have been added in version 3.5. So it is not
    available in 2.0.



    Comment

    • Fred

      #3
      Re: Method not found

      Dans : news:%235HVA81f IHA.2004@TK2MSF TNGP05.phx.gbl,
      Mufaka disait :
      Fred wrote:
      >Hello,
      >>
      >I get this strange error in the code of a very simple aspx page just
      >called to download a file.
      >Do you have any idea about it ?
      >(The same code works fine on another server)
      This overload appears to have been added in version 3.5. So it is not
      available in 2.0.
      Yes !
      Thanks a lot Mufaka.
      I didn't think about this at all but yes, I recently installed the 3.5
      version on my development computer and on the server to try VS 2008.
      Unfortunatly, seems Intellisense proposed the 3.5 overload when I was
      using VS 2005 :-(
      Thanks again for this fast answer, I will be very careful now.

      --
      Fred

      Comment

      • David Wier

        #4
        Re: Method not found

        If you want, though, to use any 3.5 features, just change the target version
        to 3.5 in your project.

        David Wier

        http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
        bloated markup


        "Fred" <foleide@libre. francewrote in message
        news:OnVrOg2fIH A.4376@TK2MSFTN GP05.phx.gbl...
        Dans : news:%235HVA81f IHA.2004@TK2MSF TNGP05.phx.gbl,
        Mufaka disait :
        >Fred wrote:
        >>Hello,
        >>>
        >>I get this strange error in the code of a very simple aspx page just
        >>called to download a file.
        >>Do you have any idea about it ?
        >>(The same code works fine on another server)
        >
        >This overload appears to have been added in version 3.5. So it is not
        >available in 2.0.
        >
        Yes !
        Thanks a lot Mufaka.
        I didn't think about this at all but yes, I recently installed the 3.5
        version on my development computer and on the server to try VS 2008.
        Unfortunatly, seems Intellisense proposed the 3.5 overload when I was
        using VS 2005 :-(
        Thanks again for this fast answer, I will be very careful now.
        >
        --
        Fred
        >

        Comment

        Working...