c# - Error 403.14 forbidden -


i having error 403.14 after deploying website worked fine @ locaalhost.
error msg says either have not set default page in iis(but have default page because working @ localhost) or there other problem iis. know not case because when using web.config file of project of mine, first page working(not other because dynamic pages , need connection string ich giving error of own in case).
so trying figure out problem web.config unable so. hoping community might me. posting both web.config, 1 of project , giving error 403.14 , 1 project working..i not posting connectionstrings due security reasons.
also thought worth mentioning error getting iis , not yellow screen of error.

  <?xml version="1.0" encoding="utf-8"?>   <!--   more information on how configure asp.net application, please visit http://go.microsoft.com/fwlink/?linkid=301880 --> <configuration> <configsections>   <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 -->   <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=6.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" /> </configsections> <connectionstrings>   <add name="localserver" connectionstring="server=111.118.181.197; database=uiettpo; user id=uietdbusers; password= 1@@1uiet;persist security info=true" providername="system.data.sqlclient" />   <add name="localservereng" connectionstring="server=111.118.181.197; database=uiettpo; user id=uietdbusers; password= 1@@1uiet;persist security info=true" providername="system.data.sqlclient" />   <add name="localservergs" connectionstring="server=111.118.181.197; database=uiettpo; user id=uietdbusers; password= 1@@1uiet;persist security info=true" providername="system.data.sqlclient" />   <!--<add name="localserver" connectionstring="data source=(localdb)\mssqllocaldb;initial catalog=c:\users\mist\documents\visual studio 2015\projects\structuressc\structuressc\app_data\math.mdf;integrated security=true" providername="system.data.sqlclient" />   <add name="localservereng" connectionstring="data source=(localdb)\mssqllocaldb;initial catalog=c:\users\mist\documents\visual studio 2015\projects\structuressc\structuressc\app_data\english.mdf;integrated security=true" providername="system.data.sqlclient" /> <add name="localservergs" connectionstring="data source=(localdb)\mssqllocaldb;initial catalog=c:\users\mist\documents\visual studio 2015\projects\structuressc\structuressc\app_data\gs.mdf;integrated security=true" providername="system.data.sqlclient" />--> </connectionstrings> <appsettings>   <add key="webpages:version" value="3.0.0.0" />   <add key="webpages:enabled" value="false" />   <add key="clientvalidationenabled" value="false" />   <add key="unobtrusivejavascriptenabled" value="true" /> </appsettings> <system.web>   <customerrors mode="off" />   <authentication mode="none" />   <compilation debug="true" targetframework="4.5.2" />   <httpruntime targetframework="4.5.2" />   <httpmodules>     <add name="applicationinsightswebtracking" type="microsoft.applicationinsights.web.applicationinsightshttpmodule, microsoft.ai.web" />   </httpmodules> </system.web> <runtime>   <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">     <dependentassembly>       <assemblyidentity name="newtonsoft.json" culture="neutral" publickeytoken="30ad4fe6b2a6aeed" />       <bindingredirect oldversion="0.0.0.0-6.0.0.0" newversion="6.0.0.0" />     </dependentassembly>     <dependentassembly>       <assemblyidentity name="system.web.optimization" publickeytoken="31bf3856ad364e35" />       <bindingredirect oldversion="1.0.0.0-1.1.0.0" newversion="1.1.0.0" />     </dependentassembly>     <dependentassembly>       <assemblyidentity name="webgrease" publickeytoken="31bf3856ad364e35" />       <bindingredirect oldversion="0.0.0.0-1.5.2.14234" newversion="1.5.2.14234" />     </dependentassembly>     <dependentassembly>       <assemblyidentity name="system.web.helpers" publickeytoken="31bf3856ad364e35" />       <bindingredirect oldversion="1.0.0.0-3.0.0.0" newversion="3.0.0.0" />     </dependentassembly>     <dependentassembly>       <assemblyidentity name="system.web.webpages" publickeytoken="31bf3856ad364e35" />       <bindingredirect oldversion="1.0.0.0-3.0.0.0" newversion="3.0.0.0" />     </dependentassembly>     <dependentassembly>       <assemblyidentity name="system.web.mvc" publickeytoken="31bf3856ad364e35" />       <bindingredirect oldversion="1.0.0.0-5.2.3.0" newversion="5.2.3.0" />     </dependentassembly>   </assemblybinding> </runtime> <system.codedom>   <compilers>     <compiler language="c#;cs;csharp" extension=".cs" type="microsoft.codedom.providers.dotnetcompilerplatform.csharpcodeprovider, microsoft.codedom.providers.dotnetcompilerplatform, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:6 /nowarn:1659;1699;1701" />     <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="microsoft.codedom.providers.dotnetcompilerplatform.vbcodeprovider, microsoft.codedom.providers.dotnetcompilerplatform, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:14 /nowarn:41008 /define:_mytype=\&quot;web\&quot; /optioninfer+" />   </compilers> </system.codedom> <system.webserver>   <httperrors errormode="detailed" />   <validation validateintegratedmodeconfiguration="false" />   <modules>     <remove name="applicationinsightswebtracking" />     <add name="applicationinsightswebtracking" type="microsoft.applicationinsights.web.applicationinsightshttpmodule, microsoft.ai.web" precondition="managedhandler" />   </modules> </system.webserver> <entityframework>   <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework">     <parameters>     </parameters>   </defaultconnectionfactory>   <providers>     <provider invariantname="system.data.sqlclient" type="system.data.entity.sqlserver.sqlproviderservices, entityframework.sqlserver" />   </providers> </entityframework> </configuration> 

and web.config working.

<?xml version="1.0"?>  <configuration> <configsections> <sectiongroup name="system.web.webpages.razor" type="system.web.webpages.razor.configuration.razorwebsectiongroup, system.web.webpages.razor, version=3.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35">   <section name="host" type="system.web.webpages.razor.configuration.hostsection, system.web.webpages.razor, version=3.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" />   <section name="pages" type="system.web.webpages.razor.configuration.razorpagessection, system.web.webpages.razor, version=3.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" requirepermission="false" /> </sectiongroup> </configsections> <connectionstrings> </connectionstrings>  <system.web.webpages.razor> <host factorytype="system.web.mvc.mvcwebrazorhostfactory, system.web.mvc, version=5.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> <pages pagebasetype="system.web.mvc.webviewpage">   <namespaces>     <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="javascript_multiply_app" />   </namespaces>   </pages> </system.web.webpages.razor>  <appsettings> <add key="webpages:enabled" value="false" /> </appsettings>  <system.webserver> <handlers>   <remove name="blockviewhandler"/>   <add name="blockviewhandler" path="*" verb="*" precondition="integratedmode" type="system.web.httpnotfoundhandler" />  </handlers> </system.webserver> </configuration> 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -