Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

How can I allow my website visitors to create text files in ASP.NET?

Posted on March 30, 2010March 31, 2010 by OD

I have Microsoft IIS and I have written a simple ASP.NET application that should allow a user to create a file on my server. I have allowed the Internet User permission to write to my wwwroot folder, but the application still won’t work, it throws an exception saying that access to the path is denied. What else can I do to allow my visitors to create files? Thanks.

Powered by Yahoo! Answers

1 thought on “How can I allow my website visitors to create text files in ASP.NET?”

  1. dhvrm says:
    March 30, 2010 at 5:51 PM

    Any time you see the access to path denied error, that’s usually because you have not properly granted permission to the folder for the process that is actually running ASP.NET. This is often the NETWORK SERVICE account, NOT the ASPNET worker account (WS 2003 and later).

    It is also possible that you are either not changing the name of the file being written, or you are not closing it and destroying the file object before someone else creates it. Only one user at a time can have a file open.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2026 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme

Powered by
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by