Forum Moderators: open

Message Too Old, No Replies

Windows Authentication in DotNetNuke

Windows Authentication in DotNetNuke

         

afroken

11:35 am on Nov 9, 2004 (gmt 0)

10+ Year Member



I have a DotNetNuke website which will host our staff Extra/Intranet. We use a Active Directory for our email and system logons. Inside the webconfig file there is the following section:

<!-- Forms or Windows authentication -->

<authentication mode="Forms">
<forms name=".DOTNETNUKE" protection="All" timeout="60" />
</authentication>

<!--
<identity impersonate="true"/>
<authentication mode="Windows">
</authentication>
-->

I've tried swapping out the "Forms" for "Windows" authentication but just got an error of:-

Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.

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:

[FormatException: Input string was not in a correct format.]
Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat) +193
Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) +96

[InvalidCastException: Cast from string "VARNDEAN\Vivian" to type 'Integer' is not valid.]
Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) +210
DotNetNuke.Logging.LogController.AddLog(Object objLogInfo, String LogType, Int32 PortalID, String PortalName, Int32 UserID, String UserName, Boolean BypassBuffering) in C:\DotNetNuke\components\Logging\PortalLog.vb:459
DotNetNuke.Logging.ExceptionLogController.AddLog(BasePortalException objBasePortalException) in C:\DotNetNuke\components\Logging\ExceptionLog.vb:55
DotNetNuke.Exceptions.ProcessPageLoadException(Exception exc, String URL) in C:\DotNetNuke\components\Exceptions\Exceptions.vb:214
DotNetNuke.BasePage.Page_Error(Object Source, EventArgs e) in C:\DotNetNuke\components\BasePage.vb:41
System.Web.UI.TemplateControl.OnError(EventArgs e) +109
System.Web.UI.Page.HandleError(Exception e) +68
System.Web.UI.Page.ProcessRequestMain() +2094
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

Any ideas as to how this can be resolved?

TheNige

12:12 am on Nov 10, 2004 (gmt 0)

10+ Year Member



DNN does not have Windows Authentication built in natively. There have been a few modifications made for it. Check out the many threads on it in the Asp.Net forums site.