ASP.NET Getting Current User Name

后端 未结 8 579
猫巷女王i
猫巷女王i 2021-01-12 10:57

I am trying to build an application on our company\'s intranet using ASP.NET and VB.NET.

Neither of these functions return anything once my application is published

8条回答
  •  生来不讨喜
    2021-01-12 11:45

    The reason it works in development is because VS's test web server is not IIS, and runs under your current user account.

    If you want this to work in IIS you need to be able to configure IIS correctly - there is no other way to do it.

提交回复
热议问题