Method not found

F

Fred

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
 
M

Mufaka

Fred said:
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
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/library/system.web.httpresponse_methods.aspx
http://msdn2.microsoft.com/en-us/library/system.web.httpresponse_methods(VS.80).aspx
 
F

Fred

Dans : Mufaka disait :
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top