Upgrade from .net 4 to 4.5 breaks Html.Raw call in Javascript

前端 未结 4 2055
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-06 06:53

I have the following code in a c# MVC 3 razor page where I am passing serialized data into a javascript variable for KnockoutJs:

    @{   
        var listDa         


        
4条回答
  •  感动是毒
    2021-01-06 07:42

    I have had the same thing happen, but it does so at random. What I have tried to resolve it is the following:

    Make sure you can compile/build/debug in Debug mode, switch to Release mode and attempt to debug/publish from that mode. Switch back to Debug mode and re-attempt the publish.

    Some combination of switching modes does the trick, I just can'y nail down what it is exactly. Once you get it working, don't close VS ;-)

    Let's hope MS gets this fixed in SP1.

提交回复
热议问题