473,394 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.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
3 8867
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
/*-------------------------------------------------------------------------------------------------------------------------------- Parameters: $formField1: The name of the first array $formField2:...
4
by: Ruud de Jong | last post by:
The question I have is: how safe / future proof / portable is the use of the __subclasses__ method that exists for new-style classes? Background: I thought I had found an easy-to-understand...
0
by: scorpion | last post by:
This question is more XML Security (and specifically, on the Apache XML security implementation). When I sign or open signed XML document, I see the following warning: .... WARNING: Found an...
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
18
by: JohnR | last post by:
From reading the documentation, this should be a relatively easy thing. I have an arraylist of custom class instances which I want to search with an"indexof" where I'm passing an instance if the...
2
by: sianan | last post by:
I am having a problem doing the following in generics. I have two list of a custom item type. I need to iterate through the first list and match each item against another list to see if there is...
4
by: ddtl | last post by:
Hello everybody. Consider the following code: class A(object): def met(self): print 'A.met' class B(A): def met(self):
1
by: Jan | last post by:
When I use Type.InvokeMember from my remoting server object I get a MissingMethodException: "Method '<namenot found.". My code works when the code is called normally, but not when executed from...
0
by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?= | last post by:
"Anders Borum" wrote: Hi Anders, I'm afraid the GetMethod() does not currently support filtering on generic parameters so you will have to loop through the existing methods using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.