Deploying ASP.Net MVC 4 App on IIS 7 -


i created simple app , ran on visual studio. went "project properties > web" , changed "use local iis server".

now when debug, can't see anything, localhost\mysite\home return 404. iis looking folder called \home under site main folder, instead of looking controller named home.

iis has application site application pool default asp.net , integrated mode.

what wrong?

my config standard wizard:

<?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>     <!-- 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=5.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" />   </configsections>   <connectionstrings>    <!--<add name="defaultconnection" connectionstring="data source=(localdb)\v11.0;initial catalog=aspnet-mvcapplication2-20130718122501;integrated security=sspi;attachdbfilename=|datadirectory|\aspnet-mvcapplication2-20130718122501.mdf" providername="system.data.sqlclient" />-->     <add name="defaultconnection" connectionstring="data source=.\sqlexpress;attachdbfilename=|datadirectory|\aspnet-mvcapplication2-20130718122501.mdf;initial catalog=aspnet-mvcapplication2-20130718122501;integrated security=true;user instance=true" providername="system.data.sqlclient" />   </connectionstrings>   <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" />   </appsettings>   <system.web>     <compilation debug="true" targetframework="4.5" />     <httpruntime targetframework="4.5" />     <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>   </system.web>   <system.webserver>     <validation validateintegratedmodeconfiguration="false" />   <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" /></handlers></system.webserver>   <runtime>     <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">       <dependentassembly>         <assemblyidentity name="dotnetopenauth.core" publickeytoken="2780ccd10d57b246" />         <bindingredirect oldversion="1.0.0.0-4.0.0.0" newversion="4.1.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="dotnetopenauth.aspnet"     publickeytoken="2780ccd10d57b246" />         <bindingredirect oldversion="1.0.0.0-4.0.0.0" newversion="4.1.0.0" />       </dependentassembly>       <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="1.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>       <dependentassembly>         <assemblyidentity name="webgrease" publickeytoken="31bf3856ad364e35" />         <bindingredirect oldversion="1.0.0.0-1.3.0.0" newversion="1.3.0.0" />       </dependentassembly>     </assemblybinding>   </runtime>   <entityframework>     <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework">       <parameters>         <parameter value="v11.0" />enter code here       </parameters>        </defaultconnectionfactory>      </entityframework>    </configuration> 

it seems routing handler not being loaded...

are sure application pool set integrated? if yes try add line in web.config:

<modules runallmanagedmodulesforallrequests="true"></modules> 

please, make sure have these handlers registered in application:

<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" /> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -