By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Method not found

P: n/a
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.HttpResponse.TransmitFile(System.String , 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.MissingMethodException: Method not found:
'Void System.Web.HttpResponse.TransmitFile(System.String , 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:
[MissingMethodException: Method not found: 'Void
System.Web.HttpResponse.TransmitFile(System.String , Int64, Int64)'.]
Project.Download.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42
--
Fred

Mar 6 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.HttpResponse.TransmitFile(System.String , 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.MissingMethodException: Method not found:
'Void System.Web.HttpResponse.TransmitFile(System.String , 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:
[MissingMethodException: Method not found: 'Void
System.Web.HttpResponse.TransmitFile(System.String , Int64, Int64)'.]
Project.Download.Page_Load(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

This overload appears to have been added in version 3.5. So it is not
available in 2.0.

http://msdn2.microsoft.com/en-us/lib...e_methods.aspx
http://msdn2.microsoft.com/en-us/lib...ds(VS.80).aspx
Mar 6 '08 #2

P: n/a
Dans : news:%2****************@TK2MSFTNGP05.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

Mar 6 '08 #3

P: n/a
If you want, though, to use any 3.5 features, just change the target version
to 3.5 in your project.

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"Fred" <fo*****@libre.francewrote in message
news:On**************@TK2MSFTNGP05.phx.gbl...
Dans : news:%2****************@TK2MSFTNGP05.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

Mar 6 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.