Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Method not found

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred - 06 Mar 2008 07:43 GMT
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

Signature

Fred

Mufaka - 06 Mar 2008 07:52 GMT
> Hello,
>
[quoted text clipped - 35 lines]
> 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/library/system.web.httpresponse_methods.aspx
http://msdn2.microsoft.com/en-us/library/system.web.httpresponse_methods(VS.80).aspx
Fred - 06 Mar 2008 08:57 GMT
Dans : news:%235HVA81fIHA.2004@TK2MSFTNGP05.phx.gbl,
Mufaka disait :
>> 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.

Signature

Fred

David Wier - 06 Mar 2008 15:01 GMT
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

> Dans : news:%235HVA81fIHA.2004@TK2MSFTNGP05.phx.gbl,
> Mufaka disait :
[quoted text clipped - 15 lines]
> using VS 2005 :-(
> Thanks again for this fast answer, I will be very careful now.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.