Publish web application with unsafe code

后端 未结 3 1256
旧时难觅i
旧时难觅i 2021-01-06 00:26

I\'m trying to publish a web application (with VS2012 Web) in which I need to run a vb script.

That script currently doesn\'t run correctly probably because of the l

3条回答
  •  半阙折子戏
    2021-01-06 00:50

    It seems when you publish it ignores the project setting of unsafe, so you need to manually open your .CSPROJ file and include:

      
        ...
        true
      
    

    That solved it for me.

    Googled this issue but could not find anything. Checked the *.targets files for "unsafe" which led me to the "AllowUnsafeBlocks" tag.

提交回复
热议问题