Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help me please

Help me please

Scheduled Pinned Locked Moved ASP.NET
help
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zeeshan Ahmed Memon
    wrote on last edited by
    #1

    Dear Friends I am trying to load a file by filestream but when i write then command file=new filestream(filepath,filemode.create) its gives me the error "Access to the path is denied". Please Help me

    C E 2 Replies Last reply
    0
    • Z Zeeshan Ahmed Memon

      Dear Friends I am trying to load a file by filestream but when i write then command file=new filestream(filepath,filemode.create) its gives me the error "Access to the path is denied". Please Help me

      C Offline
      C Offline
      chandler83
      wrote on last edited by
      #2

      I am not sure but this can help... can you please make sure that ASPNET user account have appropriate access rights to the file?

      S 1 Reply Last reply
      0
      • C chandler83

        I am not sure but this can help... can you please make sure that ASPNET user account have appropriate access rights to the file?

        S Offline
        S Offline
        sulabh2020
        wrote on last edited by
        #3

        Dear try to upload in Binary format, while using filestream..

        Hello Forum Always be in touch to help about the topic ASP.NET

        1 Reply Last reply
        0
        • Z Zeeshan Ahmed Memon

          Dear Friends I am trying to load a file by filestream but when i write then command file=new filestream(filepath,filemode.create) its gives me the error "Access to the path is denied". Please Help me

          E Offline
          E Offline
          Elayaraja Sambasivam
          wrote on last edited by
          #4

          By default the asp.net application will work under aspnet user rights. aspnet user don't have rights to create files in the hard drive. if you want to write files in the server, you can go one of follwing way. 1. share the path, give the rights to every one. write the file in this shared folder. 2. give the admin rights to the asp.net (it's worst case, nobody accept). 3. User impersonation. - search asp.net impersonation for more info. Regards Elayaraja.S

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups