Thanks to Graham Bradshaw help

xiaoxiao2021-03-06  24

Www.codeproject.com

I Have Done An COBRARY That Using VC 6.0, There IS "Logon" Interface WAS Contained and Detail Codes Below:

NETRESOURCE nr; :: memset (& nr, NULL, sizeof (NETRESOURCE)); nr.dwType = RESOURCETYPE_ANY; nr.lpRemoteName = str.LockBuffer (); nr.lpProvider = _T ( "Microsoft Windows Network"); nr.dwDisplayType = ResourceDisplayType_server; DWORD DWRESULT = :: WnetdConnection2 (& NR, _T ("password"), _t ("username", connect_update_profile;

"Logon" Interface Is Successful to Return "

NO_ERROR "Which are invoked by VB. But While The" Logon "Interface Is Invoked by ASP (Active Service Page), HOWEVER RESULTS IS To Return A Error That's:

Error_no_such_logon_ssion

TO Search Into "Winerror.h" That Have Some Description About The Error:

// a specified logon session does not exist. It may alleady has // been terminated.

Via Google To Search About The "ERROR_NO_SUCH_LOGON_SESSION", Unfortunate Nothing Can Hele Me.

This is a bit of a guess, but I would imagine That The Problem Stems from The Security Context That The ASP Page IS Running Under Xp and 2003, Network Access for the Web Server IS SEVERLY LIMITED. THE

Connect_UPDATE_PROFILE FLAG Might Also Be Causeing The Problem - I'm Not Sure That The Relevant Security Context Has A "Profile" to bedated.

转载请注明原文地址:https://www.9cbs.com/read-79499.html

New Post(0)