Permission problem for the file.
-
Hi All, In my asp.net 2005 application I tried to read and write to an html file. But I got the error message as follows. Server Error in '/BW' Application. -------------------------------------------------------------------------------- Access to the path 'c:\inetpub\wwwroot\BW\Msg.htm' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. I found the solution in google is that select the properties of the 'Msg.htm' and give permissions to the account ASP.NET from the security tab. But when i selected the properties of that file, there is no security tab. Can you please tell me why it happened? I am using Windows XP Professional version 2002 with the service pack 2 Thanks and regards, Hogan
-
Hi All, In my asp.net 2005 application I tried to read and write to an html file. But I got the error message as follows. Server Error in '/BW' Application. -------------------------------------------------------------------------------- Access to the path 'c:\inetpub\wwwroot\BW\Msg.htm' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. I found the solution in google is that select the properties of the 'Msg.htm' and give permissions to the account ASP.NET from the security tab. But when i selected the properties of that file, there is no security tab. Can you please tell me why it happened? I am using Windows XP Professional version 2002 with the service pack 2 Thanks and regards, Hogan
Open Explorer, go to "Tools" -> Folder Options. On the "View" tab scroll down in the list and uncheck the "Use simple file sharing (Recommended)" option. The Security tab will now be available.
Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy
-
Open Explorer, go to "Tools" -> Folder Options. On the "View" tab scroll down in the list and uncheck the "Use simple file sharing (Recommended)" option. The Security tab will now be available.
Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy
Hi Mircea, Thanks for reply. I tried your solution. But still only "General" tab for the file properties. Can you please help me? Thanks and regards, Hogan
-
Hi Mircea, Thanks for reply. I tried your solution. But still only "General" tab for the file properties. Can you please help me? Thanks and regards, Hogan
Are you logged as an Administrator? You need to have admin privileges.
Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy
-
Are you logged as an Administrator? You need to have admin privileges.
Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy
Yes I logged as computer adminstrator. Thanks and regards, Hogan
-
Yes I logged as computer adminstrator. Thanks and regards, Hogan
Is your C drive NTFS? It needs to be because permissions can only be set on NTFS volumes. If it is then you probably have some policies that prevent the display. Check to see if you have this registry key: Hive: HKEY_CURRENT_USER Key: Software\Microsoft\windows\CurrentVersion\Policies\Explorer Name: Nosecuritytab Type: REG_DWORD Value: 1 If you do then set the value to 0 or delete the key. If you still have problems it might be that your computer is installed in a Workgroup. Check this kb article[^]
Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy
-
Is your C drive NTFS? It needs to be because permissions can only be set on NTFS volumes. If it is then you probably have some policies that prevent the display. Check to see if you have this registry key: Hive: HKEY_CURRENT_USER Key: Software\Microsoft\windows\CurrentVersion\Policies\Explorer Name: Nosecuritytab Type: REG_DWORD Value: 1 If you do then set the value to 0 or delete the key. If you still have problems it might be that your computer is installed in a Workgroup. Check this kb article[^]
Cheers, Mircea "Pay people peanuts and you get monkeys" - David Ogilvy
The registery seems ok. Thanks for that article. I will try that. Thanks and regards, Hogan