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. XML

XML

Scheduled Pinned Locked Moved ASP.NET
comsysadminxmlhelpquestion
5 Posts 3 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.
  • K Offline
    K Offline
    kirthikirthi
    wrote on last edited by
    #1

    HI all I am trying to insert data into XML by programetically It is working fine in local system But when i upload to server it is giving this error "Access to the path "D:\inetpub\ftproot\dsolusys.com\Data.xml" is denied." Why it is giving like this Any idea ?

    asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

    M 1 Reply Last reply
    0
    • K kirthikirthi

      HI all I am trying to insert data into XML by programetically It is working fine in local system But when i upload to server it is giving this error "Access to the path "D:\inetpub\ftproot\dsolusys.com\Data.xml" is denied." Why it is giving like this Any idea ?

      asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Security, security, security. The user account under which the ASP.NET process runs on the server would need permission to access that path. Here's a link[^] that may be useful.

      K 1 Reply Last reply
      0
      • M Mike Ellison

        Security, security, security. The user account under which the ASP.NET process runs on the server would need permission to access that path. Here's a link[^] that may be useful.

        K Offline
        K Offline
        kirthikirthi
        wrote on last edited by
        #3

        HI Thx for reply I tryed THE CODE Still it is giving the SAME error

        asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

        C 1 Reply Last reply
        0
        • K kirthikirthi

          HI Thx for reply I tryed THE CODE Still it is giving the SAME error

          asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

          C Offline
          C Offline
          cloudking11966
          wrote on last edited by
          #4

          Hi First of all put your XML file under the virtual directory for example you have a virtual directory maped to a specific folder named "Test" Then put the XML file under "Test" directory and instead of giving the path like D:/data/.... give path=Server.MapPath("xmlFileName.xml") it must work!!! :suss: ------------ Boss said, develop in J2EE or better, so done in .NET ------------

          K 1 Reply Last reply
          0
          • C cloudking11966

            Hi First of all put your XML file under the virtual directory for example you have a virtual directory maped to a specific folder named "Test" Then put the XML file under "Test" directory and instead of giving the path like D:/data/.... give path=Server.MapPath("xmlFileName.xml") it must work!!! :suss: ------------ Boss said, develop in J2EE or better, so done in .NET ------------

            K Offline
            K Offline
            kirthikirthi
            wrote on last edited by
            #5

            Hi THX I got it

            asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

            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