Cannot open XML file from ASP if "logged in" RRS feed

  • Question

  • I have a (classic) ASP page. I open an XML file in the page. Works great.

    I need to get the username, so up front, I force login by:

    If Request.ServerVariables("LOGON_USER") = "" Then
      Response.Status = "401 Access Denied"
    End If
    Response.Write Request.ServerVariables("LOGON_USER")   ' (This works fine.)

    Once I do this, I can no longer open the XML file (mapped drive). I get:
    "Error 3709:The connection cannot be used to perform this operation. It is either closed or invalid in this context."

    Why can I only open the file if I am Anonymous? This is driving me crazy!
    Saturday, February 18, 2017 3:48 AM


  • They'll help you over here.




    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Saturday, February 18, 2017 4:07 AM