System.InvalidOperationException: Unable to generate a temporary class (result=1)

后端 未结 11 1850
攒了一身酷
攒了一身酷 2020-12-23 13:19

I have developed an application using .net 3.5 and have deployed it as an .exe on a number of machines with the same environment. However, on one particular machine I get th

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 13:54

    Surfacing @grzenio's comment a bit further for recent users:

    If you go to Project Properties -> Build -> Generate serialization assembly -> On, it forces the generation of the XML serializers assembly at compile time, eliminating the need to do so at runtime.

    In turn, this means you don't need to change filesystem permissions (useful if you're, for example, hosting on Windows Azure Web Sites, where that isn't an option).

提交回复
热议问题