User-283860200 posted
Hi and thanks for your reply.
The default document in IIS is default.aspx.
Code is:
UserName = Request.ServerVariables("LOGON_USER")
UserName = Replace(UserName, "MYDOMAIN\", "", 1, Len(UserName), CompareMethod.Text)
If UserName.ToUpper <> "WHATEVER" then '<<<ERROR IS ON THIS LINE <<<<
...some code here....
End If
The strange thing about this is when the URL contains the page name (http://site/default.aspx) it runs fine, without it (http://site), the error is thrown.
Also runs fine in VS.