Getting IIS Application filesystem path

前端 未结 2 634
自闭症患者
自闭症患者 2021-02-07 06:09

I have IIS 7.0 installed on and there is a .net application with a .svc service there.

I would like to point a file in the virtual directory pointed by the application (

2条回答
  •  再見小時候
    2021-02-07 07:12

    If you're using a console application project template or any other template other than Web application then you have to add a reference to System.Web.

    You will then be able to refer to the System.Web.Hosting namespace.

    Hope this helps!

提交回复
热议问题