Thursday, 20 September 2012
How I solved 'permission to view' issue after publishing my website with git to windows Azure website
I published my website (MVC 3.0) with git to Azure for the first time. when I browsed my website I got the following message:
You do not have permission to view this directory or page.
After spending an hour. I tried to publish it with .net by using publish profile. After following the publish steps.I noticed that in the preview tab. It returns an error when you click on preview. I had broken js file in my solution.after removing that. everything works fine.
My solution for you if you got the same error
1- Build your solution in release mode.
2- Try to publish it with using publish option of project then check if you can preview all the files.