473,387 Members | 1,481 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,387 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 8866
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.