Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP cannot create a file on an XP Prof.
Message
General information
Forum:
ASP.NET
Category:
Security
Miscellaneous
Thread ID:
00891569
Message ID:
00891931
Views:
24
Chris,

That does seem strange that the directory is read-only and won't allow you to change that. Have you tried removing yourself from the domain and using the computer stand-alone? Are you logged in as an administrator on that machine?

>Hi Cathi,
>Thanks for the reply.
>Strange, I have those accounts setup for access from both the Active Directory domain and the machine but no go. I just noticed that the directory is flagged as read only. I remove the read only attribute in properties and apply but if I go back, the attribute change dosn't stick. I even deleted the directory and recreated the folder. I can, however, create folders and files within using Windows Explorer.
>I'm not quite sure why I don't get a failed event in my security event log.
>
>
>>Hi Chris,
>>
>>XP Prof should be working. Try writing to a directory below your vroot of your app. Give this directory permissions to the ASPNET account.
>>
>>>My asp.net app uses System.IO.File.Create(C:\XXXX) to create a file.
>>>This works fine with Win 2000 Svr. but I'm not crashes XP prof.
>>>I have given the aspnet and network service accounts unlimited access to the directory where I want to write but it keep getting denied.
>>>Also, I don’t get a failure audit in the event log. Just a crash in .NET.
>>>
>>>Any ideas?
>>>
>>>Thanks,
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform