Create Doc File Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baburk
    New Member
    • Oct 2006
    • 111

    Create Doc File Error

    An exception of type 'System.IO.Dire ctoryNotFoundEx ception' occurred in mscorlib.dll but was not handled in user code

    Additional information: Could not find a part of the path 'E:\pdf\cc.fdf' .

    This exception occurs at line 2.

    When I went and go to the folder E:\pdf it shows it is read only.


    1. Response.Conten tType = "Applicatio n/vnd.doc";
    2. Response.WriteF ile(@"E:\pdf\cc .doc");
    3. Response.End();

    May I know why is changed to readonly and why the exception occurs.

    Thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    The error message suggests you have not specified th file path correctly. Check for any spelling mistake.

    Comment

    • baburk
      New Member
      • Oct 2006
      • 111

      #3
      The path and the spelling are correct.

      When I compile the directory is changed as readonly.

      That's why it can't able to create file.

      Comment

      Working...