I have a very basic requirement to have a staging environment for my application. I have Created the subdomain as instructed in this url: http://www.altafkhatri.com/Technical/Configure/How-to-publish-or-host-subdomain-on-Winhostcom/Solution-resolution I have Created the \Stage subdirectory and Added Anonymous access and disabled all authentication. I have also tried with a replica of my application in the folder and deleting all contents with the same prompt. Why is this so difficult on this hosting provider? I've search the forum and nobody seems to have been too successful with this. Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
You might want to review this link: http://forums.asp.net/t/1260071.aspx/1 Your answer might be in the last post of the thread.
So based on that post, I removed my forms authentication from my Web.config and now I can access the Stage subfolder. But now there is no security on my website. I still want to enable authentication how can I do this? Is there a better value for deny users? Here is the troublesome entry in my root web.config <authentication mode="Forms"> <forms name="MyCookie" loginUrl="Login.aspx" protection="All" timeout="90" slidingExpiration="true"></forms> </authentication> <authorization> <deny users="?" /> </authorization>
Using the location tag worked for me. http://stackoverflow.com/questions/1354185/how-do-i-grant-anonymous-access-to-a-url- using-formsauthentication