asp.net mvc - Error while deploying MVC 5 application on Windows Server 2008 -


i have published mvc 5 application , copied files local pc server d drive.

server windows server 2008 sp1.

i installed .net framework 4.5 on server.

i created separate application pool .net framework 4.0 in integrated mode.

in iis, right-click sites , select new web site.

in physical path pointing same d drive on server published files located.

when try browse, gives error:

no default document configured.

is because windows server service pack 2 not installed? require sp2 mvc 5 application?

i have registed asp.net 4.0 running:

aspnet_regiis -i 

from command prompt.

this known problem when deploying mvc application on windows server 2008 r2 regarding extension less urls: can find more in article:

http://blogs.msdn.com/b/tmarq/archive/2010/04/01/asp-net-4-0-enables-routing-of-extensionless-urls-without-impacting-static-requests.aspx

you need run hotfix microsoft in link: https://support.microsoft.com/en-us/kb/980368

then add following in web.config file:

<handlers>       <remove name="webdav" />       <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> 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -