hi leute,

ich hab da so einen code in einem http-handler drinnen:

                                        MyFileStream = new
FileStream(strMapPath, FileMode.Open);
                                        FileSize = MyFileStream.Length;  
                                        byte[] Buffer = new
byte[(int)FileSize];
                                        MyFileStream.Read(Buffer, 0,
(int)FileSize);
                                        MyFileStream.Close();
                                        //Do buffer cleanup
                                        context.Response.Buffer = true;
                                        context.Response.Clear();
                                        //Add the appropriate headers
        
context.Response.AddHeader("content-disposition", "attachement; filename=" +
strDownLoadFileName.ToString());
                                        //Add the right contenttype
                                        context.Response.ContentType =
"application/octet-stream";
                                        //Stream it out
        
context.Response.BinaryWrite(Buffer);


der code liefert mir nun einen fehler:

Access to the path
"d:\inetpub\websites\com\documents\e24ee1ed-59dc-449b-b4d3-257c6b770906_2004
-12-14_XT_SDNeu_TP2_Kick_Off_v1.pdf" is denied


file existiert. was kann es sonst noch sein? haette rechte auf iusr gesetzt.
wenn ich den httphandler deaktiviere kann man das betroffene file
downloaden!


guenther

_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net

Antwort per Email an