How to Response.Write on IIS7.5?

后端 未结 3 689
醉梦人生
醉梦人生 2021-01-07 10:04

i am trying to write out a response to the client:

response.StatusCode = (int)HttpStatusCode.BadRequest;
response.ClearContent();
response.Write(String.Forma         


        
3条回答
  •  清酒与你
    2021-01-07 10:28

    Have you checked that asp.net is enabled on the server? You need to use the Windows server manager to check the features have been installed.

    I've just tried your code on my server & despite what I assume is a typo around casing of response, it worked as expected.

提交回复
热议问题