Prevent .NET from writing to C:\Windows\Temp

后端 未结 5 746
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 01:28

I\'ve got a C# application that I\'m trying to push out to a distributed network. The application works fine locally (as always), but when I push it out to the network, it

5条回答
  •  一生所求
    2021-01-19 02:07

    It seems that webservices require read/write permission to %SystemRoot%\Temp (MSDN).

    From here:

    If you're running ASP.NET 2.0 or above, you can assign the required permissions with the command:

    aspnet_regiis -GA MachineName\Account
    

    This blog post contains instructions on how to change the location of the SystemRoot\Temp folder used for this (as well as instructions on how to use reflector to determine the setting in web.config to set for a situation like this)

提交回复
热议问题