SBS 2011: Login to RWA fails with error 'The domain is null or empty'

Article ID: 2633011 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Under rare conditions, when you try to login to Remote Web Access (RWA), it may fail with the following error:

Server Error in '/Remote' Application.
--------------------------------------------------------------------------------

The domain is null or empty
Parameter name: domain
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.ArgumentException: The domain is null or empty
Parameter name: domain

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[ArgumentException: The domain is null or empty
Parameter name: domain]
   Microsoft.WindowsServerSolutions.Web.Security.RWWSingleSignOnImplBase.Login(String domain, String userName, SecureString password) +978
   Microsoft.WindowsServerSolutions.Web.Security.SBSMembershipProvider.OnLogin(String username, String password) +336
   Microsoft.WindowsServerSolutions.Web.Security.WssgMembershipProviderBase.Login(String username, String password) +68
   Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.LogOnHelper.LoginUser(String name, String password) +496
   Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.LogOn.LogOnButton_Click(Object sender, EventArgs ea) +496
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +187
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3707

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237



On analyzing the C:\Program Files\Windows Small Business Server\Logs\WebApp\RemoteAccess.log, you would find something similar:

[6552] 111017.214226.9933: RemoteAccess: [Identity] A new LogOn starts.
[6552] 111017.214227.0480: RemoteAccess: [SSO-RWW] Adding Outlook SSO factory
[6552] 111017.214227.0480: RemoteAccess: [SSO-RWW] Adding Sharepoint SSO factory
[6552] 111017.214227.0636: RemoteAccess: [SSO-RWW] A factory was found for application OutlookWebAccess
[6552] 111017.214227.0636: RemoteAccess: [SSO-Factory] Creating single sign on object for app https://remote.fourthcoffee.com/OWA (secure)
[6552] 111017.214227.0636: RemoteAccess: [SSO-Factory] Existing single sign object not found for server https://remote.fourthcoffee.com/OWA so creating new object
[6552] 111017.214227.0636: RemoteAccess: [SSO] Setting Application Base Uri to https://remote.fourthcoffee.com/OWA
[6552] 111017.214227.0636: RemoteAccess: [SSO] Validating login parameters
[6552] 111017.214227.0636: RemoteAccess: [SSO] The domain is null or empty
[6552] 111017.214227.0636: RemoteAccess: [Website] Exception happens during rendering the file [~/AccountPage/Logon.aspx]; Error Code: 0x80004005
[6552] 111017.214227.0792: Exception:
---------------------------------------
An exception of type 'Type: System.Web.HttpUnhandledException, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has occurred.
Timestamp: 10/17/2011 21:42:27
Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack:    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.ProcessRequest(HttpContext context)
    at Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.RealPageHandler.ProcessRequest(HttpContext context)
---------------------------------------
An exception of type 'Type: System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has occurred.
Timestamp: 10/17/2011 21:42:27
Message: The domain is null or empty
Parameter name: domain
Stack:    at Microsoft.WindowsServerSolutions.Web.Security.RWWSingleSignOnImplBase.Login(String domain, String userName, SecureString password)
    at Microsoft.WindowsServerSolutions.Web.Security.SBSMembershipProvider.OnLogin(String username, String password)
    at Microsoft.WindowsServerSolutions.Web.Security.WssgMembershipProviderBase.Login(String username, String password)
    at Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.LogOnHelper.LoginUser(String name, String password)
    at Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.LogOn.LogOnButton_Click(Object sender, EventArgs ea)
    at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
    at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

CAUSE

This issue can occur if the registry keys Domain or NV Domain are either missing or contain no data value.

RESOLUTION

To resolve this issue, follow these steps:

1.) Launch Registry Editor

2.) Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

3.) Create a REG_SZ key with the name Domain and give it a value of your Active Directory domain name, for example contoso.local

4.) Create a REG_SZ key with the name NV Domain and give it a value of your Active Directory domain name, for example contoso.local

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2633011 - Last Review: January 10, 2012 - Revision: 3.0
APPLIES TO
  • Windows Small Business Server 2011 Standard
Keywords: 
KB2633011

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com