locked
ASP.Net Page.User property RRS feed

  • Question

  • User384677928 posted

    We have a small ASP.Net app here that has been running fine on a production LAN for a few years, but now needs to be changed.  We took the solution files and built it on a standalone machine, thinking that might make a good test environment.  It does not work.  The reason is that in the page load event of the Default.aspx, the User property of the Page object is null.  Consequently, the app thinks no one is logged on. 

    I suspect this is an issue with the way IIS is configured on the standalone machine.  In IIS,  Anonymous Authentication is enabled.  In the Web config file of the app, authentication is set to Windows as follows:

     <system.web>

          <authentication mode="Windows" />

              <anonymousIdentification enabled="false" />

          <authorization>

              <allow users="*" />

          </authorization>

          <customErrors mode="Off" />

          <compilation debug="true" targetFramework="4.0" />

      </system.web>

    Does anyone out there have any thoughts on what might be preventing population of the User property?  Many thanks in advance.

    Friday, December 18, 2015 5:15 PM

Answers