c# - Scripts in mvc blank -
i started empty project: empty webapi project has grown bit, , need have 1 layouted page.
things added page:
added controller named: streamcontroller
added /views/stream/details.cshtml
file.
the web.config , in /views
there web.config containing:
<add namespace="system.web.optimization" />
, added it's reference.
added /scripts
folder , added scripts
added bundleconfig , routeconfig (just copied them asp.net webapi project generated standard project creation.
added bundles bundleconfig
added config's in global.asax
.
problem:
when go /scripts/xxx.js
return blank.
am forgetting config ? or something?
there wrong in web.config. updated system.webserver
tot following , works now.
<system.webserver> <validation validateintegratedmodeconfiguration="false" /> <modules runallmanagedmodulesforallrequests="true"> <remove name="webdavmodule" /> </modules> <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="classicmode,runtimeversionv4.0" /> </handlers> </system.webserver>
Comments
Post a Comment