Asp.net MVC5 WebRole after deployed to Azure Cloud, breaks on @Scripts.Render -
i have cloud service asp.net mvc 5 web role , azure sdk 2.3 targeting 4.5.1 framework; website works in local. when deploy azure cloud service, have classic null reference error:
object reference not set instance of object. exception details: system.nullreferenceexception: object reference not set instance of object.
source error:
line 9: @scripts.render("~/bundles/jquery")
my bundleconfig.cs simple:
public static void registerbundles(bundlecollection bundles) { bundles.add(new scriptbundle("~/bundles/jquery").include( "~/scripts/jquery-{version}.js", "~/scripts/knockout-{version}.js", "~/scripts/jquery.signalr-{version}.js", "~/scripts/modernizr-{version}.js" ));
using intellitrace logs on webrole can see error:
invalid file name file monitoring 'e:\sitesroot\0\scripts
entering remotely in instance see folder scripts in path.
removing @script.render page load normally. @style.render on same page works.
i tried deploy in debug mode, , release mode, both in staging.
also tried change in web.config
compilation debug="true" , false
with no success. ideas why happen this? thanks
after days of tests discovered problem webgrease package. updating cause problem on fresh new project. uninstalling , reinstalling previous version solved problem.
Comments
Post a Comment