asp.net - MVC 4 website hosted on Azure says I do not have permission to view directory or page -
i not able see logs ftp credentials locked out, seeing following message when trying view home page:
you not have permission view directory or page.
i have looked @ other questions on , done googling (to little avail) , found following:
asp.net 4.5 mvc 4 not working on windows server 2008 iis 7
http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview#precondition
unfortunately, have been unable find fix page working. believe iis 'thing' control via web.config not know be. please, please, please me, ask me key bits of info have not provided not sure other bit may required diagnose problem further.
here configuration file:
<?xml version="1.0" encoding="utf-8"?> <!-- more information on how configure asp.net application, please visit http://go.microsoft.com/fwlink/?linkid=169433 --> <configuration> <configsections> <section name="log4net" type="log4net.config.log4netconfigurationsectionhandler, log4net" /> <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=5.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" /> </configsections> <connectionstrings> <add name="defaultconnection" connectionstring="blahblahblah" providername="system.data.sqlclient" /> </connectionstrings> <log4net configsource="log4net.config" /> <appsettings> <add key="webpages:version" value="2.0.0.0" /> <add key="webpages:enabled" value="false" /> <add key="preserveloginurl" value="true" /> <add key="clientvalidationenabled" value="true" /> <add key="unobtrusivejavascriptenabled" value="true" /> <add key="enablesimplemembership" value="false" /> </appsettings> <!-- description of web.config changes .net 4.5 see http://go.microsoft.com/fwlink/?linkid=235367. following attributes can set on <httpruntime> tag. <system.web> <httpruntime targetframework="4.5" /> </system.web> --> <system.web> <customerrors mode="off" /> <compilation debug="true" targetframework="4.5" /> <httpruntime targetframework="4.5.1" /> <authentication mode="forms"> <forms loginurl="~/account/login" timeout="2880" /> </authentication> <pages> <namespaces> <add namespace="system.web.helpers" /> <add namespace="system.web.mvc" /> <add namespace="system.web.mvc.ajax" /> <add namespace="system.web.mvc.html" /> <add namespace="system.web.optimization" /> <add namespace="system.web.routing" /> <add namespace="system.web.webpages" /> </namespaces> </pages> <membership defaultprovider="ravendbmembership"> <providers> <clear /> <add name="ravendbmembership" applicationname="website123" type="mag.escrow.web.ravenprovider.provider.ravendbmembershipprovider" /> </providers> </membership> <profile> <providers> <clear /> </providers> </profile> <rolemanager enabled="true" defaultprovider="ravendbrole"> <providers> <clear /> <add name="ravendbrole" applicationname="website123" type="mag.escrow.web.ravenprovider.provider.ravendbroleprovider" /> </providers> </rolemanager> </system.web> <system.webserver> <validation validateintegratedmodeconfiguration="false" /> <modules runallmanagedmodulesforallrequests="true" /> <handlers> <remove name="extensionlessurlhandler-isapi-4.0_32bit" /> <remove name="extensionlessurlhandler-isapi-4.0_64bit" /> <remove name="extensionlessurlhandler-integrated-4.0" /> <add name="extensionlessurlhandler-isapi-4.0_32bit" path="*." verb="get,head,post,debug,put,delete,patch,options" modules="isapimodule" scriptprocessor="%windir%\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll" precondition="classicmode,runtimeversionv4.0,bitness32" responsebufferlimit="0" /> <add name="extensionlessurlhandler-isapi-4.0_64bit" path="*." verb="get,head,post,debug,put,delete,patch,options" modules="isapimodule" scriptprocessor="%windir%\microsoft.net\framework64\v4.0.30319\aspnet_isapi.dll" precondition="classicmode,runtimeversionv4.0,bitness64" responsebufferlimit="0" /> <add name="extensionlessurlhandler-integrated-4.0" path="*." verb="get,head,post,debug,put,delete,patch,options" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" /> <add name="iisnode" path="server.js" verb="*" modules="iisnode"/> </handlers> </system.webserver> <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentassembly> <assemblyidentity name="system.web.helpers" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="1.0.0.0-2.0.0.0" newversion="2.0.0.0" /> </dependentassembly> <dependentassembly> <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="0.0.0.0-4.0.0.0" newversion="4.0.0.0" /> </dependentassembly> <dependentassembly> <assemblyidentity name="system.web.webpages" publickeytoken="31bf3856ad364e35" /> <bindingredirect oldversion="1.0.0.0-2.0.0.0" newversion="2.0.0.0" /> </dependentassembly> </assemblybinding> </runtime> <entityframework> <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework"> <parameters> <parameter value="v11.0" /> </parameters> </defaultconnectionfactory> </entityframework> </configuration>
remove 4 lines related extensionlessurlhandler-isapi-4.0_32bit & extensionlessurlhandler-isapi-4.0_64bit - refer how to: change configuration options web site. shouldn't try configure both classic , integrated modes. default, azure web sites run in integrated mode - should use classic option if have legacy web sites run exclusively on older versions of iis.
also, since using ravendb, take @ these posts azure web sites , embedded ravendb.
Comments
Post a Comment