locked
HTML page on Web App and Azure RRS feed

  • Question

  • User1293388710 posted

    Hi Dear Friends, 

    I created a web app project in VS2013. My intention is to serve only HTML pages. I do not want to serve up an ASP.NET MVC , or WebForms, just plain HTML and CSS. I have deployed the app to Azure by having created a Web App (my Azure plan is Shared).

    I am using FTP to transfer the files up to Azure. I am currently getting the following result when I ask for the page over a broweer. I get a blank white page, containing the following text; "The page cannot be displayed because an internal server error has occurred."  Here is my web.config file;

    <?xml version="1.0"?>
    <configuration>
    <system.web>
    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5"/>
    <customErrors mode="RemoteOnly"/>
    </system.web>
    <system.webServer>
    <defaultDocument enabled="true">
    <!-- this line enables default documents for a directory -->
    <files>
    <clear/>
    <!-- removes the existing default document list -->
    <add value="default.html"/>
    </files>
    </defaultDocument>
    <modules runAllManagedModulesForAllRequests="true"/>
    </system.webServer>
    </configuration>

    My current domain URL is; http://rosalexprogramming.azurewebsites.net/

    I have turned on sundry logging features inside Azure, and have pasted the contents of evenlog.xml for your review, it is IMPORTANT, so please look at it ;)

    <Events><Event><System><Provider Name="ASP.NET 4.0.30319.0"/><EventID>1309</EventID><Level>2</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2016-01-31T03:47:23Z"/><EventRecordID>248192921</EventRecordID><Channel>Application</Channel><Computer>RD000D3A70601E</Computer><Security/></System><EventData><Data>3005</Data><Data>An unhandled exception has occurred.</Data><Data>1/31/2016 3:47:23 AM</Data><Data>1/31/2016 3:47:23 AM</Data><Data>b4415c7897b34ded8111c5a02f3996aa</Data><Data>1</Data><Data>1</Data><Data>0</Data><Data>/LM/W3SVC/713535672/ROOT-2-130986856437758585</Data><Data></Data><Data>/</Data><Data>D:\home\site\wwwroot\</Data><Data>RD000D3A70601E</Data><Data></Data><Data>7968</Data><Data>w3wp.exe</Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>HttpException</Data><Data>Server cannot access application directory 'D:\home\site\wwwroot\'. The directory does not exist or is not accessible because of security settings.
    at System.Web.HttpRuntime.EnsureAccessToApplicationDirectory()
    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)

    </Data><Data>http://rosalexprogramming.azurewebsites.net/</Data><Data>/</Data><Data>74.178.189.23</Data><Data></Data><Data>False</Data><Data></Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>60</Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>False</Data><Data> at System.Web.HttpRuntime.EnsureAccessToApplicationDirectory()
    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)
    </Data></EventData></Event><Event><System><Provider Name="ASP.NET 4.0.30319.0"/><EventID>1309</EventID><Level>2</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2016-01-31T03:49:23Z"/><EventRecordID>248312812</EventRecordID><Channel>Application</Channel><Computer>RD000D3A70601E</Computer><Security/></System><EventData><Data>3005</Data><Data>An unhandled exception has occurred.</Data><Data>1/31/2016 3:49:23 AM</Data><Data>1/31/2016 3:49:23 AM</Data><Data>73ae4bb99107498882230ff03cba3007</Data><Data>1</Data><Data>1</Data><Data>0</Data><Data>/LM/W3SVC/713535672/ROOT-3-130986857637111322</Data><Data></Data><Data>/</Data><Data>D:\home\site\wwwroot\</Data><Data>RD000D3A70601E</Data><Data></Data><Data>7968</Data><Data>w3wp.exe</Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>HttpException</Data><Data>Server cannot access application directory 'D:\home\site\wwwroot\'. The directory does not exist or is not accessible because of security settings.
    at System.Web.HttpRuntime.EnsureAccessToApplicationDirectory()
    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)

    </Data><Data>http://rosalexprogramming.azurewebsites.net/</Data><Data>/</Data><Data>74.178.189.23</Data><Data></Data><Data>False</Data><Data></Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>57</Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>False</Data><Data> at System.Web.HttpRuntime.EnsureAccessToApplicationDirectory()
    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)
    </Data></EventData></Event><Event><System><Provider Name="ASP.NET 4.0.30319.0"/><EventID>1309</EventID><Level>2</Level><Task>0</Task><Keywords>Keywords</Keywords><TimeCreated SystemTime="2016-01-31T04:04:37Z"/><EventRecordID>249226921</EventRecordID><Channel>Application</Channel><Computer>RD000D3A70601E</Computer><Security/></System><EventData><Data>3005</Data><Data>An unhandled exception has occurred.</Data><Data>1/31/2016 4:04:37 AM</Data><Data>1/31/2016 4:04:37 AM</Data><Data>12df1095ac4547c4a5d6538aaaa0e81d</Data><Data>1</Data><Data>1</Data><Data>0</Data><Data>/LM/W3SVC/713535672/ROOT-4-130986866778527914</Data><Data></Data><Data>/</Data><Data>D:\home\site\wwwroot\</Data><Data>RD000D3A70601E</Data><Data></Data><Data>7968</Data><Data>w3wp.exe</Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>HttpException</Data><Data>Server cannot access application directory 'D:\home\site\wwwroot\'. The directory does not exist or is not accessible because of security settings.
    at System.Web.HttpRuntime.EnsureAccessToApplicationDirectory()
    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)

    </Data><Data>http://rosalexprogramming.azurewebsites.net/</Data><Data>/</Data><Data>74.178.189.23</Data><Data></Data><Data>False</Data><Data></Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>31</Data><Data>IIS APPPOOL\rosalexprogramming</Data><Data>False</Data><Data> at System.Web.HttpRuntime.EnsureAccessToApplicationDirectory()
    at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException)
    </Data></EventData></Event></Events>

    I know there is way in the config file to set directory browing, but doesn't that conflict with what Azure is going to allow me from doing?

    I guess I don't understand IIS's directory fundamentals. 

    Please, can someone help me out? Any help in this matter is highly  appreciated!

    Sunday, January 31, 2016 1:55 PM

All replies