Browsing To .ASHX Files On Windows Phone 7/Can't Download File
Dec 2, 2010
We have a whole bunch of WML pages that are served out using ASHX files and we've had no problems with them. However, someone has just got a Windows 7 Phone and when they browse to one of these pages they get:
Can't download file! Windows Phone doesn't support .ashx files Is there some IIS configuration that we need to do to make this work?
I am developing winodws phone application. I need to download and open a file when click "Download File".i have done this in asp.net by using the follwoing code.. it's working fine in asp.net.BUT, I need the same functionality in WINDOWS PHONE 7.
In a basic scenario where I have a GridView with files to download and link buttons to download them, is there any benefit at all for creating a custom http handler for streaming those files as opposed to simply streaming from the event handler of the download link button?
Edit: As some suggested code reuse would favor the handler, however it's not an issue in this particular case. The handler is also faster being that it avoids the page life cycle, however this slight performance improvement is probably not worth creating a handler for in my particular situation. The only thing that comes to mind now is (assuming using the same aspx page approach) whether there is any special consideration in a situation where the GridView is inside an UpdatePanel?
I have a simple 'file download' generic handler which sets the response contenttype and headers before sending the file through the same response.
I also have Response.Cache.SetCacheability(HttpCacheability.server) set in the global.asax.
As I have noticed from various sources, Internet Explorer doesn't like this no-cache setting and gives an error when trying to download the file (requested site unavailable or cannot be found).
I thought maybe I could override this setting in the .ashx page, so I alter the response's cacheability setting to public. This did not solve the issue. removing the line from global.asax does solve the problem but obviously affects the whole site.
Is there a way of setting the cachability just for my generic handler?
implemented a generic handler in my application which works great for images, but when I manually type the handler URL in the browser with the image's querystring it prompts download instead of displaying. Here is my code:
public void ProcessRequest(HttpContext context) { if (this.FileName != null) {
I am trying to develop an application to do file transfer between 2 WIN Phone 7 through 3G.How can we accomplish this task?Is there any msdn articles available for this?
There are three serves on the same zone. 172..*.**
Suppose that their names are A,B and C
The server A has a windows service, and it downloads the files from the server of C, in the folder of images. It used to give errors about access-denied then we assign full control to everyone on the folder of images on the server C. Then it was ok.
Now the same windows service runs on the server B, and ,t gets the same things from images folder of the server C. But there is an error about access-denied.
What should I do for the required steps to make the server B be able to connect the server C and download the files?
**The error: Exception:Access to the path '172..*.images' is denied.
I have made an application where I am displaying the .pdf , .doc , .docx files. These files are uploading from an Admin Panel.When user place a mouse pointer on download icon provided in front of every file, it shows the complete path where it’s get saved.I want to avoid this path visibility even when user place mouse on download icon and even if it Inspect an element (as most modern browser will have this functionality).
Is it possible to take 10 (or more or less) pdf files in a directory and merge them into a single PDF file to display to the user? Obviously I would prefer to not pay for something if I don't have to
I'm working in ASP.NET 4.0 with C# in the code behind.
I am using ashx to serve images from a database, is there anyway to have a user click on a link that allows them to download the file on the computer. (IE it shows the Save Dialog) Like you download a file.
I was following this tutorial and it worked perfectly: [URL] ....
I was wondering how do I archive this: the file name will be a link button (or whatever the best way is) and when click on the name, it will download the file (instead of haing an additonal "Download" column)?
I have been reading about adding a webservice to an MVC project and how this might conflict with the MVC structure. I added a webservice and it works with windows phone 7, it receives a number, (it's a simple application). I added the webservice by right clicking the Controller folder and selecting add new item->webservice. I am using the SOAP support already integrated in visual studio. I was wondering if there is a way that instead of adding a webservice that the windows phone 7 receives and sends data directly to the controller. The windows phone 7 communicates by right clicking on the solution explorer and adding a service reference.
I have one .xamel page and this one is default page (first page) and then I added a new one page (named page2.xaml) in same solution. I added a button on the firs page and i want to navigate to a second page when i click on button
I am running a web-site with simple .aspx files on a standalone workgroup Windows Server 2008 called 'Max'.I had assumed that the .aspx files were accessed by the 'Network Service' account.The application pool for the website is running with 'Network Service' as the process account.I was puzzled, since 'Network Service' had no permission on these files. So I added event level auditing to the files, and I was suprised to learn that the .aspx files were being accessed by an account called Max$ (ie the computer account).this correct ?Why is the Network Service account not being used ??
I have ASP.NET page with an iframe on it for displaying some pdf reports on this page. When user select the report type from dropdown, I add the needed for report data into the ASP.NET Session and change the attribute "src" of the iframe to .ashx module address which generates the .pdf report.But if Adobe glug-in for viewing .pdf files in browser is not installed, browser proposes to save report file and name of the proposed file is "HandlerName.ashx".But I want to make the browser proposed to save the file with the name "Report.pdf".
I'm looking much more closely at the idea of universal conventions over configuration for my projects (versus 'home-rolled' conventions, or grabbing from a variety of conventions).However, I'm not seeing much, if anything, about the preferred location of ASHX files in, for example, ASP.NET MVC projects (as well as Web forms projects).
Is there a recommended directory structure for these? Perhaps there's a published specification with a much larger directory structure accounted for?My personal convention has been to place these within a top-level Handlers directory, but I honestly haven't personally seen any other projects that really do this.I suppose, depending upon what it does (for example, generating an image), that one could argue this might go into the Content directory, but it seems this directory is generally used for static files.(Aside: One could argue that ASHX files are not needed in MVC projects, but based on questions posted here, it appears ASHX files still have their place in MVC projects.)EDIT: Ignore MVC projects, since I'm suggesting that as one example. How about Web Forms, then?
i want to build a custom control using javascript on client side and ashx on server side.
I know about SWFUpload, how can i configure it with ashx on server side.
any tutorial how i can use FLASH objects to transfer files from client to server. i been looking for such tutorial for a while that uses flash object on client side and sends file info using bytes array to the server. also i want to reduce the size of the file on the client side before sending to safe bandwidth.
basically my client side is pure HTML/CSS/Jquery and Javascript using Ajax and my server side is ASP.NET with C# and most ASHX
"Due to the organizational restructuring of the team that developed and supported the Mobile Device Browser file, we will no longer have the resources to support and update this CodePlex project. The team will be providing two more releases - one on the 27th July 2010 and the final release on the 24th August 2010. who used our product over the past year and a half. We would also like to thank everyone who contributed to the discussions and raised issues on our data."
Does this project live on someplace else or is there an equivelent project?
I've setup this <asp:FormView> to read from an XML file which I created, however I noted that although the .xml file has two <article> </article> tags, the data control (FormView) only displays the first item when enabling pages.Is this a bug or am I missing something out?Source code vailable here.NOTES 1. XML file is valid according to this page., although, I still have to find out an appropriate XSLT format