iis security:
I have IIS 5.1 installed in my Windows XP pro, when my web appilcation is try to create a folder in the wwwrootl dir, it cannot do it so I get an exception error. How can I give full perimsiion to the web application so that it can write to the wwwroot dir? If I create a folder myself in the wwwroot, it is OK???, but the application cannot. Also when I right-click in the application to get to the properties I cannot give that application write permissions, it keeps coming back to read default??? I please need suggestion and help.
Thank Jason, i will try your suggestion and will let you know the outcome. Joe [quoted text, click to view] "Jason Brown [MSFT]" wrote: > you need to check the NTFS permissions of the wwwroot folder. for an > anonymous web application to create a folder, the IUSR_ServerName account > needs write access. check these with WIndows Explorer - right click the > folder, get properties and go to the security tab. > > If you don't have a security tab, and you're running Windows XP, you need to > turn off simple file sharing - under tools->folder options > > > -- > Jason Brown > Microsoft GTSC, IIS > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message > news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... > >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation is > >try > > to create a folder in the wwwrootl dir, it cannot do it so I get an > > exception > > error. > > How can I give full perimsiion to the web application so that it can write > > to the wwwroot dir? > > If I create a folder myself in the wwwroot, it is OK???, but the > > application > > cannot. Also when I right-click in the application to get to the > > properties I > > cannot give that application write permissions, it keeps coming back to > > read > > default??? > > I please need suggestion and help. > > Thank you. > >
you need to check the NTFS permissions of the wwwroot folder. for an anonymous web application to create a folder, the IUSR_ServerName account needs write access. check these with WIndows Explorer - right click the folder, get properties and go to the security tab. If you don't have a security tab, and you're running Windows XP, you need to turn off simple file sharing - under tools->folder options -- Jason Brown Microsoft GTSC, IIS This posting is provided "AS IS" with no warranties, and confers no rights. [quoted text, click to view] "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation is >try > to create a folder in the wwwrootl dir, it cannot do it so I get an > exception > error. > How can I give full perimsiion to the web application so that it can write > to the wwwroot dir? > If I create a folder myself in the wwwroot, it is OK???, but the > application > cannot. Also when I right-click in the application to get to the > properties I > cannot give that application write permissions, it keeps coming back to > read > default??? > I please need suggestion and help. > Thank you.
Jason; I tried what you told me below and did not work. I turned off the sharing permissions and still a problem. I have a same application in /My Documents/Visual Studio Projects and it works there, but it does not want to work in the /Inetput/wwwroot folder??. I even checked the properties and compared them and is the same???. What should I do next. How do you give write permissions to IUSR_ServerName account? Thank you for your Help. Joe [quoted text, click to view] "Jason Brown [MSFT]" wrote: > you need to check the NTFS permissions of the wwwroot folder. for an > anonymous web application to create a folder, the IUSR_ServerName account > needs write access. check these with WIndows Explorer - right click the > folder, get properties and go to the security tab. > > If you don't have a security tab, and you're running Windows XP, you need to > turn off simple file sharing - under tools->folder options > > > -- > Jason Brown > Microsoft GTSC, IIS > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message > news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... > >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation is > >try > > to create a folder in the wwwrootl dir, it cannot do it so I get an > > exception > > error. > > How can I give full perimsiion to the web application so that it can write > > to the wwwroot dir? > > If I create a folder myself in the wwwroot, it is OK???, but the > > application > > cannot. Also when I right-click in the application to get to the > > properties I > > cannot give that application write permissions, it keeps coming back to > > read > > default??? > > I please need suggestion and help. > > Thank you. > >
Hi Jason; Ok, let me try again and follow your suggestions carefully and will let you know. Thank you for your help. Joe [quoted text, click to view] "jaz2003" wrote: > Jason; > I tried what you told me below and did not work. I turned off the sharing > permissions and still a problem. I have a same application in /My > Documents/Visual Studio Projects and it works there, but it does not want to > work in the /Inetput/wwwroot folder??. > I even checked the properties and compared them and is the same???. What > should I do next. How do you give write permissions to IUSR_ServerName > account? > > Thank you for your Help. > Joe > > "Jason Brown [MSFT]" wrote: > > > you need to check the NTFS permissions of the wwwroot folder. for an > > anonymous web application to create a folder, the IUSR_ServerName account > > needs write access. check these with WIndows Explorer - right click the > > folder, get properties and go to the security tab. > > > > If you don't have a security tab, and you're running Windows XP, you need to > > turn off simple file sharing - under tools->folder options > > > > > > -- > > Jason Brown > > Microsoft GTSC, IIS > > > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > > > > "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message > > news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... > > >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation is > > >try > > > to create a folder in the wwwrootl dir, it cannot do it so I get an > > > exception > > > error. > > > How can I give full perimsiion to the web application so that it can write > > > to the wwwroot dir? > > > If I create a folder myself in the wwwroot, it is OK???, but the > > > application > > > cannot. Also when I right-click in the application to get to the > > > properties I > > > cannot give that application write permissions, it keeps coming back to > > > read > > > default??? > > > I please need suggestion and help. > > > Thank you. > > > >
As I outlined earlier, through windows explorer, go the the folder's properties dialog, get the security tab and add the perms (add button, write int he account name and hit 'check names' to make sure it's the right account). You'll see the differtn types of permissions you can add in the lower panel. My machine has a group for 'web anonymous users' which might be easier for you - if you're running XP SP2. as it works in different folders, you'll want to examine exactly what you're doing differently. I suspect in the Visual Studio instance you're running under your local logged-in user account, NOT the anonymous account. -- Jason Brown Microsoft GTSC, IIS This posting is provided "AS IS" with no warranties, and confers no rights. [quoted text, click to view] "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message news:6DBA0D9F-A61D-4DAC-A795-E6545CCA0847@microsoft.com... > Jason; > I tried what you told me below and did not work. I turned off the sharing > permissions and still a problem. I have a same application in /My > Documents/Visual Studio Projects and it works there, but it does not want > to > work in the /Inetput/wwwroot folder??. > I even checked the properties and compared them and is the same???. What > should I do next. How do you give write permissions to IUSR_ServerName > account? > > Thank you for your Help. > Joe > > "Jason Brown [MSFT]" wrote: > >> you need to check the NTFS permissions of the wwwroot folder. for an >> anonymous web application to create a folder, the IUSR_ServerName account >> needs write access. check these with WIndows Explorer - right click the >> folder, get properties and go to the security tab. >> >> If you don't have a security tab, and you're running Windows XP, you need >> to >> turn off simple file sharing - under tools->folder options >> >> >> -- >> Jason Brown >> Microsoft GTSC, IIS >> >> This posting is provided "AS IS" with no warranties, and confers no >> rights. >> >> >> "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message >> news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... >> >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation >> >is >> >try >> > to create a folder in the wwwrootl dir, it cannot do it so I get an >> > exception >> > error. >> > How can I give full perimsiion to the web application so that it can >> > write >> > to the wwwroot dir? >> > If I create a folder myself in the wwwroot, it is OK???, but the >> > application >> > cannot. Also when I right-click in the application to get to the >> > properties I >> > cannot give that application write permissions, it keeps coming back to >> > read >> > default??? >> > I please need suggestion and help. >> > Thank you. >> >> >>
Hi Jason; Thank you for your help, I finally got it working with your guuidance, I was following your previous message but finally I realized that in the "Folder Options" I did not have an instance of ASPNET created for that application, so as soon as added it and gave write permissions, I was able to write from the application to the wwwroot folder. It was nice to see it working. Again thank you very much. Question: Why do you say below that with the group is eaiser??, it is better to have it setup like yours? thanks. Joe. [quoted text, click to view] "Jason Brown [MSFT]" wrote: > As I outlined earlier, through windows explorer, go the the folder's > properties dialog, get the security tab and add the perms (add button, write > int he account name and hit 'check names' to make sure it's the right > account). You'll see the differtn types of permissions you can add in the > lower panel. > > My machine has a group for 'web anonymous users' which might be easier for > you - if you're running XP SP2. > > as it works in different folders, you'll want to examine exactly what you're > doing differently. I suspect in the Visual Studio instance you're running > under your local logged-in user account, NOT the anonymous account. > > > -- > Jason Brown > Microsoft GTSC, IIS > > This posting is provided "AS IS" with no warranties, and confers no > rights. > > > "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message > news:6DBA0D9F-A61D-4DAC-A795-E6545CCA0847@microsoft.com... > > Jason; > > I tried what you told me below and did not work. I turned off the sharing > > permissions and still a problem. I have a same application in /My > > Documents/Visual Studio Projects and it works there, but it does not want > > to > > work in the /Inetput/wwwroot folder??. > > I even checked the properties and compared them and is the same???. What > > should I do next. How do you give write permissions to IUSR_ServerName > > account? > > > > Thank you for your Help. > > Joe > > > > "Jason Brown [MSFT]" wrote: > > > >> you need to check the NTFS permissions of the wwwroot folder. for an > >> anonymous web application to create a folder, the IUSR_ServerName account > >> needs write access. check these with WIndows Explorer - right click the > >> folder, get properties and go to the security tab. > >> > >> If you don't have a security tab, and you're running Windows XP, you need > >> to > >> turn off simple file sharing - under tools->folder options > >> > >> > >> -- > >> Jason Brown > >> Microsoft GTSC, IIS > >> > >> This posting is provided "AS IS" with no warranties, and confers no > >> rights. > >> > >> > >> "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message > >> news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... > >> >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation > >> >is > >> >try > >> > to create a folder in the wwwrootl dir, it cannot do it so I get an > >> > exception > >> > error. > >> > How can I give full perimsiion to the web application so that it can > >> > write > >> > to the wwwroot dir? > >> > If I create a folder myself in the wwwroot, it is OK???, but the > >> > application > >> > cannot. Also when I right-click in the application to get to the > >> > properties I > >> > cannot give that application write permissions, it keeps coming back to > >> > read > >> > default??? > >> > I please need suggestion and help. > >> > Thank you. > >> > >> > >> > >
Well, with the group you don't have to worry about confusion between IUSR, IWAM, ASPNET et al.. they just go in. It's not as fine-grained but it works (!) -- Jason Brown Microsoft GTSC, IIS This posting is provided "AS IS" with no warranties, and confers no rights. [quoted text, click to view] "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message news:ECA7E36E-A684-4BA4-81E7-48FAE162E2BC@microsoft.com... > Hi Jason; > Thank you for your help, I finally got it working with your guuidance, I > was > following your previous message but finally I realized that in the "Folder > Options" I did not have an instance of ASPNET created for that > application, > so as soon as added it and gave write permissions, I was able to write > from > the application to the wwwroot folder. It was nice to see it working. > Again > thank you very much. > Question: Why do you say below that with the group is eaiser??, it is > better > to have it setup like yours? > > thanks. > > Joe. > > "Jason Brown [MSFT]" wrote: > >> As I outlined earlier, through windows explorer, go the the folder's >> properties dialog, get the security tab and add the perms (add button, >> write >> int he account name and hit 'check names' to make sure it's the right >> account). You'll see the differtn types of permissions you can add in the >> lower panel. >> >> My machine has a group for 'web anonymous users' which might be easier >> for >> you - if you're running XP SP2. >> >> as it works in different folders, you'll want to examine exactly what >> you're >> doing differently. I suspect in the Visual Studio instance you're running >> under your local logged-in user account, NOT the anonymous account. >> >> >> -- >> Jason Brown >> Microsoft GTSC, IIS >> >> This posting is provided "AS IS" with no warranties, and confers no >> rights. >> >> >> "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message >> news:6DBA0D9F-A61D-4DAC-A795-E6545CCA0847@microsoft.com... >> > Jason; >> > I tried what you told me below and did not work. I turned off the >> > sharing >> > permissions and still a problem. I have a same application in /My >> > Documents/Visual Studio Projects and it works there, but it does not >> > want >> > to >> > work in the /Inetput/wwwroot folder??. >> > I even checked the properties and compared them and is the same???. >> > What >> > should I do next. How do you give write permissions to >> > IUSR_ServerName >> > account? >> > >> > Thank you for your Help. >> > Joe >> > >> > "Jason Brown [MSFT]" wrote: >> > >> >> you need to check the NTFS permissions of the wwwroot folder. for an >> >> anonymous web application to create a folder, the IUSR_ServerName >> >> account >> >> needs write access. check these with WIndows Explorer - right click >> >> the >> >> folder, get properties and go to the security tab. >> >> >> >> If you don't have a security tab, and you're running Windows XP, you >> >> need >> >> to >> >> turn off simple file sharing - under tools->folder options >> >> >> >> >> >> -- >> >> Jason Brown >> >> Microsoft GTSC, IIS >> >> >> >> This posting is provided "AS IS" with no warranties, and confers no >> >> rights. >> >> >> >> >> >> "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message >> >> news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... >> >> >I have IIS 5.1 installed in my Windows XP pro, when my web >> >> >appilcation >> >> >is >> >> >try >> >> > to create a folder in the wwwrootl dir, it cannot do it so I get an >> >> > exception >> >> > error. >> >> > How can I give full perimsiion to the web application so that it can >> >> > write >> >> > to the wwwroot dir? >> >> > If I create a folder myself in the wwwroot, it is OK???, but the >> >> > application >> >> > cannot. Also when I right-click in the application to get to the >> >> > properties I >> >> > cannot give that application write permissions, it keeps coming back >> >> > to >> >> > read >> >> > default??? >> >> > I please need suggestion and help. >> >> > Thank you. >> >> >> >> >> >> >> >> >>
Suddenly, today, I could not access anything on my local web. Not even a static html-page under the wwwroot. I have spent the entire day troubleshooting. I wish there was a button to turn off all the security crap. It drives me nuts. 10 years ago, it was so simple to develop home pages. Why is it suddenly impossible? I can access internet with internet explorer, but not any local pages. What is wrong? [quoted text, click to view] "jaz2003" wrote: > Hi Jason; > Ok, let me try again and follow your suggestions carefully and will let you > know. > Thank you for your help. > > Joe > > "jaz2003" wrote: > > > Jason; > > I tried what you told me below and did not work. I turned off the sharing > > permissions and still a problem. I have a same application in /My > > Documents/Visual Studio Projects and it works there, but it does not want to > > work in the /Inetput/wwwroot folder??. > > I even checked the properties and compared them and is the same???. What > > should I do next. How do you give write permissions to IUSR_ServerName > > account? > > > > Thank you for your Help. > > Joe > > > > "Jason Brown [MSFT]" wrote: > > > > > you need to check the NTFS permissions of the wwwroot folder. for an > > > anonymous web application to create a folder, the IUSR_ServerName account > > > needs write access. check these with WIndows Explorer - right click the > > > folder, get properties and go to the security tab. > > > > > > If you don't have a security tab, and you're running Windows XP, you need to > > > turn off simple file sharing - under tools->folder options > > > > > > > > > -- > > > Jason Brown > > > Microsoft GTSC, IIS > > > > > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > > > > > > > "jaz2003" <jaz2003@discussions.microsoft.com> wrote in message > > > news:158617B6-57AD-4516-98C7-08A09EC08CD5@microsoft.com... > > > >I have IIS 5.1 installed in my Windows XP pro, when my web appilcation is > > > >try > > > > to create a folder in the wwwrootl dir, it cannot do it so I get an > > > > exception > > > > error. > > > > How can I give full perimsiion to the web application so that it can write > > > > to the wwwroot dir? > > > > If I create a folder myself in the wwwroot, it is OK???, but the > > > > application > > > > cannot. Also when I right-click in the application to get to the > > > > properties I > > > > cannot give that application write permissions, it keeps coming back to > > > > read > > > > default??? > > > > I please need suggestion and help. > > > > Thank you. > > > > > >
Don't see what you're looking for? Try a search.
|