|
1/6/2010 2:58:45 PM
|
grundlichkeit Posts 3
|
I can't access the appscriber application (neither from the server neither remote) that I installed under the existing default website. the message is System.argumentNullException: value cannot be null - parameter name: identity this is the stack trace: [ArgumentNullException: Value cannot be null. Parameter name: identity] Immidio.AppScriber.BusinessLogic.ActiveDirectory.AdQuery.GetQuery(String identity) +170 Immidio.AppScriber.BusinessLogic.ActiveDirectory.ActiveDirectoryManagement.GetQuery(String identity) +214 Immidio.AppScriber.BusinessLogic.ActiveDirectory.ActiveDirectoryManagement.GetActiveDirectoryUser(String loginName) +84 _Default.Page_Load(Object sender, EventArgs e) +100 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
appscriber was installed on a server 2008 std running in 32 bits with SQL 2008 std
during configuration the test connection to AD was ok, I haven't changed anything in the Identity pattern.
excerpts from my web.config file: <appSettings> <add key="Hostname" value="xxx.t" /> <add key="BaseDN" value="DC=xxx,DC=T" /> <add key="UserGroupName" value="VA\xxx\#U" /> <add key="ManagerGroupName" value="MT\xxx\#U" /> <add key="AdminGroupName" /> <add key="MaxVisibleAdObjects" value="500" /> <add key="IdentityPattern" value="((?<domainName>.*)\\)?(?<userName>.*)" /> <add key="AdUserQuery" value="sAMAccountName=${userName}" /> <add key="UsersRootDN" value="OU=OU-Standard,OU=OU-Users,DC=xxx,DC=t" /> <add key="GroupsRootDN" value="OU=OU-Users (U),OU=OU-Groups,DC=xxx,DC=t" /> </appSettings>
what's wrong here?
|
|
1/6/2010 11:19:48 PM
|
Arnout Grootveld — Immidio Posts 247
|
Can you check the authentication settings for the AppScriber site? I'm pretty sure that the installer should have set them up correctly, but it looks like anonymous access is enabled (it shouldn't be).
-- Arnout.
|
|
1/7/2010 7:47:53 AM
|
grundlichkeit Posts 3
|
Arnout Grootveld — <i>Immidio</i> wrote:
Can you check the authentication settings for the AppScriber site? I'm pretty sure that the installer should have set them up correctly, but it looks like anonymous access is enabled (it shouldn't be).
-- Arnout.
anonymous access is disabled, but now I get this: NullReferenceException: Object reference not set to an instance of an object.] Immidio.AppScriber.BusinessLogic.ActiveDirectory.ActiveDirectoryManagement.(String groupName) +177 Immidio.AppScriber.BusinessLogic.ActiveDirectory.ActiveDirectoryManagement.(String groupNameParam, List`1 groupNameList) +111 Immidio.AppScriber.BusinessLogic.ActiveDirectory.ActiveDirectoryManagement.(List`1 groups) +124 Immidio.AppScriber.BusinessLogic.ActiveDirectory.ActiveDirectoryManagement.GetActiveDirectoryUser(String loginName) +888 _Default.Page_Load(Object sender, EventArgs e) +100 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
|
|
1/7/2010 10:06:53 AM
|
Arnout Grootveld — Immidio Posts 247
|
This error would occur in case UserGroupName and/or ManagerGroupName are not specified correctly in web.config.
These two settings must be in CN format -- from the config you posted ("VA\xxx\#U" and "MT\xxx\#U"), I get the impression that they are not. Can you check this, and if necessary change it? Using the configuration tool is probably the most convenient way for this.
-- Arnout.
|
|
1/7/2010 11:12:14 AM
|
grundlichkeit Posts 3
|
have been fiddling with the correct CN name, but still have the same error. then I tried two different groups without special characters to overrule that, same problem... this is the web.config for now:
<?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" /> <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> </sectionGroup> </sectionGroup> </sectionGroup> </configSections> <system.web> <pages enableEventValidation="false"> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </controls> </pages> <globalization culture="auto" uiCulture="auto" /> <compilation debug="false"> <assemblies> <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </assemblies> </compilation> <httpHandlers> <remove verb="*" path="*.asmx" /> <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /> </httpHandlers> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </httpModules> </system.web> <system.web.extensions> <scripting> <scriptResourceHandler enableCompression="false" enableCaching="true" /> </scripting> </system.web.extensions> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules> <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated" /> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </handlers> </system.webServer> <appSettings> <add key="Hostname" value="domain.t" /> <add key="BaseDN" value="DC=domain,DC=T" /> <add key="UserGroupName" value="CN=VA#APPVUSERS#U,OU=OU-Users (U),OU=OU-Groups,DC=domain,DC=t" /> <add key="ManagerGroupName" value="CN=MT#WKS_AD_ADMINS#U,OU=OU-Users (U),OU=OU-Groups,DC=domain,DC=t" /> <add key="AdminGroupName" /> <add key="MaxVisibleAdObjects" value="4000" /> <add key="IdentityPattern" value="((?<domainName>.*)\\)?(?<userName>.*)" /> <add key="AdUserQuery" value="sAMAccountName=${userName}" /> <add key="User" value="CN=admin,OU=WKS,OU=OU-Administrators,OU=OU-Users,DC=domain,DC=T" /> <add key="Password" value="password" /> </appSettings> <connectionStrings> <add name="AppScriber" connectionString="Data Source=servername;Initial Catalog=AppScriber;Integrated Security=True" /> </connectionStrings> </configuration>
|
|
1/7/2010 1:45:22 PM
|
Arnout Grootveld — Immidio Posts 247
|
With "CN format", I meant just the "CN" part. So, looking at your DN-based "UserGroupName" setting, this would be "VA#APPVUSERS#U", for instance.
Apologies for the confusion.
-- Arnout. edited by Arnout Grootveld — Immidio on 1/7/2010
|
|
pages:
1 |