Jump to content
Xtreme .Net Talk

srivalli9

Members
  • Posts

    3
  • Joined

  • Last visited

srivalli9's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, When asp.net worker process or application pool recycles, is it guaranteed that the Session_End event fires for all active sessions? [bTW, I'm using In-Proc session mode, Win2003 server and IIS6.0] Any help is greatly appreciated. Thanks in advance. Srivalli.
  2. Hi, I have written a Windows Service. This has a "FileSystemWatcher" component in it whose path is set to a network folder. [Ex: \\someNetworkMachineName\Folder1\] This basically fires an event when the content of the network folder are modified. But after I installed the service and tried to start the service, I got the "invalid path" error. Please note that everything works fine if I replace the path to a network folder with that of a local folder. Any help is greatly appreciated. Thank you Srivalli.
  3. I'm trying to open .mht files in an iframe in IE 6.0.2800. trdiay, I have exactly the same problem. I'm trying to open .mht files in an iframe in IE 6.0.2800. I would really appreciate if you can let me know if you could solve it so it works in 6.0.2800 also. Thanks in advance. -Srivalli. /////////////////////////////////////////////////////////// Following is a detailed explanation of my problem... /////////////////////////////////////////////////////////// I have a PDF file and a MHT file. Following is the code I'm using to read the file and display it INLINE in the browser. PageData is a MemoryStream object that contains the file's actual stream of bytes. ---------------------------- PDF files ---------------------------- Response.ContentType = "application/pdf"; Response.AddHeader("Content-Type", "application/pdf"); Response.AddHeader("content-disposition", "inline;filename=file.pdf"); PageData.WriteTo(Response.OutputStream); ---------------------------- MHT files ---------------------------- Response.ContentType = "message/rfc822"; Response.AddHeader("Content-Type", "message/rfc822"); Response.AddHeader("content-disposition", "inline;filename=file.mht"); PageData.WriteTo(Response.OutputStream); Using the above code, I can successfully view the PDF files, but NOT MHT files. For MHT files, Blank IE window appears and the "View Source" displays the following HTML. ---- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> ---- Please note that I can view both PDF and MHT files successfully as attachments, as opposed to being inline. i.e., Response.AddHeader("content-disposition", "attachment;filename=file.mht"); works absolutely fine. I'm wondering if MHT files can be viewed inline at all. If yes, please let me know where I'm doing it wrong.
×
×
  • Create New...