Write access on roothttp://forums.asp.net/t/1802534.aspx/1?Write+access+on+rootMon, 14 May 2012 18:28:08 -040018025344975462http://forums.asp.net/p/1802534/4975462.aspx/1?Write+access+on+rootWrite access on root <p>I would like users to be able to create a sitemap.xml file on the fly and store it in the root. &nbsp;I don't really want to give write permissions on the root folder.&nbsp;</p> <p>Is there a way to do this?</p> 2012-05-10T22:59:06-04:004975474http://forums.asp.net/p/1802534/4975474.aspx/1?Re+Write+access+on+rootRe: Write access on root <p>Instead of creating sitemap.xml files pr. user it would probably be a better idea to implement a sitemap provider reading i.e. from a database.</p> <p></p> <p>When implementing af sitemap provider you can easily vary the content based on how is logged in.</p> <p>You can find a basic example for a sitemapprovider giving a static sitemap <a href="http://www.codeproject.com/Articles/96461/Building-a-Custom-Site-Map-Provider"> here</a></p> 2012-05-10T23:32:03-04:004975523http://forums.asp.net/p/1802534/4975523.aspx/1?Re+Write+access+on+rootRe: Write access on root <p>Thanks. &nbsp;I was referring to a google sitemap.xml file that is generated based on URLs that are generated from a SQL Server database. &nbsp;I have a stored proc that basically returns records containing</p> <p>loc<br> lastmod<br> changefreq<br> priority&nbsp;</p> 2012-05-11T00:39:33-04:004975532http://forums.asp.net/p/1802534/4975532.aspx/1?Re+Write+access+on+rootRe: Write access on root <p>hi there,<br> <br> based on your requirement, you have to always give the write permission to generate the intended sitemap.xml. <br> <br> Please mark this response as an &quot;answer&quot; if it helps you. Thanks heaps!<br> <br> </p> 2012-05-11T01:03:05-04:004980338http://forums.asp.net/p/1802534/4980338.aspx/1?Re+Write+access+on+rootRe: Write access on root <p></p> <blockquote><span class="icon-blockquote"></span> <h4>necro_mancer</h4> based on your requirement, you have to always give the write permission to generate the intended sitemap.xml. </blockquote> <p></p> <p></p> <p>I agree with necro_mancer. You can use the <a href="http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx" target="_blank"> location element</a> to provide the permissions specifically</p> 2012-05-14T18:24:57-04:004980339http://forums.asp.net/p/1802534/4980339.aspx/1?Re+Write+access+on+rootRe: Write access on root <p>I ended up rendering the file on the fly using&nbsp;FileStreamResult. &nbsp;Sitemap.xml or sitemap.xml.gz can always be found even though it doesn't really exist as a static file.</p> 2012-05-14T18:28:08-04:00