Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Do you know why I am getting this error please?

Access to the path "c:\inetpub\wwwroot\Farshad\ASP.NET\DSL\ctcUsers.xml" is denied.

 

It happens when running

doc.Save(strPath & "\ctcUsers.xml")

Thanks

Farshad
  • *Experts*
Posted

Ah yes, I've had a lot of trouble with this error. If messing with

the user permissions doesn't help, there is another (more

awkward) way that works. It seems that permissions won't let

you overwrite the file if the ASP.NET didn't create it to begin with.

 

To overcome this, set a breakpoint on the doc.Save line. When

this is reached, delete the original file, then continue the code.

The new file will be saved, and then it can be overwritten by the

app.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • *Experts*
Posted

No, you only need to do this once for the file. After that, the

ASP.NET app will have the proper permissions to overwrite the

file, since it created the file in the first place.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted

I have the same problem, and I tried it. It doesn't work.

 

When trying to create a new file it keeps coming back with :

 

Additional information: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path "c:\inetpub\wwwroot\WitteEzel\xml files\test.xml" is denied.

Posted

I am running xp pro.

Go to windows explorer.

Tools, folder options. At the very buttom of the list in the view tab make sure the item which says something like simple sharing (recommended) is unchecked.

Farshad

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...