locked
Specified Domain Does Not Exist RRS feed

  • Question

  • User-891395389 posted

    im trying to get the username who logged in........

    i got it using

    HttpContext.Current.User.Identity.Name.ToString();

    after this im trying to check whether that person is there in the active directory.its working fine when running in my visual studio.that is local host

    but its throwing an error when running using ipaddress.

     

    Server Error in '/WebSite3' Application.

    The specified domain either does not exist or could not be contacted.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The specified domain either does not exist or could not be contacted.


    Source Error:

    Line 138:
    Line 139:        Response.Write(exp);
    Line 140:        throw exp;
    Line 141:    }
    Line 142:   

    Source File: c:\Inetpub\wwwroot\WebSite3\Default.aspx.cs    Line: 140

    Stack Trace:

    [COMException (0x8007054b): The specified domain either does not exist or could not be contacted.
    ]
       _Default.IsExistInAD(String loginName) in c:\Inetpub\wwwroot\WebSite3\Default.aspx.cs:140
       _Default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebSite3\Default.aspx.cs:35
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

     

    plz help me out<!-- [COMException]: The specified domain either does not exist or could not be contacted. at _Default.IsExistInAD(String loginName) in c:\Inetpub\wwwroot\WebSite3\Default.aspx.cs:line 140 at _Default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebSite3\Default.aspx.cs:line 35 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website3\5ebeb9de\d5b9a859\App_Web_n03dbe7v.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->

    Thursday, August 24, 2006 5:21 AM

All replies

  • User1354132231 posted
    The error is pretty specific in this case.  You don't have your connection string specified correctly or the domain is down.

    Thursday, August 24, 2006 8:23 AM