Question

in this code iam trying to save text document on server / wwwroot folder. nothing happens :(!

if i am working on localhost and doing the same routine like this, everything works fine and i can save text document on local pc.:

Was it helpful?

Solution

If the same code works in your Dev machine and not working in Production, It should be folder Permission issue. I guess you have to change the folder permissions in server so that ASP.NET can write to that directory.

Checkout this link which explains how to do that.

Make sure you are not giving Write/Modify Permission to "Everyone"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top