Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

System.DirectoryServices.ActiveDirectory.ApplicationPartition constructor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
richlm - 26 Jan 2006 22:06 GMT
I am creating a new application partition in ADAM using the .NET framework
constructor for ApplicationPartition in
System.DirectoryServices.ActiveDirectory namespace.

It works fine if I use a distinguished name like "DC=mycompany,DC=com" but
anything other than 2 DC= causes the constructor to throw an exception:
"The specified distinguished name has an invalid format".

I have also tried using one of my custom class names in the constructor with
3 parameters, instead of defaulting to the default domainDNS, but still the
same exception.

If I create a new application partition when I create the ADAM instance
using the wizard I can specify something like "CN=myapp" which is exactly
what I want -
I don't need the domain stuff in the distinguished name - except I want to
create the partition programmatically.

This is currently running on XP.
Lee Flight - 26 Jan 2006 22:30 GMT
Hi

posting your code to the adsi.general NG would probably be best.
I suspect the problem is that the ApplicationPartition class is designed
for AD Application Partitions (inherently domainDNS objects)

http://msdn.microsoft.com/library/en-us/ad/ad/application_directory_partitions.asp

which are quite different from ADAM partitions.

Lee Flight

>I am creating a new application partition in ADAM using the .NET framework
>constructor for ApplicationPartition in
[quoted text clipped - 15 lines]
>
> This is currently running on XP.
richlm - 28 Jan 2006 19:58 GMT
Thanks Lee for your response and the link.
Yes it sounds like an applciation partition is a special kind of DomainDNS.
I guess that makes sense in an AD context, but not so much when using ADAM
purely as a heirarchical database. Never mind, I guess we can live with it.

Anyone on the ADSI group have comments to add?

> Hi
>
[quoted text clipped - 28 lines]
>>
>> This is currently running on XP.
Joe Kaplan (MVP - ADSI) - 29 Jan 2006 00:06 GMT
Well, technically the word Application Partition refers to an AD feature
(that almost no one uses), not ADAM, so this kind of makes sense.

In a sense, all partitions in ADAM are "application partitions", but we
don't refer to them with the same language.

As such, I chaulk this up to pickiness over how things are named, but
perhaps the ApplicationPartition class has some properties that only make
sense for a real AD application partition and would not map to ADAM?  I
haven't looked that closely yet.

Joe K.

> Thanks Lee for your response and the link.
> Yes it sounds like an applciation partition is a special kind of
[quoted text clipped - 37 lines]
>>>
>>> This is currently running on XP.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.